OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Link Picture and Title to detail view (0 viewing) 
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: Link Picture and Title to detail view
#1112
ajarduini (Visitor)
Fresh Boarder
Posts: 11
graphgraph
User Offline
Link Picture and Title to detail view 6 Years ago Karma: 0  
Greetings,

It has been a while since I have worked with the Vehicle Manager Pro code.

Is there a way to link the photo and the title to the detailed view instead of just the title?

Thank you,

tony
 
Logged Logged  
  The administrator has disabled public write access.
#1120
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Link Picture and Title to detail view 6 Years ago Karma: 61  
Hello,

You need go to file {your host}/components/com_vehiclemanager/vehiclemanager.html.php

finf function displayVehicles
and in it change below code:

Code:

if($imageURL != ''){
            echo '<img src="'.
            $mosConfig_live_site.'/components/com_vehiclemanager/photos/'
            .$file_name."_mini".$file_type.'" border="0">';
          } else{
            echo '<img src="'.
            $mosConfig_live_site.'/components/com_vehiclemanager/images/';
            echo _VEHICLE_MANAGER_NO_PICTURE;
            echo '" alt="no-img_eng.gif" border="0"  />&nbsp;';
          }



to code:

Code:

if($imageURL != ''){
            echo '<a href="'.sefRelToAbs( $link ).'" ><img src="'.
            $mosConfig_live_site.'/components/com_vehiclemanager/photos/'
            .$file_name."_mini".$file_type.'" border="0"></a>';
          } else{
            echo '<a href="'.sefRelToAbs( $link ).'" ><img src="'.
            $mosConfig_live_site.'/components/com_vehiclemanager/images/';
            echo _VEHICLE_MANAGER_NO_PICTURE;
            echo '" alt="no-img_eng.gif" border="0"  /></a>&nbsp;';
          }



But at start do this file backup

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
#1130
ajarduini (Visitor)
Fresh Boarder
Posts: 11
graphgraph
User Offline
Re:Link Picture and Title to detail view 6 Years ago Karma: 0  
Perfect, thank you!!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?