- Posts: 37
- Thank you received: 0
OS Property support center
Need clickable link to agent's website
- filaretos
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 7 months ago - 10 years 7 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.
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: 10 years 7 months ago by filaretos.
Please Log in or Create an account to join the conversation.
- filaretos
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 0
10 years 6 months ago - 10 years 6 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:// ?
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: 10 years 6 months ago by filaretos.
Please Log in or Create an account to join the conversation.
- William Heafner
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
10 years 6 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
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: Dang Thuc Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.