 |

marcin
User
Sep 5, 2002, 5:34 AM
Post #1 of 2
(1351 views)
Shortcut
|
New image next to new listings !
|
Can't Post
|
|
Hi Evrybody ! I have idea and a question. I would like to add a icon/ image which will show up next to the new listings. For example if the listings will be entered today there will be a new icon next to it. Also on index page I would like place “Today we have 3256 listings available in database” so if somebody will be able to help me out with this I will appreciate.
|
|
|  |
 |

dlo_itools
Staff

Sep 5, 2002, 10:51 AM
Post #2 of 2
(1340 views)
Shortcut
|
|
Re: [marcin] New image next to new listings !
[In reply to]
|
Can't Post
|
|
Highlighting of new listings is supported in Realty Manager's search function, but not in the static (published) pages. However, you can use a server-side include (SSI) to do a search and get back listings with [new] highlights. For example, if you do http://www.yoursite.com/cgi-bin/rm/search.cgi?search=1&shownew=7&marknew=2 you'll get the listings that are new in the last 7 days, with the listings in the last 2 days highlighted. You can incororate the above as you main page, or as a frame, or even as a "See Our Newest Listings" link. Take a look at this thread for some ideas: http://www.interactivetools.com/forum/forum.cgi?post=448 As for a count of the listings, there is no placeholder for that. However, you can use the a combination of server side includes and a simple Perl script to get the results. #!/usr/bin/perl $count=0; open(F,"<../data/listing.dat.cgi"); while (<F>) { $count++; } close(F); $count -= 3; print $count; Save the above as count_listings.cgi in your rm/exec/ directory. Then add the following in your template <p>We have <!--#include virtual="/rm/exec/count_listings.cgi" --> Listings! Note: Depending on how your web hosting configuration, you may have to use a .shtml extension on your filenames to use server side includes. /Dave Lo
|
|
|  |
 | |  |
|