When a user submit more then one link, How I can display a list of links or details page that added by this user in the details page, and to limit the number of link that are displaying.
I find this toping in the forum
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=285963;search_string=LinkOwner%20detailed%20;guest=14071530#285963
It looks like this (By Andy)
sub {
my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('link', $hit);
}
return $back;
}
The problem is that now it displays in the list of the user link to the page itself, it display current page as a link of the user.
Can somebody help with this?
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=285963;search_string=LinkOwner%20detailed%20;guest=14071530#285963
It looks like this (By Andy)
sub {
my $user = $_[0];
my $sth = $DB->table('Links')->select( { LinkOwner => $user, isValidated => 'Yes' } ) || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('link', $hit);
}
return $back;
}
The problem is that now it displays in the list of the user link to the page itself, it display current page as a link of the user.
Can somebody help with this?