OS Property support center

Making agent picture and agent name hyperlink

More
10 years 1 month ago - 10 years 1 month ago #66205 by Dejan
Hi,
How to make agent picture and agent name hyperlink on agent listing page
Last edit: 10 years 1 month ago by Dejan. Reason: misspeling

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #66216 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Making agent picture and agent name hyperlink
Hi Dejan,
What's the theme you are using now?
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #66258 by Dejan
I am using theme black

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #66264 by brianpat pat
Replied by brianpat pat on topic Making agent picture and agent name hyperlink
I also need this functionality. Would be good to know how to do it.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #66341 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Making agent picture and agent name hyperlink
Hi,
To add link (to Agent details) in Agent listing page, please follow these steps
Open file: components > com_osproperty > helpers > layouts > agentlist.php
Find
Code:
<img src='<?php echo JURI::root()?>images/osproperty/agent/<?php echo $row->photo?>' border="0" />

and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>"> <img src='<?php echo JURI::root()?>images/osproperty/agent/<?php echo $row->photo?>' border="0" /> </a>

Find
Code:
<img src='<?php echo JURI::root()?>components/com_osproperty/images/assets/noimage.jpg' border="0" />

and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>"> <img src='<?php echo JURI::root()?>components/com_osproperty/images/assets/noimage.jpg' border="0" /> </a>

Find

<?php echo $row->name?>

and replace by
Code:
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&task=agent_info&id='.$row->id);?>" title="<?php echo JText::_('OS_VIEW_DETAILS');?>"> <?php echo $row->name?> </a>


Good luck
Dam
The following user(s) said Thank You: Dejan

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan