Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [SeanP] Who's Online Global

Quote Reply
Re: [SeanP] Who's Online Global In reply to
Hi Sean,

In order to have GForum globals return HTML that won't be HTML-escaped, you need to return the value as a Perl scalar reference - to do this, change the last line:

return (@found ? join(', ', @found) : 'None');

to:

return (@found ? \join(', ', @found) : 'None');

Without the \, Gossamer Forum will HTML-escape any return values from globals.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Who's Online Global SeanP 4110 Dec 2, 2004, 10:56 AM
Thread Re: [SeanP] Who's Online Global
Jagerman 4045 Dec 2, 2004, 11:57 AM
Thread Re: [Jagerman] Who's Online Global
SeanP 4042 Dec 2, 2004, 12:40 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 4057 Dec 2, 2004, 1:11 PM
Post Re: [Jagerman] Who's Online Global
SeanP 4015 Dec 2, 2004, 1:24 PM
Thread Re: [Jagerman] Who's Online Global
SeanP 4017 Dec 14, 2004, 2:33 PM
Thread Re: [SeanP] Who's Online Global
Jagerman 4041 Dec 14, 2004, 3:53 PM
Post Re: [Jagerman] Who's Online Global
SeanP 4018 Dec 15, 2004, 10:52 AM