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: new_site_news 1.00

Author: hurstdog [Info]


Displays a short message on the front page if the user hasn't visited the newest site news story yet. Can be tailored to any section, and ad_box is just a block with only |content| in it.

Box Code:

return unless ($S->{UID} > 0);

my ($rv, $sth) = $S->db_select({
WHAT => 'sid',
FROM => 'stories',
WHERE => 'section = "sitenews"',
LIMIT => 1,
ORDER_BY => 'time DESC'});
my $sid = $sth->fetchrow();

return unless $sid;


return if (defined($S->{LAST_SEEN}->{$sid}->{lastseen}));

return {content => qq{<table cellpadding=3 cellspacing=0 border=0><tr><td width="12" align="center"><IMG SRC="|imagedir|/alert.gif" width=12 height=16 alt="!" border=0></td><td><b>There is <A HREF="/story/$sid">New Site News</A>.</b></td></tr></table>}};
Display: Sort:
Block (none / 0) (#1)
by BenedictRArnold on Wed May 02, 2018 at 12:57:40 AM PST

Thanks for mypaperwriter reviews information to discuss. Through this, we can easily block the unwanted stuff or also put this aside into the box. This was really useful information and I am eager to have some more exceptional posts.

create account
report bugs
Scoop Administrators Guide
Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Cooler than

Make a new account

Hosted by 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