Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Sorting by Date

Quote Reply
Sorting by Date
Ok...I've decided against rotating links. What I want to do is put the newest links up top by date order. How do I do this.

Forgive my ignorance but I just got this script installed.

HotMop


http://link-fabulous.com
Groovy adult links
Quote Reply
Re: Sorting by Date In reply to
In the Links.pm file edit the search order for the categories to "Date_Added DESC"



Quote Reply
Re: Sorting by Date In reply to
Ok...I've tried changing the following code:
# The default sort orders for links.
$LINKS{build_sort_order_category} = "isNew,isPopular,Title";
$LINKS{build_sort_order_new} = "Add_Date,Title";
$LINKS{build_sort_order_cool} = "Title";
$LINKS{build_sort_order_search} = "isNew,isPopular,Title";

To what you suggested but it doesn't work. It either still puts the links in alphabetical order if I change the (build__sort_order_search) code or if I change the(build_sort_order_category) code it doesn't list any links.

Am I changing the right code?


http://link-fabulous.com
Groovy adult links
Quote Reply
Re: Sorting by Date In reply to
You can't change the search order.... it's a "bug" in the routines that returns them in score order only.

$LINKS{build_sort_order_category} = "Add_Date DESC";

Should change the sort order for the links display.







Quote Reply
Re: Sorting by Date In reply to
Thanks...that last bit of code did it.

http://link-fabulous.com
Groovy adult links