Support Forums

Horizontal & Featured Listings With Styling

This is a discussion on Horizontal & Featured Listings With Styling within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I triple checked everything but still no luck. I have no idea what`s the cause....


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 11-12-2008, 11:53 AM   #11
Member
 
Join Date: May 2008
Posts: 66
Rep Power: 18
SecondShoe is just really nice SecondShoe is just really nice
Default

I triple checked everything but still no luck. I have no idea what`s the cause.
SecondShoe is offline   Reply With Quote
Old 11-12-2008, 05:14 PM   #12
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hey guys I just downloaded the functions and that one does have a php error.

At the top it has:
Code:
<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     random
 * Purpose:  output a latest number between $varIn and $varOut:
 *    {random in=$varIn out=$varOut}
<?php
Notice the two "<?php" lines. The second needs to be deleted.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 11-13-2008, 12:02 PM   #13
Member
 
Join Date: May 2008
Posts: 66
Rep Power: 18
SecondShoe is just really nice SecondShoe is just really nice
Default

I deleted the second "<?php" but I still get the error.
I localized the problem. After a quick test I noticed that "function.css_random_listings_horizontal" is working properly on my site. The only difference between "function.css_random_listings_horizontal" and "function.css_latest_listings_horizontal" is a small piece of code:

"function.css_random_listings_horizontal" (working properly):
PHP Code:
$sSQL="SELECT id,title,price FROM ".PREFIX."listings WHERE display = 'Y' AND expiration > NOW() ORDER BY rand() LIMIT ".$number
"function.css_latest_listings_horizontal"(not working on my site):
PHP Code:
$sSQL="SELECT p.id, p.owner, p.title, p.featured, p.section, p.description, p.price, p.dateadded, p.expiration, p.pHighlighted, p.pBold, u.state, u.city, u.country FROM ".PREFIX."listings AS p LEFT JOIN ".PREFIX."users AS u ON p.owner = u.id WHERE p.expiration > NOW() AND p.display = 'Y' ORDER BY p.dateadded DESC LIMIT ".$number
My PHP knowledge is very limited and I can't find the problem.

Last edited by SecondShoe; 11-13-2008 at 12:09 PM.
SecondShoe is offline   Reply With Quote
Old 11-13-2008, 03:51 PM   #14
Member
 
Join Date: May 2008
Posts: 66
Rep Power: 18
SecondShoe is just really nice SecondShoe is just really nice
Default

After a long copy/paste session I got it working (I don't know how). I am not sure but maybe there is something wrong with the formatting of the original function.css_latest_listings_horizontal.php .

Last edited by seymourjames; 11-21-2008 at 07:11 PM. Reason: I do need to suppress this as it is a complete copy of the plugin. I have written to secondshoe as a courtesy to explain.
SecondShoe is offline   Reply With Quote
Old 11-14-2008, 01:37 PM   #15
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
Default

I see the error on one of the plugins. Many thanks.

I have reposted the corrected plugin for download. It was passing on my machine between the comments but perhaps not on others. It looks like it was only the latest listings module and the others were ok.

Thanks for the heads up.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 11-14-2008 at 01:45 PM. Reason: action taken
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Featured Listings Modifcation anna245 Technical Support 0 05-02-2008 11:23 AM


All times are GMT -4. The time now is 02:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0