Go Back   Mosets Community > Archives > Mosets Hot Property 1.0 > Discussions, Troubleshooting and Problems

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-01-2009, 09:50 AM
mattejennings mattejennings is offline
Mosets'd
 
Join Date: Aug 2008
Posts: 81
Default Sold and Reduced Overlays on Beta 5

Hello,
I had a great hack working that allowed me to have SOLD and Reduced PNG overlays over the main picture in a listing. I list below how I did this but in Beta 5 there is a special gallery plugin to handle the pictures. How do I do this same hack on the new version?.

I did this by going to this file:
Components/com_hotproperty/views/property/tmpl/default.php

and adding this code:

<div id="hp_view_standard_photo_con3"><img name="standard_photo" src="<?php echo HOTPROPERTY_MEDIA_IMAGES_STANDARD_URL.$this->images[0]->standard; ?>" alt="<?php echo htmlspecialchars($this->images[0]->title); ?>">

<?php // Display the watermark if the property is Sold

if ($this->p->type=='Recently SOLD') { ?>
<span class="sellingstatus"></span>
<?php } ?>

<?php // Display the watermark if the property is reduced

if ($this->p->pricestatus=='Reduced') { ?>
<span class="pricestatus"></span>
<?php } ?>


and used this CSS:

/*----sold and reduced overlay---*/
#hp_view_standard_photo_con3 span.pricestatus {

background: url(../images/reduced.png);
background-repeat:no-repeat;
display:block;
position:absolute;
top:0px;
left:0px;
width: 100px;
height: 90px;

}

#hp_view_standard_photo_con3 span.sellingstatus {

background: url(../images/sellingstatus.png);
background-repeat:no-repeat;
display:block;
position:absolute;
top:0px;
left:0px;
width: 100px;
height: 90px;

}
  #2  
Old 10-13-2009, 06:00 AM
rtenny rtenny is offline
Mosets'd
 
Join Date: Sep 2006
Location: Spain
Posts: 613
Default

wow, I always wanted to do that and never worked it out. Thanks for this.
I will have a look how the new gallery plug-in can be changed to allow for this
__________________
On the box it said "Needs Win98 or better" - so I installed Linux.
  #3  
Old 10-13-2009, 01:33 PM
landlordslink landlordslink is offline
Mosets'd
 
Join Date: Feb 2009
Location: Wanganui New Zealand
Posts: 145
Default

Great i like sharing!
__________________
www.realestate365.co.nz
  #4  
Old 10-13-2009, 11:27 PM
Stijn's Avatar
Stijn Stijn is offline
Mosets'd
 
Join Date: Oct 2006
Location: The Netherlands
Posts: 253
Default

Indeed a very nice option!
How somebody can get this to work with Beta5

Stijn
__________________
www.trouwportaal.nl
Joomla 2.5.x and Mosets Tree 3.0.x
  #5  
Old 10-16-2009, 03:41 AM
mattejennings mattejennings is offline
Mosets'd
 
Join Date: Aug 2008
Posts: 81
Default

Anyone figure this out yet. I think the span tags will need to be added to the gallery plugin some how.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +8. The time now is 12:12 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.