Support Forums

Old 03-21-2009, 01:59 AM   #1
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1
jason1971 is on a distinguished road
Default show feature listings by lastest added first

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
jason1971 is offline   Reply With Quote
Old 03-21-2009, 09:18 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote
Old 03-22-2009, 09:26 AM   #3
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1
jason1971 is on a distinguished road
Default Sorry I dont think I explained it properly

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
jason1971 is offline   Reply With Quote
Old 03-22-2009, 10:56 AM   #4
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote
Old 03-23-2009, 12:18 AM   #5
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1
jason1971 is on a distinguished road
Default Awww that blew my mind

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
jason1971 is offline   Reply With Quote
Old 03-23-2009, 09:21 AM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

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
Eric Barnes is offline   Reply With Quote
Old 03-23-2009, 01:57 PM   #7
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 31
Rep Power: 1
jason1971 is on a distinguished road
Default help still needed pls

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
jason1971 is offline   Reply With Quote

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
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


All times are GMT -4. The time now is 11:36 PM.


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