Gossamer Forum
Quote Reply
A little help needed
can u help me with one little links 2 modification, i bet even ur one finger would be able to do this!
basically what i did is create a average out of hits + votes
here's what i did in site_html_templates.pl

sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like.

my %rec = @_;
$rec{'waverage'} = int(($rec{'Hits'} + $rec{'Votes'})/2);

right now what i want to do is sort my links by this waverage, from highest to lowest, yeah and this work out my equation, i can call it with <%waverage%> in links.html

p.s: have a nice holiday and happy new year!