Gossamer Forum
Home : Products : Links 2.0 : Customization :

Bumping up up Top # of rated sites sites...

Quote Reply
Bumping up up Top # of rated sites sites...
Anyone know how (if possible) to adjust the Top 10 sites to Top 25,50, or 100? =)
Quote Reply
Re: Bumping up up Top # of rated sites sites... In reply to
Sorry, I thought I had an answer for you, but I looked in the wrong place. Let me get back to you on this a bit later.

[This message has been edited by Bobsie (edited March 11, 1999).]
Quote Reply
Re: Bumping up up Top # of rated sites sites... In reply to
Okay, I think I found the right place this time. In sub build_rate_page of nph-build.cgi, find the following:

Code:
if (($#top_votes < 9) or ($votes > $top_votes[$#top_votes])) {
push (@{$top_votes{$votes}}, @values);
if ($#top_votes <= 10) {

If I am not mistaken, you can adjust the numbers 9 and 10 to be what you want. The "9" would be changed to one less than what you set the "10" to. So, if you wanted the top 50, 10 would become 50 and 9 would become 49. I am not sure I am right though, so backup before making changes.
Quote Reply
Re: Bumping up up Top # of rated sites sites... In reply to
Thx Bobsie,

I don't have that many votes just yet, but I'll try it as soon as I do. Was just wondering for future use. Thanks again!
Quote Reply
Re: Bumping up up Top # of rated sites sites... In reply to
Would anyone have any idea how to make a Top 25 for each separate main category?

I've done the changes as Bobsie suggested to my website but am also waiting for more votes. However, I changed the $top_rated variable instead of $top_votes. I'm hoping this will make it list the sites which are top rated, and not do it by number of votes.