My eyes are glazing over at the code in IMAGES.INC.PHP for renderListingsMainImageSlideShow($listingID) trying to figure out how to utilize the slideshow feature for Featured Listing Thumbnails rather than tying it to the current property listing id.
I would like to modify this script (which I would otherwise not use) so that the tag {slideshow_images} can be placed on the home page in the main.html file. Or, a new function (yes, yes, I know, "addon") like {slideshow_featured_images} will slide through the available images associated with all Featured Properties.
Instead of seeing a static display of the featured property thumbnails that I now use I would like to see an animated slideshow of ONE featured property that cycles to the next and the next without requiring the vtour button....while the user is staring in rapt fascination at the home page.
So, user arrives at homepage and a slideshow starts on load that cycles one Featured Property thumbnail after the other instead of the existing OR feature that only changes a display of Featured Properties on a re-load of the home page.
I know that the SELECT in the current renderListingMainImageSlideShow has to incorporate something like this extra query:
if ($config['use_expiration'] === "1")
$sql = "SELECT listingsdb_id, listingsdb_title FROM " . $config['table_prefix'] . "listingsdb WHERE (listingsdb_featured = 'yes') AND (listingsdb_active = 'yes') AND (listingsdb_expiration > ".$conn->DBDate(time()).") ";
}
else
{
$sql = "SELECT listingsdb_id, listingsdb_title FROM " . $config['table_prefix'] . "listingsdb WHERE (listingsdb_featured = 'yes') AND (listingsdb_active = 'yes') ";
I have tried using LEFT JOIN and RIGHT JOIN statments in one big query to link the listingsdb_id in listingsdb with the listingsdb_id field in the listingsimages table while grabbing the listingsimages_thumb_file_name but I am getting either error statements or when I get no error statments the {slideshow_images} tag when placed in my main.html just stays unparsed.
Could the resident geniuses (we all know WHO you are!) show me a snatch of code that transforms the slideshow for individual listings into a slideshow for all unexpired active Featured Listings?
Thank you for your kind consideration...


Reply With Quote


Bookmarks