Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [afinlr] Display User Properties from GT Community

Quote Reply
Re: [afinlr] Display User Properties from GT Community In reply to
Hum... not sure what I could be doing wrong...

Here is the global
sub {
my $user = $_[0];
use lib('/path/to/gtcommunity/private-folder/lib');
my $db = GT::SQL->new('/path/to/gtcommunity/private-folder/defs')->table('comm_users');
my $get_hash = $db->select( { comm_username=>$user } )->fetchrow_hashref || return $GT::SQL::error;
return { prof_city => $get_hash->{prof_city} };
}

I have setup the name for it like z_city, so I am calling it via <%z_city($LinkOwner)%> in link.html and detailed.html page

I am using prof_city in the global, because that is how the city propertiy appears in the GT Community.

About the /path/to/ , yes I have updated it to the actual path on the web site.

Vishal

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread; hot thread Display User Properties from GT Community VishalT 8364 Mar 25, 2004, 8:41 PM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
Andy 8114 Mar 26, 2004, 12:35 AM
Thread; hot thread Re: [Andy] Display User Properties from GT Community
VishalT 8061 Mar 26, 2004, 1:07 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 8009 Mar 26, 2004, 9:03 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7990 Mar 26, 2004, 9:23 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7985 Mar 26, 2004, 9:33 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 8024 Mar 26, 2004, 9:43 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 8046 Mar 26, 2004, 9:49 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 8009 Mar 26, 2004, 9:57 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7978 Mar 26, 2004, 10:30 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7982 Mar 26, 2004, 9:55 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7973 Mar 26, 2004, 10:37 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
VishalT 7980 Mar 26, 2004, 10:42 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7987 Mar 26, 2004, 10:55 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7969 Mar 26, 2004, 10:59 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7941 Mar 26, 2004, 11:11 AM
Thread; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7947 Mar 26, 2004, 11:06 AM
Thread; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7933 Mar 26, 2004, 11:18 AM
Post; hot thread Re: [afinlr] Display User Properties from GT Community
VishalT 7911 Mar 26, 2004, 11:26 AM
Post; hot thread Re: [NeedScripts.Com] Display User Properties from GT Community
afinlr 7979 Mar 26, 2004, 10:52 AM