Show "NEW" image next to new listings
7 posts by 5 authors in: Forums > CMS Builder
Last Post: January 20, 2010 (RSS)
Note: All my listings should show in the Listings Page but only the new additions will have the "NEW" image next to it.
Thank you.
Re: [sagentic] Show "NEW" image next to new listings
Re: [WEVOLUTIONS] Show "NEW" image next to new listings
By Dave - January 17, 2010
Try the following:
- Replace 'date' with the name of your date field
- Replace 30 with the number of days you want "New" to appear for
- Replace NEW! with the <img> tag for your new image
<?php
$secondsOld = time() - strtotime($record['date']);
$daysOld = intval($secondsOld/60/60/24);
?>
Days old: <?php echo $daysOld ?><br/>
<?php if ($daysOld <= 30): ?> NEW! <?php endif ?>
Hope that helps! Let me know if that works for you.
interactivetools.com
Re: [Dave] Show "NEW" image next to new listings
Re: [Dave] Show "NEW" image next to new listings
By Wolf-E - January 20, 2010
Cheers
Re: [Wolf-E] Show "NEW" image next to new listings
By Donna - January 20, 2010
Listings Manager actually has a built in "new listings" template cell on the search results page. Take a look at this page in the docs for more information about how to set what is considered "new" to Listings Manager:
http://www.interactivetools.com/docs/doc.cgi?/listingsmanager/doc_page7.html
We no longer offer free support for Listings Manager, as it's been discontinued for a few years now, but if you need more help with that, feel free to [url =https://www.interactivetools.com/order/]purchase a support ticket[/url] and I'd be happy to walk you through exactly how to set that up step-by-step. :)
--
support@interactivetools.com