OS Property support center

Doubt Os Property

  • Mari Carmen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #54389 by Mari Carmen
Doubt Os Property was created by Mari Carmen
Hello,
I have a few questions about configuration OsProperty:

1.- Is it possible translate the EPC medition? It is in kWH/m and I'm interested to appear the text "Kg. C O2 / M2"
2.- Is it possible delete the text "Created in ..." with the creation date?
3.- Is is possible to change "Default sorting by"? For example, it was only possible to sort by price.
I suppose to add other value, for example location, is changing the php code ... is it?

Thank you very much

MC

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

More
10 years 5 months ago #54397 by Mr. Dam
Replied by Mr. Dam on topic Doubt Os Property
Hi Mari,
1.To chang kWH/m to Kg. CO2/M2, you can follow these steps
- Open file: components > com_osproperty > helpers > common.php
- find kWH/m and change to Kg. CO2/M2
2. Can you send me the screenshot.
3. Where is the "Default sorting by" you mentioned?
Thanks
Dam

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

  • Mari Carmen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #54422 by Mari Carmen
Replied by Mari Carmen on topic Doubt Os Property
Hello Dam,

Imagen1.jpg --> Default sortin by (As you want to order the properties)
Imagen2.jpg --> Date Creation when you see details of one property

Another question...
When I loaded images, I didn´t change the size in configuration and the medium size has two black sidebands.
My images has 640x480 px, if I change the size in configuration and change the fill color (imagen3.jpg) and rebuild the images (option dashboard) ... is that correct?
When you clic one image to see it larger, the number of images is doubled (imagen4.jpg). For example, If there are 13 images, you see 13 of 26.

Thank you very much Dam

M.C
Attachments:

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

More
10 years 5 months ago #54425 by Mr. Dam
Replied by Mr. Dam on topic Doubt Os Property
Hi Mari,
1. Remove the creation date in Property details,
components > com_osproperty > templates > theme1 > details.html.tpl.php
find

<li class="property-icon-square meta-block">
<?php echo JText::_('OS_CREATED_ON');?>:
<span>
<?php
//echo date("D, jS F Y",$created_on);
echo JHTML::_('date', $row->created , 'D, jS F Y');
?>
</span>
</li>

and remove it

2. Change value of dropdown select list Default sorting.
Currently, in Advanced search > Default sorting Dropdown select list. We have several options like Featured, Ref#, Price, Square meter..etc, but if you want to add more options, you can modify
components > com_osproperty > classes > listing.php
find this code and make the change

$optionArr = array();
$optionArr[] = JHTML::_('select.option','a.isFeatured',JText::_('OS_FEATURED'));
$optionArr[] = JHTML::_('select.option','a.ref',JText::_('Ref'));
$optionArr[] = JHTML::_('select.option','a.pro_name',JText::_('OS_PROPERTY_TITLE'));
$optionArr[] = JHTML::_('select.option','a.id',JText::_('OS_LISTDATE'));
$optionArr[] = JHTML::_('select.option','a.modified',JText::_('OS_MODIFIED'));
$optionArr[] = JHTML::_('select.option','a.price',JText::_('OS_PRICE'));
if($configClass == 1){
if($configClass == 0){
$optionArr[] = JHTML::_('select.option','a.square_feet',JText::_('OS_SQUARE_FEET'));
}else{
$optionArr[] = JHTML::_('select.option','a.square_feet',JText::_('OS_SQUARE_METER'));
}
}
$lists = JHtml::_('select.genericlist',$optionArr,'sortby','class="input-small"','value','text',$sortby);



Thanks
Dam

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

More
10 years 5 months ago #54427 by Mr. Dam
Replied by Mr. Dam on topic Doubt Os Property
With other problems related to images, i need you setup ticket and send your site information with super admin account. So i can check the issue for you
Thanks
Dam

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

  • Mari Carmen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #54488 by Mari Carmen
Replied by Mari Carmen on topic Doubt Os Property
Hi Dam,

I have modified the details.html.tpl.php and listing.php and It is OK (thanks)

I have tried to change common.php but when I Upload th file to server, the menu option with Layout: Property listing layout doesn´t works (instead to show the properties, to appear a blanck page). It´s curious because If I download the file, without changing anything again I upload file, It doesn´t work (previously I have rename the original file to common_ORIGINAL.php).

Respect to images, My company doesn´t let me to give password of super admin user :(
Can I to do anything?

MC

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

More
10 years 5 months ago #54491 by Mr. Dam
Replied by Mr. Dam on topic Doubt Os Property
Hi,
Please remove the backup file in the same folder "helpers" or "classes", the issue will be solved
Thanks
Dam

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

  • Mari Carmen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #54510 by Mari Carmen
Replied by Mari Carmen on topic Doubt Os Property
Ok Dam,

It works fine !!!!

Thank very much

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

More
10 years 5 months ago #54561 by Mr. Dam
Replied by Mr. Dam on topic Doubt Os Property
You are welcome :)
Dam

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

Moderators: Mr. DamNguyen Phu Quan