Hi,
Anyone? GT?
This works fine: (Shows without a 1);
# -----------------------------------------------------------------------------
# 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:
print $IN->header();
return ('error.html', { error => "Invalid function called" } );
exit;
}
..I get this 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
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!
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
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!