Gossamer Forum
Quote Reply
banner issue
I am having an include problem in GForum...

I use this same global in Links and I don't have a problem:

Code:

sub {
# Display a banner
my $ad;
$ad = `path/to/my/banner/file.cgi`;
$ad =~ s,Content-type:\stext/html,,;
return $ad;
}


But when I use this in GForum it returns the right html code it should, but encoded...

example &gt... ect.. instead of >...

In other words, it prints the html code instead of reading it.

I tried something like:

use URI::Escape;

$ad = &uri_unescape($ad);

But I get the same results. I have been so caught up in php's ease that I forgot some basic things in perl. I also don't understand why I need to do this in the first place when it works fine in links.

Any suggestings?

- Jonathan
Quote Reply
Re: [jdgamble] banner issue In reply to
Well I fixed it thanks to this:

http://www.gossamer-threads.com/...uest=15282269#274457

I have to reference my return in GForum for some reason, yet I don't have to do this in GLinks...

return \$ad; works...

- Jonathan