Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop Box Exchange - Show Box: hotlist_box 1.00

Author: Scoop Developers

Description:

This is the box that will display all of your hotlisted stories

Box Code:

if ($S->{HOTLIST} && $#{$S->{HOTLIST}} >= 0) {
my $box_content;

foreach my $sid (@{$S->{HOTLIST}}) {
my $stories = $S->getstories(
{-type => 'fullstory',
-sid => $sid});
my $story = $stories->[0];

my $show = $S->{UI}->{VARS}->{show_new_comments};
my $num_new = $S->new_comments_since_last_seen($sid) if ($show eq "hotlist" || $show eq "all");

my $end_s = ($story->{commentcount} == 1) ? '' : 's';
$box_content .= qq~%%dot%% <A CLASS="light" HREF="|rootdir|/story/$sid">$story->{title}</a> ($story->{commentcount} comment$end_s~;
$box_content .= ", $num_new new" if defined($num_new);
$box_content .= ")<BR>";
}

my $title = "$S->{NICK}'s Hotlist";
return {title => $title, content => $box_content };
}
Display: Sort:
Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Satanosphere
/* You are not expected to understand this. */

Login
Make a new account
Username:
Password:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search