Gossamer Forum
Home : Products : Links 2.0 : Customization :

$db_popular_cutoff = 99.00;

Quote Reply
$db_popular_cutoff = 99.00;
In Links 2.0 'links.cfg' file:
$db_popular_cutoff = 99.00;
is this means that link going to be marked as popular only if the link gets 99 hits?
At the beginning it was set to:
$db_popular_cutoff = 0.03;
and it was only 2 hits before link get popular.
I've changed
$db_popular_cutoff = 0.03;
to
$db_popular_cutoff = 99.00;
but links are still being rated by 2 hits.
Have I missed something?

Thanks,

Pasha

------------------
-[ It's just another night; good morning Webmasters! ]-
Quote Reply
Re: $db_popular_cutoff = 99.00; In reply to
Well I'm using v1.11 and I'm sure it's the same. The $db_popular_cutoff = 0.03 refers to users clicking through your links that have been calculated as being in the top 3%.
It takes the top 3% of your TOTAL hit count.

You've set you're cutoff rate at 99%, that would mean your what's cool page would contain almost all your links that have been clicked through at least once - this depends on the amount of links you actually have.

Set back to 0.03 or if you want more links on your what's cool page try 0.10 or somewhere in between.
Quote Reply
Re: $db_popular_cutoff = 99.00; In reply to
Ok, I need to show only pages, that have been clicked at least 99 times. Whould it be: 0.0099% ???
Please help, I can't figure this out.

Thank you,

Pasha

------------------
-[ It's just another night; good morning Webmasters! ]-
Quote Reply
Re: $db_popular_cutoff = 99.00; In reply to
Look at the nph-build file. In 1.11 there was a routine in it for building the cool/pop pages. In this routine there was a second cut off besides the 3%. Only links which had 2 hits or more could be cool. So in your case i would set this to 99 and then put a 100% in the links.cfg file. That should do the job. Everything that has more then 99 hits is cool/pop. Hope this works to in 2.0.
Quote Reply
Re: $db_popular_cutoff = 99.00; In reply to
It was changed in 2.0. Here's how it works by version:

Version 1.11:
0.03 -> Only the top 3% of your links will be marked cool.
0.99 -> 99% of your links will be cool.
99.00 -> Not right, weird things might happen.

Version 2.0:
0.03 -> 3% of your links will be cool.
0.99 -> 99% of your links will be cool.
99.00 -> The top 99 links will be cool.

There is no way to mark a link cool when it get's x number of hits. It's always relative to the rest of the links.

Cheers,

Alex