- Posts: 10
- Thank you received: 0
OS Property support center
Register to Become Agent Page, Padding...
- andersen
- Topic Author
- Offline
- New Member
-
Less
More
11 years 8 months ago #34320
by andersen
Register to Become Agent Page, Padding... was created by andersen
hi,
i updated my OS Property! the new version is off the chain. considerable imporvements both functionality and style.
one request;
- in my previous version i hacked the padding, around image, leading to "registration" form
* in which file, can i edit the code, to reduce the padding?
see attached for clarification.
thanks!
i updated my OS Property! the new version is off the chain. considerable imporvements both functionality and style.
one request;
- in my previous version i hacked the padding, around image, leading to "registration" form
* in which file, can i edit the code, to reduce the padding?
see attached for clarification.
thanks!
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13024
- Thank you received: 1692
11 years 8 months ago #34327
by Mr. Dam
Replied by Mr. Dam on topic Re: Register to Become Agent Page, Padding...
Hi Andersen,
You now can download version 2.1.2 to fix the issue with the button OS_BECOME_AGENT.
Regarding to space around the button, you can remove it by follow these steps.
1 Open file
components > com_osproperty > classes > default.html.php
2. find
<?php
$user = JFactory::getUser();
if((intval($user->id)==0) and ($configClass)){
?>
<BR />
<?php echo JText::_('OS_REGISTER_NEW_AGENT_ACCOUNT')?>
<BR /><BR /><BR />
<?php
$needs = array();
$needs[] = "agent_register";
$needs[] = "aagentregistration";
$itemid2 = OSPRoute::getItemid($needs);
?>
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&view=aagentregistration&Itemid='.$itemid2);?>" title="<?php echo JText::_('OS_BECOME_AGENT')?>" class="btn"><i class="icon-user"></i><?php echo JText::_('OS_BECOME_AGENT')?></a>
<?php
}elseif($configClass==1){
?>
<BR />
<?php echo JText::_(OS_PUBLISH_YOUR_PROPERTIES_IN_THE_SITE_BY_CLICK_ON_THE_BELLOW_BUTTON)?>
<BR /><BR /><BR />
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_new");?>" title="<?php echo JText::_('OS_ADD_NEW_PROPERTY')?>" class="btn"><i class="icon-edit"></i><?php echo JText::_('OS_ADD_NEW_PROPERTY')?></a>
<?php
}
?>
<BR /><BR />
and remove some <BR /> tag to suit you need.
Good luck
Dam
You now can download version 2.1.2 to fix the issue with the button OS_BECOME_AGENT.
Regarding to space around the button, you can remove it by follow these steps.
1 Open file
components > com_osproperty > classes > default.html.php
2. find
<?php
$user = JFactory::getUser();
if((intval($user->id)==0) and ($configClass)){
?>
<BR />
<?php echo JText::_('OS_REGISTER_NEW_AGENT_ACCOUNT')?>
<BR /><BR /><BR />
<?php
$needs = array();
$needs[] = "agent_register";
$needs[] = "aagentregistration";
$itemid2 = OSPRoute::getItemid($needs);
?>
<a href="<?php echo JRoute::_('index.php?option=com_osproperty&view=aagentregistration&Itemid='.$itemid2);?>" title="<?php echo JText::_('OS_BECOME_AGENT')?>" class="btn"><i class="icon-user"></i><?php echo JText::_('OS_BECOME_AGENT')?></a>
<?php
}elseif($configClass==1){
?>
<BR />
<?php echo JText::_(OS_PUBLISH_YOUR_PROPERTIES_IN_THE_SITE_BY_CLICK_ON_THE_BELLOW_BUTTON)?>
<BR /><BR /><BR />
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_new");?>" title="<?php echo JText::_('OS_ADD_NEW_PROPERTY')?>" class="btn"><i class="icon-edit"></i><?php echo JText::_('OS_ADD_NEW_PROPERTY')?></a>
<?php
}
?>
<BR /><BR />
and remove some <BR /> tag to suit you need.
Good luck
Dam
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.