Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Displaying templates through cgi files

Quote Reply
Displaying templates through cgi files
Hi,

I'm displaying my whole site using GForum and there are some scripts that I'm using for uploading photos, etc. I was running them through LinksSQL and using

print Links::SiteHTML::display('add_success', {error => "Please make sure that your image is a .gif, .jpeg or .jpg file." });

to display an error page. There doesn't seem to be anything similar in GForum - can anyone point me in the right direction please. I have a template in GForum and have added the action add_success but I can't find how to display the template.

I've thought about using a redirect in the script but I'm guessing there must be an easier way that enables me to pass the error in as a tag?

Thanks, Laura.
Quote Reply
Re: [afinlr] Displaying templates through cgi files In reply to
Think I found it:

$GForum::Template::VARS{error} = GForum::language('Please make sure that your image is a .gif, .jpeg or .jpg file.');
GForum::do_func('add_success');