|
|
#1 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1 ![]() |
Hi there, ( v4.0.9 Hosted )
Is it possible in both feature_listings_horizontal to have the listings to appear in order of dated added, with the newest featured listings showing first ? I would also like to do the same with the search results if possible ??? I have set (in admin) my search results to appear as featured listings first, which they do but the oldest ones keep appearing first. Any thoughts ??? Many thanks for your time Jason |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
The easiest thing would be to just change your link in the template:
Instead of toplistings.php?pg=featured Change it to: toplistings.php?pg=featured&sortfield=dateadded&so rtorder=desc
__________________
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 | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1 ![]() |
below is my search field for a quick search of my site, How do I make the featured results appear first BUT with the newest showing first, I have changed the search results in admin to show featured first, but they seem to appear in the order they were placed and NOT with the newest showing first ?
<td COLSPAN=2><center><form name="fastsearch" id="fastsearch" method="get" action="searchresults.php"> <input name="searchtext" type="text" id="searchtext" /> <input type="submit" name="Submit" value="Search us" /> </form></center> </td> also how do I make my feature_listings_horizontal appear by the newest featured listings showing first <h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2> {feature_listings_horizontal cat=108 number=12 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'} as these sem to appear in a ramdom order, Many thanks Jason |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
In that case the only way would be to manually edit the includes/classes/kernel/Listings file and manually change the sorting.
__________________
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 | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1 ![]() |
Hi Eric,
Thanks for pointing me in the right direction, however, when I got there and started to scroll through it, I reaslised I never had a clue what bit I need to change, and even if I knew that. I would not have a clue what to put. If it is not too time consuming on your part, could you please let me know exactly what I need to put and where ?? Many Thanks Jason |
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
You will need to look in the getAllListings method inside that file.
It has two switch statements that handle the sorting and you would either need to remove that and force it to sort or alter that. This method is ran anywhere a list of ads is displayed. This includes frontend and backend.
__________________
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 | 68 @ Twitter | My Modules |
|
|
|
|
|
#7 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1 ![]() |
Hi there,
Could somebody please assisit me with this, as I am totallt lost as to which bit I need to alter and what to alter it to Many thanks Jason |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make Horizontal Feature Listings 3 Rows deep? | Bronxgodzilla | v4 Questions & Support | 7 | 03-06-2009 05:52 AM |
| Users cannot edit admin added listings | mikthefinn | v4 Questions & Support | 6 | 02-02-2009 06:40 PM |
| Show Listings help | dollpage | v4 Questions & Support | 3 | 10-09-2008 09:09 PM |
| show feature listings by extra field | icex | v4 Questions & Support | 1 | 10-09-2008 10:27 AM |
| Feature listings files location | SkGold | v3.1 Questions & Support | 3 | 05-27-2006 09:08 PM |