- Posts: 71
- Thank you received: 0
OS Property support center
EPC Certificates
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
11 years 1 week ago #44790
by Imotrust
Replied by Imotrust on topic EPC Certificates
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44791
by Imotrust
I dont no how can i call the image on watermark
can you help?
Replied by Imotrust on topic EPC Certificates
the code on function drawGraph($energy, $climate) is this:
...
if($r_energy <= intval($configClass)){
$e_height = 0;
$img = Amais;
}elseif(in_array($r_energy, range(intval($configClass) + 1,intval($configClass)))){
$e_height = 37;
$img = A;
...
$img = A; --- "A" is the name of image that i put here:
<div style="'.$dstyle.' position: absolute; top: ' . $e_height . 'px; right: -30px; width: 18%; text-align: center; " class="os_dpe_marker m_energy" ><img src=" imotrust.pt/components/com_osproperty/images/'.$img.'.png ">
...
if($r_energy <= intval($configClass)){
$e_height = 0;
$img = Amais;
}elseif(in_array($r_energy, range(intval($configClass) + 1,intval($configClass)))){
$e_height = 37;
$img = A;
...
$img = A; --- "A" is the name of image that i put here:
<div style="'.$dstyle.' position: absolute; top: ' . $e_height . 'px; right: -30px; width: 18%; text-align: center; " class="os_dpe_marker m_energy" ><img src=" imotrust.pt/components/com_osproperty/images/'.$img.'.png ">
'.$energy.'%
I dont no how can i call the image on watermark
can you help?
Please Log in or Create an account to join the conversation.
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44792
by Imotrust
Replied by Imotrust on topic EPC Certificates
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13058
- Thank you received: 1696
11 years 1 week ago #44807
by Mr. Dam
Replied by Mr. Dam on topic EPC Certificates
Hi,
You can hack into the function : generateWaterMark in file
components > com_osproperty > helpers > helper.php to change the watermark function.
Currently, this function is getting configure parameters for adding watermark image. But you can change it to get the EPC value to add into property's pictures
Thanks
Dam
You can hack into the function : generateWaterMark in file
components > com_osproperty > helpers > helper.php to change the watermark function.
Currently, this function is getting configure parameters for adding watermark image. But you can change it to get the EPC value to add into property's pictures
Thanks
Dam
The following user(s) said Thank You: Imotrust
Please Log in or Create an account to join the conversation.
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44855
by Imotrust
Replied by Imotrust on topic EPC Certificates
Sorry, i dont want chance The watermark, but do sonething like The category type, Take The parameters img from graph funtion but i dont now how. Can tou help me doing that?
They are some good things to future update we cab help mutualy.
Thanks, i apretiate your help
They are some good things to future update we cab help mutualy.
Thanks, i apretiate your help
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13058
- Thank you received: 1696
11 years 1 week ago #44869
by Mr. Dam
Replied by Mr. Dam on topic EPC Certificates
Hi,
OK, you can check the listing layout:
components > com_osproperty > template > current_template > listing.html.tpl.php
for example, theme1
find this code
<div class="ospitem-watermark_category">
<?php echo $row->category_name;?>
</div>
<div class="ospitem-watermark_types">
<?php echo $row->type_name;?>
</div>
Thanks
Dam
OK, you can check the listing layout:
components > com_osproperty > template > current_template > listing.html.tpl.php
for example, theme1
find this code
<div class="ospitem-watermark_category">
<?php echo $row->category_name;?>
</div>
<div class="ospitem-watermark_types">
<?php echo $row->type_name;?>
</div>
Thanks
Dam
The following user(s) said Thank You: Imotrust
Please Log in or Create an account to join the conversation.
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44871
by Imotrust
Replied by Imotrust on topic EPC Certificates
Yes, i now... i dont now how can i put the marker image of graph.
like:
<img src="imotrust.pt/components/com_osproperty/images/'.$img.'.png">
$img - stay on graph funtion
like:
<img src="imotrust.pt/components/com_osproperty/images/'.$img.'.png">
$img - stay on graph funtion
Please Log in or Create an account to join the conversation.
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44872
by Imotrust
Replied by Imotrust on topic EPC Certificates
Because is a image that say the class(steps) of energy of the property (A+,A,B,B-,C,D,E or F),
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13058
- Thank you received: 1696
11 years 1 week ago #44898
by Mr. Dam
Replied by Mr. Dam on topic EPC Certificates
Hi,
I think, you need to change the configure options of OS Property too. It will need quite a lot of work. Now, if you go to Configuration page > Tab Property. You will see a list of EPC levels. A,B,C,D,E,F. You must change it to add A+, B-.
The configuration MySQL table is: #__osrs_configuration
Configuration source file for tab Property is: administrator > components > com_osproperty > classes > configuration > Property > property.php
And then, you will need to hack into file common.php to show those EPC levels
Good luck
Dam
I think, you need to change the configure options of OS Property too. It will need quite a lot of work. Now, if you go to Configuration page > Tab Property. You will see a list of EPC levels. A,B,C,D,E,F. You must change it to add A+, B-.
The configuration MySQL table is: #__osrs_configuration
Configuration source file for tab Property is: administrator > components > com_osproperty > classes > configuration > Property > property.php
And then, you will need to hack into file common.php to show those EPC levels
Good luck
Dam
The following user(s) said Thank You: Imotrust
Please Log in or Create an account to join the conversation.
- Imotrust
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 0
11 years 1 week ago #44916
by Imotrust
Replied by Imotrust on topic EPC Certificates
Hi,
I already have the graphic working, i already do this in last week, i dont now what is the code that i need to put on listing.html.tpl.php
<div class="ospitem-watermark_category">
<?php echo $row->category_name;?>
</div>
<div class="ospitem-watermark_types">
<?php echo $row->type_name;?>
</div>
i create a new div and on css:
<div class="ospitem-watermark_energy">
<img src="imotrust.pt/components/com_osproperty/images/'.$img.'.png"> which code should I use the $img dont work
</div>
Thanks, i apretiate your help
I already have the graphic working, i already do this in last week, i dont now what is the code that i need to put on listing.html.tpl.php
<div class="ospitem-watermark_category">
<?php echo $row->category_name;?>
</div>
<div class="ospitem-watermark_types">
<?php echo $row->type_name;?>
</div>
i create a new div and on css:
<div class="ospitem-watermark_energy">
<img src="imotrust.pt/components/com_osproperty/images/'.$img.'.png"> which code should I use the $img dont work
</div>
Thanks, i apretiate your help
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.