68 Classifieds Forums

Horizontal & Featured Listings With Styling

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


Go Back   68 Classifieds Forums > Help & Support > v4 Modules / Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #11  
Old 11-12-2008, 12:53 PM
Member
 
Join Date: May 2008
Posts: 64
Rep Power: 4
SecondShoe is on a distinguished road
Default

I triple checked everything but still no luck. I have no idea what`s the cause.
Reply With Quote
  #12  
Old 11-12-2008, 06:14 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,307
Rep Power: 99
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #13  
Old 11-13-2008, 01:02 PM
Member
 
Join Date: May 2008
Posts: 64
Rep Power: 4
SecondShoe is on a distinguished road
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 01:09 PM.
Reply With Quote
  #14  
Old 11-13-2008, 04:51 PM
Member
 
Join Date: May 2008
Posts: 64
Rep Power: 4
SecondShoe is on a distinguished road
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 08: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.
Reply With Quote
  #15  
Old 11-14-2008, 02:37 PM
Moderator
 
Join Date: Mar 2008
Posts: 553
Rep Power: 16
seymourjames has a spectacular aura about
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.
__________________
Version 4.09
TemplatesCodes.com For 68C

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Featured Listings Modifcation anna245 v4 Questions & Support 0 05-02-2008 12:23 PM
Random Featured and Normal listings CHRD v3.1 Modules & Modifications 4 03-02-2008 08:58 PM
Adding a heading to the Featured Listings sporthorsebreeder v3.1 Questions & Support 2 07-21-2006 01:04 PM
Adding a heading to the Featured Listings sporthorsebreeder v3.0 Questions & Support 1 07-21-2006 12:49 PM
Seperating ads in Horizontal Featured from Vertical GSP v3.1 Questions & Support 19 05-04-2006 04:51 PM


All times are GMT -4. The time now is 08:07 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22