Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [Andy] Plugins - how toi print out content, and stop "1" showing at bottom of page?

Quote Reply
Re: [Andy] Plugins - how toi print out content, and stop "1" showing at bottom of page? In reply to
Hi,

Anyone? GT?

This works fine: (Shows without a 1);

Code:
sub main {
# -----------------------------------------------------------------------------
# This subroutine will be called whenever the hook 'main' is run. You
# should call GT::Plugins->action(STOP) if you don't want the regular
# 'main' code to run, otherwise the code will continue as normal.
#
my (@args) = @_;

# Do something useful here
use GForum::Template;

my $do = $IN->param('func');
if ($do eq "view") {
view_guestbook();
} else {
print $IN->header();
return ('error.html', { error => "Invalid function called" } );
exit;
}

return @args;
}

.. yet if (for example) in view_guestbook(), I have this:

Code:
sub view_guestbook {

print $IN->header();
return ('error.html', { error => "Invalid function called" } );
exit;

}

..I get this error:

Quote:
Software error:

GT::Template::Parser (4871): Unable to locate template file 'Plugins::GForum::Guestbook' in '/var/home/linkssql/ultradev.com/cgi-bin/forum/admin/templates/default/../common' or any inheritance directories at GT::Template::_compile_template line 677.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.

Can someone **PLEASE** shed some light on this - its really beginning to get on my nerves, as this plugin is almost ready to release - but cos of this silly "1" showing up, its still faulty Pirate

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Plugins - how toi print out content, and stop "1" showing at bottom of page? Andy 3350 Feb 21, 2008, 4:44 AM
Post Re: [Andy] Plugins - how toi print out content, and stop "1" showing at bottom of page?
Andy 3181 Feb 22, 2008, 8:57 AM
Thread Re: [Andy] Plugins - how toi print out content, and stop "1" showing at bottom of page?
Wychwood 3180 Feb 22, 2008, 10:47 AM
Post Re: [Wychwood] Plugins - how toi print out content, and stop "1" showing at bottom of page?
Andy 3167 Feb 22, 2008, 11:48 PM