Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Display User Properties from GT Community

Quote Reply
Display User Properties from GT Community

I was wondering if someone can help me out with the problem that I am facing.

I am wanting to display user properties on link.html & detailed.html page along with the link proprties.

I have tried below sub but was not successful. (big thanks to Andy, who tried to help me out) :


sub {
my $user = $_[0];
$DB2 = new GT::SQL '/path/to/community/defs/';
$DB2->set_connect ({
driver => "mysql",
host => "localhost",
database => $dbname,
login => $user,
password => $pass
}) || die $GT::SQL::error;
$DB2->prefix("comm_");
my $get_hash = $DB2->table('Users')->select( { Username => $user } )->fetchrow_hashref || return $GT::SQL::error;
return { username => $get_hash->{comm_Username} };
}




What I am trying to do is, many users have more than one link, so even though the link information is different for every listing, company/link owner information like company name, address, email.. etc remains the same and it would be wonderful to have the ability to display all the user fields on the link.html and detailed page.

Thanks for the help.

Vishal

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread; hot thread Display User Properties from GT Community VishalT 8283 Mar 25, 2004, 8:41 PM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
Andy 8033 Mar 26, 2004, 12:35 AM
Thread; hot thread Re: [Andy] Display User Properties from GT Community
VishalT 7980 Mar 26, 2004, 1:07 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7928 Mar 26, 2004, 9:03 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7909 Mar 26, 2004, 9:23 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7904 Mar 26, 2004, 9:33 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7943 Mar 26, 2004, 9:43 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7965 Mar 26, 2004, 9:49 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7927 Mar 26, 2004, 9:57 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7897 Mar 26, 2004, 10:30 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7901 Mar 26, 2004, 9:55 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7892 Mar 26, 2004, 10:37 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
VishalT 7899 Mar 26, 2004, 10:42 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7906 Mar 26, 2004, 10:55 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7888 Mar 26, 2004, 10:59 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7860 Mar 26, 2004, 11:11 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7866 Mar 26, 2004, 11:06 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7852 Mar 26, 2004, 11:18 AM
Post; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7830 Mar 26, 2004, 11:26 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7898 Mar 26, 2004, 10:52 AM