Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

Need clickable link to agent's website

  • filaretos
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 8 months ago - 11 years 8 months ago #58040 by filaretos
Need clickable link to agent's website was created by filaretos
Hello,
I need to have a clickable link to the agent's website.
I don't use MSN or Gtalk for agents, so can you tell me how to change that to "Website" and to be clickable like facebook.
I mean instead of saying Gtalk to say Website and the agent can add his website.
Thank you.
Last edit: 11 years 8 months ago by filaretos.

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

  • filaretos
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 8 months ago - 11 years 8 months ago #58410 by filaretos
Replied by filaretos on topic Need clickable link to agent's website
Hello,
I was able to find a solution and change Gtalk to Website and be clickable.
The only problem i have is that in every external link i have to write http:// in front of it.
For example http:// www.example.com .
If i write only example.com or www.example.com the link becomes : http:// www.mysite.com/www.example.com .

How can i fix this, or do i have to always write http:// ?
Last edit: 11 years 8 months ago by filaretos.

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

More
11 years 8 months ago #58429 by William Heafner
Replied by William Heafner on topic Need clickable link to agent's website
I was able to change the Title of the Property on the details page to a hyperlink

Hi William,
You can follow these steps to add the link of company website into the property title in property detais page.
1 open file
components > com_osproperty > templates > theme3 > details.html.tpl.php
find
<?php
if($row->ref != ""){
?>
<font color="orange">
<?php echo $row->ref?>
</font>
-
<?php
}
?>
<?php echo $row->pro_name?>

and change to

<?php
$db->setQuery("Select a.* from #__osrs_companies as a inner join #__osrs_agents as b on b.company_id = a.id where b.id = '$row->agent_id'");
$company = $db->loadObject();
if($company->website != ""){
?>
<a href="<?php echo $company->website; ?>" target="_blank">
<?php
}
if($row->ref != ""){
?>
<font color="orange">
<?php echo $row->ref?>
</font>
-
<?php
}
?>
<?php echo $row->pro_name?>
<?php
if($company->website != ""){
?>
</a>
<?php } ?>

Good luck
Dam

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

Moderators: Mr. Dam, Nguyen Phu Quan