OS Property support center

Top-Menu

  • DThx
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 5 months ago #54566 by DThx
Top-Menu was created by DThx
Hi Dam,

Pls, can you tell me why top_menu display even if functionnalities are off ?
and too, where can i switch off functionnality "agent register" ?
Thank a lot
Didier
Attachments:

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

More
10 years 5 months ago #54582 by Mr. Dam
Replied by Mr. Dam on topic Top-Menu
Hi Didier,
In latest OS Property version, we have removed the top menu of component. Do you want to hide it also?
Thanks
Dam

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

  • DThx
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 5 months ago #54585 by DThx
Replied by DThx on topic Top-Menu
Not really, just "register agent"

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

More
10 years 5 months ago #54594 by Mr. Dam
Replied by Mr. Dam on topic Top-Menu
Hi,
To disable Agent register link, please follow these steps
- Open file: components > com_osproperty > helpers > common.php
find:

if($configClass==1){
$needs = array();
$needs[] = "agent_register";
$needs[] = "aagentregistration";
$itemid = OSPRoute::getItemid($needs);
$itemid = OSPRoute::confirmItemid($itemid,'aagentregistration');
if($itemid == 0){
$itemid = OSPRoute::confirmItemid($itemid,'agent_register');
}
$html .= '<a href="'.JRoute::_('index.php?option=com_osproperty&task=agent_register&Itemid='.$itemid).'" class="hasTip" title="'.JText::_('OS_AGENT_REG').' :: '.JText::_('OS_REGISTER_AGENT').'">'.JText::_('OS_AGENT_REG').'</a>';
}


and remove it

Good luck
Dam

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

More
10 years 5 months ago #54596 by Mr. Dam
Replied by Mr. Dam on topic Top-Menu
Sorry, here is the code
Code:
if($configClass['allow_agent_registration']==1){ $needs = array(); $needs[] = "agent_register"; $needs[] = "aagentregistration"; $itemid = OSPRoute::getItemid($needs); $itemid = OSPRoute::confirmItemid($itemid,'aagentregistration'); if($itemid == 0){ $itemid = OSPRoute::confirmItemid($itemid,'agent_register'); } $html .= '<a href="'.JRoute::_('index.php?option=com_osproperty&task=agent_register&Itemid='.$itemid).'" class="hasTip" title="'.JText::_('OS_AGENT_REG').' :: '.JText::_('OS_REGISTER_AGENT').'">'.JText::_('OS_AGENT_REG').'</a>'; }

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

Moderators: Mr. DamNguyen Phu Quan