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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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