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 ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Deleted but still nothing.
|
|
#6
|
||||
|
||||
|
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 |
|
#7
|
|||
|
|||
|
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?
|
|
#8
|
||||
|
||||
|
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 |
|
#9
|
|||
|
|||
|
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?
|
|
#10
|
||||
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |