Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Total Number of new sites

Quote Reply
Total Number of new sites
Hi

i am trying to display the total number of new links on the home page ..

I created a global:

sub {
my (return $DB->table('Links')->select(isNew => 'Yes')->count;
}

But it is returing an error. Any suggestions?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Total Number of new sites In reply to
Try:

sub { $DB->table('Links')->count( { isNew => 'Yes' } ) }
Quote Reply
Re: [RedRum] Total Number of new sites In reply to
Quote:
sub { $DB->table('Links')->count( { isNew => 'Yes' } ) }

Is the bug fixed where you can have the sub { page and } on the same line? I seem to remeber there was a problem where it would just print out the sub if there was no line break. Could just be me going mad though Crazy

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Total Number of new sites In reply to
hi
yes it is
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory