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

Link Picture and Title to detail view

ajarduini (Visitor)
Posts: 0
graphgraph
User Offline
Link Picture and Title to detail view 13 Years, 7 Months 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.
admin (Admin)
Admin
Posts: 8242
graph
User Offline Click here to see the profile of this user
Re:Link Picture and Title to detail view 13 Years, 7 Months ago
Karma: 101  
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.
ajarduini (Visitor)
Posts: 0
graphgraph
User Offline
Re:Link Picture and Title to detail view 13 Years, 7 Months ago
Karma: 0  
Perfect, thank you!!
Logged Logged
The administrator has disabled public write access.
Go to top
»