68 Classifieds Forums

Seperating ads in Horizontal Featured from Vertical

This is a discussion on Seperating ads in Horizontal Featured from Vertical within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; Hello, Pre upgrade to v3.1.0 I had altered my 2 featured ads columns to the following: includes/template/plugins/function.feature_listings_horizontal.php from: $sSQL="SELECT id,title,price ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-04-2006, 11:17 AM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
GSP is on a distinguished road
Default Seperating ads in Horizontal Featured from Vertical

Hello,

Pre upgrade to v3.1.0 I had altered my 2 featured ads columns to the following:

includes/template/plugins/function.feature_listings_horizontal.php
from:
$sSQL="SELECT id,title,price FROM ".PREFIX."products WHERE display = 'Y' AND expiration > NOW() AND featured = 'Y' ORDER BY rand() LIMIT ".$number;
to:
$sSQL="SELECT id,title,price FROM ".PREFIX."products WHERE display = 'Y' AND expiration > NOW() AND featured = 'Y' AND owner=2 ORDER BY rand() LIMIT ".$number;

This was to make my verticall featured ads for customers keeping the horizontal featured ads for me alone (administrator). After the upgrade the site combines the two so my ads appear both in horizontal and vertical and customer ads appear in both horizontal and vertical. I’ve looked in the above listed file and it is the way it should be. Anyone know how I can get this to work again for this new version.
Also, my horizontal featured ads now have the Title and Price listed below the image where as before it was to the right. I’ve tried numerous changes to this: "' td_attr='valign="middle" align="left"'} in the Home page but can’t get the text to appear to the left.
Any help on these two issues would be very much appreciated. Thanks

V3.1.0

Reply With Quote
  #2  
Old 05-04-2006, 11:19 AM
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

If you still have those old files you should be safe to upload them. I did change some formating in them but the coding should still be basically the same.
__________________
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
  #3  
Old 05-04-2006, 11:54 AM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
GSP is on a distinguished road
Default

No change Eric. Both sets of ads are still being displayed in both featured ads columns and text is still being displayed below the horizontal featured ad image instead of to the right.
Reply With Quote
  #4  
Old 05-04-2006, 11:57 AM
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

I am not sure if this will make a difference or not but can you try going to your administration -> maintenance and deleting the compiled templates?
__________________
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
  #5  
Old 05-04-2006, 12:02 PM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
GSP is on a distinguished road
Default

Deleted but still nothing.
Reply With Quote
  #6  
Old 05-04-2006, 12:10 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

Can you open the file off the server and make sure it is actually overwriting the old one?
__________________
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
  #7  
Old 05-04-2006, 12:40 PM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
GSP is on a distinguished road
Default

I don't see that these 2 files even exist in the Full Install of version 3.1.0. The 2 files from what I can tell are actualy the originals used from the last version, they look exactly the same pre and post upgrade. Maybe to make this change it has to be done somewhere else now?
Reply With Quote
  #8  
Old 05-04-2006, 12:50 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

I think I know what the problem is. The file structure did change a little so the smarty plugins directory is now located at:
includes/classes/smarty/plugins/
__________________
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
  #9  
Old 05-04-2006, 12:55 PM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
GSP is on a distinguished road
Default

Ahhh yes. Would I be safe to replace these 2 files within includes/classes/smarty/plugins with my old? If so can I also just delete the 2within includes/template/plugins or should I leave them?
Reply With Quote
  #10  
Old 05-04-2006, 01:13 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

Yes either option should be ok.
__________________
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
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
Need help with Featured items display sedonagate v3.1 Questions & Support 2 09-18-2006 01:18 PM
Featured Listings Vertical SkGold HTML, CSS, and Design Help 8 06-10-2006 02:08 AM
Featured Ads Bucketman v3.1 Questions & Support 2 05-12-2006 05:51 AM
Freatured Listing going vertical? newone v3.0 Questions & Support 2 04-18-2006 10:05 AM
Extra Options in Featured Ad Package SkGold v3.0 Questions & Support 7 04-09-2006 06:56 PM


All times are GMT -4. The time now is 05:05 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