Gossamer Forum
Home : Products : Links 2.0 : Customization :

Cool links 2 hits only?

Quote Reply
Cool links 2 hits only?
How do you change the popular hits to a different number? Every time I try to change it in the links.cgf file all I see is that thing that says top 3%. I changed that to 0.10 and now it says top 10% but it doesnt change how many times a link must be clicked to be added to the cool links. could someone help me?

------------------
Patrick Chukwura
http://nytesoft.hypermart.net
Quote Reply
Re: Cool links 2 hits only? In reply to
You can't set the cool link to a fixed number. It's always determined relative to the number of hits your other links have. You can set it to either a percent, or a top x (in version 2).

Cheers,

Alex
Quote Reply
Re: Cool links 2 hits only? In reply to
Try this

In nph-build find this
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 number in this line to what you want to be the min cutoff.
($cutoff < 2) and ($cutoff = 2);

I havent tested this so it might not work Frown

------------------
JRM Studios http://www.jrmstudios.com
The Hotrodding Network http://www.hotrodding.net

Quote Reply
Re: Cool links 2 hits only? In reply to
Alex,

Except that the "Top 10" doesn't work the way it is written.

Code:
($db_popular_cutoff < 1) ?
($cutoff = $popular[int($db_popular_cutoff * $#popular)]) :
($cutoff = $popular[$db_popular_cutoff - 1]);

The second option should be the top x but, when I use it, it returns 0 cool hits because the cutoff is way too high.


[This message has been edited by Bobsie (edited March 11, 1999).]