Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Displaying Links Added By User

Quote Reply
Displaying Links Added By User
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.

Last edited by:

nir: Feb 13, 2006, 2:23 AM
Quote Reply
Re: [nir] Displaying Links Added By User In reply to
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?Smile

Last edited by:

nir: Feb 13, 2006, 5:16 AM