Webmastersite.net
Register Log In

Drop down sort on Display Links

Comments on Drop down sort on Display Links

Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Apr 04, 2005 - 12:06 AM:

I have dropdown sorts on my displaylinks.tpl pages. I offer three options: sort by newest games, most popular and top rated. The problem is that when people sort by top rated, results will bring up links that have only 1 vote with a perfect score over a link with 10 votes and a perfect score.

Two things I'd like to be able to do, if possible:

1. automatically have a secondary sort of most votes to least.
2. (this one is a longshot) first show results of top rated links with 10+ votes only, then show top rated links with less than 10 votes.

I ask about #2 just in case it's possible, but otherwise I'd like to be able to implement #1.

To see sort in action: www.gamelinks.com/index.php...?action=displaycat&catid=5

Thanks,
Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 04, 2005 - 10:25 AM:

1. Doesn't your default secondary sort automatically apply regardless of primary sort selected? I believe it does.
2. Other than multiple toplists I don't see a way.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Apr 04, 2005 - 10:39 AM:

If you go to the above link and sort by Top Rated, the first link has only 1 vote and a rating of 5, and the second link has several votes and a rating of 5.

In General Appearance, the only place I have the option for a secondary sort is title ascending. Would this be where I would change the secondary for this sort? The problem here is that I want that secondary sort for my default display of links, and when sorting by ranking, I want my secondary differently. Is there some way I can do this?

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 05, 2005 - 9:18 PM:

You can only have one secondary sort order, it can't vary.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.