Anyone know how (if possible) to adjust the Top 10 sites to Top 25,50, or 100? =)
Mar 11, 1999, 11:55 AM
Veteran / Moderator (3108 posts)
Mar 11, 1999, 11:55 AM
Post #2 of 5
Views: 270
Mar 11, 1999, 12:20 PM
Veteran / Moderator (3108 posts)
Mar 11, 1999, 12:20 PM
Post #3 of 5
Views: 268
Okay, I think I found the right place this time. In sub build_rate_page of nph-build.cgi, find the following:
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.
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.
Mar 12, 1999, 7:05 PM
User (57 posts)
Mar 12, 1999, 7:05 PM
Post #5 of 5
Views: 270
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.
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.

