Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager Add-ons:
Random.php minor problem

 

 


mbodamer
User

Mar 2, 2006, 9:59 AM

Post #1 of 4 (2398 views)
Shortcut
Random.php minor problem Can't Post

Hi,

I have the random listing script working fine except for the following. I cannot get the link to go directly to the listing. For instance, I edited the template to strip it down to just a box with the featured listing in it. It randomly grabs the listing and plugs in the listing name, a photo, and you can clikc the photo. When I click the photo it goes to /listings instead of /listings/l0001.shtml



I am not sure what I am missing and I am a little confused with the template variables.



currently I have it set to link to $listing_url$/$listing_file$ and it takes me to www.sitename.com/listings

I treid $listing_url$/$listing_file_ue$ and the result is www.sitename.com/listings/

I tried $listing_url$/$listing_file$/$listing_num$ and the result is www.sitename.com/listings//1

I also tried $listing_url$/$listing_file$/$listing_num_ue$ and teh result is www.sitename.com/listings//1



My desired effect would be www.sitename.com/listings/l0001.shtml (or whatever listing number it pulled)

attached is my template file.

thanks in advance.
Attachments: _publish_random_listing.html (2.77 KB)


MikeB
Staff / Moderator


Mar 3, 2006, 12:14 PM

Post #2 of 4 (2368 views)
Shortcut
Re: [mbodamer] Random.php minor problem [In reply to] Can't Post

Hi mbodamer,

Thanks for the post! Smile

The reason the URL for the listing page isn't showing up is actually because with any version of _publish_listing.html viewed through search.cgi the $listing_file$ variable doesn't actually have a value.

To get around this, the easiest thing to do may be to use a copy of the _search_results.html template file for the random.php script. You could call this something like _search_results_random.html.

This way you'll still have access to all 75 of the listing fields, the preview image, and the ability to link to the detailed listing page (l000X.html).

I hope this helps and if you have any other questions feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


mbodamer
User

Mar 7, 2006, 9:03 PM

Post #3 of 4 (2266 views)
Shortcut
Re: [MikeB] Random.php minor problem [In reply to] Can't Post

Ok a dumb question... if i already have my modified template coulding i just copy the top half of the search results template and paste it on my modified one rather then saving the search template and customizing it all over?

for instance,the top part that describes the available params?????


Cliff
Staff


Mar 8, 2006, 5:15 PM

Post #4 of 4 (2231 views)
Shortcut
Re: [mbodamer] Random.php minor problem [In reply to] Can't Post

Hi mbodamer,

Thanks for posting.

Yes, that should work. Give it a try and let me know if it doesn't work for you or if you get stuck along the way.
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4