Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [SandraR] Adding an Avatar

Quote Reply
Re: [SandraR] Adding an Avatar In reply to
User details aren't provided with the link record, IIRC. You'll need to use a global using the link's LinkOwner column as the foreign key to the Users table, then you can return the Avatar column.

How about having a global that does this:

sub {
my $user = shift;
my $valid = $DB->table("Users")->get($user);

return { LinkOwnerAvatar => $valid->{Avatar} };


I use LinkOwnerAvatar in the example above to differentiate the avatar of the logged in user from that of the link owner.

Limecat is not pleased.
Subject Author Views Date
Thread Adding an Avatar SandraR 1903 Oct 18, 2006, 3:33 PM
Post Re: [SandraR] Adding an Avatar
aus_dave 1860 Oct 18, 2006, 4:19 PM
Post Re: [SandraR] Adding an Avatar
fuzzy logic 1866 Oct 18, 2006, 4:25 PM