Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Who's Online Global

Quote Reply
Who's Online Global
I'm trying to figure out how to make the Who's Online global display with each username listed, linked to their profile view. I have the following:

Code:
sub {
my @found = ();
my $table = $DB->table('Online','User');
my $sth = $table->select( { 'Online.online_invisible' => 0, 'Online.guest_id_fk' => 0 }, ['User.user_username'] );

while (my $userid = $sth->fetchrow_hashref) {
push @found, "<A Href=\"http://www.mydomain.com/cgi-bin/forums/gforum.cgi?username=$userid->{user_username}\">$userid->{user_username}</A>";
}
return (@found ? join(', ', @found) : 'None');
}

This displays the HTML, but it converts the HTML code once it is displayed in a template. I see the actual code, because it converts the <>=" characters to ascii codes. Any advice on how to get this to work would be greatly appreciated!

Sean
Subject Author Views Date
Thread Who's Online Global SeanP 3978 Dec 2, 2004, 10:56 AM
Thread Re: [SeanP] Who's Online Global
Jagerman 3913 Dec 2, 2004, 11:57 AM
Thread Re: [Jagerman] Who's Online Global
SeanP 3910 Dec 2, 2004, 12:40 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 3925 Dec 2, 2004, 1:11 PM
Post Re: [Jagerman] Who's Online Global
SeanP 3884 Dec 2, 2004, 1:24 PM
Thread Re: [Jagerman] Who's Online Global
SeanP 3886 Dec 14, 2004, 2:33 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 3910 Dec 14, 2004, 3:53 PM
Post Re: [Jagerman] Who's Online Global
SeanP 3887 Dec 15, 2004, 10:52 AM