- Posts: 19
- Thank you received: 0
OS Property support center
SOLVED !!! Changing an agent to Featured
- Alfredo
-
Topic Author
- Offline
- New Member
-
Less
More
9 years 7 months ago - 9 years 7 months ago #69327
by Alfredo
SOLVED !!! Changing an agent to Featured was created by Alfredo
Hi folks:
I'm trying to order my agents list to show first the Featured Agents to show them on the front-end
When I click the "star" nothing happens.
I enclose a screen capture.
Any clue?
I'm trying to order my agents list to show first the Featured Agents to show them on the front-end
When I click the "star" nothing happens.
I enclose a screen capture.
Any clue?
Attachments:
Last edit: 9 years 7 months ago by Mr. Dam.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 7 months ago #69433
by Mr. Dam
Replied by Mr. Dam on topic Changing an agent to Featured
Hi,
To solve the issue, please follow these steps
1. Open file: administrator > components > com_osproperty > classes > agent.html.php
2. Find
and replace by
Good luck
Dam
To solve the issue, please follow these steps
1. Open file: administrator > components > com_osproperty > classes > agent.html.php
2. Find
Code:
<?php
if($row->featured == 1){
?>
<a class="btn btn-micro active hasTooltip" href="index.php?option=com_osproperty&task=agent_changeunfeatured&cid[]=<?php echo $row->id?>&limitstart=<?php echo $pageNav->limitstart?>&limit=<?php echo $pageNav->limit?>" title="<?php echo JText::_('OS_CHANGE_FEATURED_STATUS');?>">
<i class="osicon-star"></i>
</a>
<?php
}else{
?>
<a class="btn btn-micro active hasTooltip" href="index.php?option=com_osproperty&task=agent_changefeatured&cid[]=<?php echo $row->id?>&v=1&limitstart=<?php echo $pageNav->limitstart?>&limit=<?php echo $pageNav->limit?>" title="<?php echo JText::_('OS_CHANGE_FEATURED_STATUS');?>" style="color:black;">
<i class="osicon-star"></i>
</a>
<?php
}
?>
and replace by
Code:
<?php
if($row->featured == 1){
?>
<a class="btn btn-micro active hasTooltip" href="index.php?option=com_osproperty&task=agent_changeunfeatured&cid[]=<?php echo $row->id?>&limitstart=<?php echo $pageNav->limitstart?>&limit=<?php echo $pageNav->limit?>" title="<?php echo JText::_('OS_CHANGE_FEATURED_STATUS');?>" style="color:orange;">
<i class="osicon-star"></i>
</a>
<?php
}else{
?>
<a class="btn btn-micro active hasTooltip" href="index.php?option=com_osproperty&task=agent_changefeatured&cid[]=<?php echo $row->id?>&v=1&limitstart=<?php echo $pageNav->limitstart?>&limit=<?php echo $pageNav->limit?>" title="<?php echo JText::_('OS_CHANGE_FEATURED_STATUS');?>" style="color:black;">
<i class="osicon-star"></i>
</a>
<?php
}
?>
Good luck
Dam
The following user(s) said Thank You: Alfredo
Please Log in or Create an account to join the conversation.
- Alfredo
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
9 years 7 months ago #70470
by Alfredo
Replied by Alfredo on topic Changing an agent to Featured
Issue was solved after upgrading to Version 2.9.2
Thanks again Dam. Keep on going!
Thanks again Dam. Keep on going!
Please Log in or Create an account to join the conversation.
Moderators: Mr. 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.