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 3921 Dec 2, 2004, 10:56 AM
Thread Re: [SeanP] Who's Online Global
Jagerman 3858 Dec 2, 2004, 11:57 AM
Thread Re: [Jagerman] Who's Online Global
SeanP 3855 Dec 2, 2004, 12:40 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 3870 Dec 2, 2004, 1:11 PM
Post Re: [Jagerman] Who's Online Global
SeanP 3829 Dec 2, 2004, 1:24 PM
Thread Re: [Jagerman] Who's Online Global
SeanP 3831 Dec 14, 2004, 2:33 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 3855 Dec 14, 2004, 3:53 PM
Post Re: [Jagerman] Who's Online Global
SeanP 3832 Dec 15, 2004, 10:52 AM