Gossamer Forum
Home : Products : Links 2.0 : Customization :

Incoming hits/topsites mod problem

Quote Reply
Incoming hits/topsites mod problem
hello,
i have install the Incoming hits/topsites mod.
but i have the following problem:
the inhits-cutoff is equal the hits cutoff.
sample:
Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 1581 hits
Popular Cutoff: 1581 inhits

is that correct??? Wouldn't the number have to be different? how can i change this or where is the problem?

i hope you can understand my broken english :-)
cu
nico

ps: in links.cfg i have setting for popular cutoff=
$db_popular_cutoff = 10;
$db_inpopular_cutoff = 10;




Quote Reply
Re: Incoming hits/topsites mod problem In reply to
Check the Mod instructions again for the codes you need to add in the nph-build.cgi...it looks like you are NOT using all the codes you need.

Regards,

Eliot Lee
Quote Reply
Re: Incoming hits/topsites mod problem In reply to
Thanks Eliot Lee,

i have check and have found two errors. i dont know, where i have download the mod, but when it the original was, then please check this:


add to:
# Display our cutoffs.
print "\tWhat's New Cutoff: $db_new_cutoff days\n";
print "\tPopular Cutoff: $cutoff hits\n";
this:
print "\tPopular Cutoff: $cutoff inhits\n";

BUT IT MUST BE:
print "\tinPopular Cutoff: $incutoff inhits\n";


AND THE SECOND ERROR:
below:
# Add the link to the list of cool links if it is popular.
push (@{$cool_links{$category}}, @values) if ($values[$db_ispop] eq "Yes");
add:
# Add the link to the list of incoming cool links if it is popular.
push (@{$cool_links{$inhits}}, @values) if ($values[$db_isinpop] eq "Yes");

BUT IT MUST BE:
# Add the link to the list of incoming cool links if it is popular.
push (@{$incool_links{$inhits}}, @values) if ($values[$db_isinpop] eq "Yes");

greetings
nico

Quote Reply
Re: Incoming hits/topsites mod problem In reply to
Looks like you have found the bugs. Does it work now?

Regards,

Eliot Lee
Quote Reply
Re: Incoming hits/topsites mod problem In reply to
Yes, the inCool_Sites functions now.