Gossamer Forum
Quote Reply
If Has Links Global
Hi

I just wrote a global to ID a username with links onfile from one without..

sub {
# IDs the user if they have a links on file..
return $DB->table('Links)->count({ LinkOwner => $_[0]->{Username} })
}

But it is not working for some reason..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] If Has Links Global In reply to
Hi

Just got it working

The correct Global is:



sub {
# IDs the user if they have a links on file..

my $tags = shift;

my $db = $DB->table ('Links');

my $links = $db->select ({LinkOwner=>$tags->{Username}},['LinkOwner'])->fetchrow_array;

if ($links) {return $links;}

else {return;}

}
Regards
KaTaBd

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