- Posts: 13020
- Thank you received: 1688
OS Property support center
02 columns on the main page
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
12 years 9 months ago #16933
by Mr. Dam
Replied by Mr. Dam on topic Re: 02 columns on the main page
The changes are not only the files, you need to update database also. And quite a lot files need to be update. So i think, you had better to install the update version.
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- sti
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 9 months ago #16934
by sti
Replied by sti on topic Re: 02 columns on the main page
oh my god.
that would be mean i need to redo all my template design all over?
can u come out with some template solutions? preserve changes to template something ??
that would be mean i need to redo all my template design all over?
can u come out with some template solutions? preserve changes to template something ??
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 9 months ago #16935
by Mr. Dam
Replied by Mr. Dam on topic Re: 02 columns on the main page
Can you let me know what are the files that you have changed? i will let you know how to update the OS Property.
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- sti
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 9 months ago #16936
by sti
Replied by sti on topic Re: 02 columns on the main page
com_osproperty\classes\category.html.php
com_osproperty\templates\default\listing.html.tpl.php
com_osproperty\templates\default\listing.html.tpl.php
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 9 months ago #16938
by Mr. Dam
Replied by Mr. Dam on topic Re: 02 columns on the main page
you only need to backup 2 files :
com_osproperty\classes\category.html.php
com_osproperty\templates\default\listing.html.tpl.php
And after install the update, you can edit the file listing.html.tpl.php
Add this js function line 15 to 24:
... language="javascript"
function loadStateInListPage(){
var country_id = document.getElementById('country_id');
loadStateInListPageAjax(country_id.value,"<?php echo JURI::root()?>");
}
function changeCity(state_id,city_id){
var live_site = '<?php echo JURI::root()?>';
loadLocationInfoCity(state_id,city_id,'state_id',live_site);
}
....
And from line 184 to 204.
<td width="50%" align="left" style="border:0px;font-weight:bold;">
<a href="<?php echo JURI::root()?>index.php?option=com_osproperty&task=property_changelayout&viewtype=2&url=<?php echo JURI::current();?>">
<?php
echo JText::_('OS_CHANGE_TO_GRID_VIEW');
?>
Good luck
Dam
</a>
</td>
<td width="50%" align="right" style="border:0px;font-weight:bold;">
<?php
echo JText::_('OS_RESULTS');
echo " ";
echo $pageNav->limitstart." - ";
if($pageNav->total < $pageNav->limit){
echo $pageNav->total." ";
}else{
echo $pageNav->limitstart + $pageNav->limit." ";
}
echo JText::_('OS_OF');
echo " ".$pageNav->total;
?>
</td>
com_osproperty\classes\category.html.php
com_osproperty\templates\default\listing.html.tpl.php
And after install the update, you can edit the file listing.html.tpl.php
Add this js function line 15 to 24:
... language="javascript"
function loadStateInListPage(){
var country_id = document.getElementById('country_id');
loadStateInListPageAjax(country_id.value,"<?php echo JURI::root()?>");
}
function changeCity(state_id,city_id){
var live_site = '<?php echo JURI::root()?>';
loadLocationInfoCity(state_id,city_id,'state_id',live_site);
}
....
And from line 184 to 204.
<td width="50%" align="left" style="border:0px;font-weight:bold;">
<a href="<?php echo JURI::root()?>index.php?option=com_osproperty&task=property_changelayout&viewtype=2&url=<?php echo JURI::current();?>">
<?php
echo JText::_('OS_CHANGE_TO_GRID_VIEW');
?>
Good luck
Dam
</a>
</td>
<td width="50%" align="right" style="border:0px;font-weight:bold;">
<?php
echo JText::_('OS_RESULTS');
echo " ";
echo $pageNav->limitstart." - ";
if($pageNav->total < $pageNav->limit){
echo $pageNav->total." ";
}else{
echo $pageNav->limitstart + $pageNav->limit." ";
}
echo JText::_('OS_OF');
echo " ".$pageNav->total;
?>
</td>
The following user(s) said Thank You: sti
Please Log in or Create an account to join the conversation.
- sti
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 9 months ago #16939
by sti
Replied by sti on topic Re: 02 columns on the main page
you the best!
Please Log in or Create an account to join the conversation.
- sti
- Offline
- Platinum Member
-
Less
More
- Posts: 448
- Thank you received: 2
12 years 9 months ago #16940
by sti
Replied by sti on topic Re: 02 columns on the main page
by the way
how abt the language changes?will it stay intact for update ?
how abt the language changes?will it stay intact for update ?
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.