From: Alexandre L. <ale...@le...> - 2005-10-12 22:00:09
|
Dear list, I find that the 10 hot comments block can take too much real estate, I want to change this to 5 hot comments. I checked in the blocks table with nothing to update to make such a change. I also took a look at portald and found some code (copied below), but no "10" value or $A (?) to modify. Is this hardcoded somewhere else? Thanks :-) Alex sub getTop10Comments { my $A = $backupdb->getTop10Comments; my $reasons = $slashdb->getReasons; my $block; foreach (@$A) { my($sid, $title, $cid, $subj, $d, $nickname, $points, $reason) = @$_; $block .= <<EOT; · <b><a href="$gSkin->{rootdir}/comments.pl?sid=$sid&cid= $cid">$subj</a> ($points points, $reasons->{$reason}{name}) by $nickname</b> on $d <small>attached to <a href="$gSkin->{rootdir}/article.pl?sid=$sid">$title</a></ small>$br EOT } setblock('top10comments', $block); } |