Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Popular Cutoff

Quote Reply
Popular Cutoff
How can i change what the popular cutoff is? it is default at 2 how do i change?
Quote Reply
Re: Popular Cutoff In reply to
Search for this in nph-build.cgi

Code:
# Sort the popular list, and set the cutoff mark.
@popular = sort { $b <=> $a } @popular;
($db_popular_cutoff < 1) ?
($cutoff = $popular[int($db_popular_cutoff * $#popular)]) :
($cutoff = $popular[$db_popular_cutoff - 1]);
($cutoff < 2) and ($cutoff = 2);

Change the 2 in ($cutoff < 2) and ($cutoff = 2); to the number that you want.
Quote Reply
Re: Popular Cutoff In reply to
Thanks alot!