Hi Andy,
The plugin works ok when a user calls up the form, but when I try and add a link from the admin form it crashes.....
I get this error message:
Undefined subroutine &Links::SiteHTML::display called at /home/stagelink/public_html/cgi-bin/admin/Plugins/Check_If_Allowed.pm line 52.
Line 52 from the plugin is the print Links::SiteHTML::display as below;
print $IN->header;
print Links::SiteHTML::display('add',{ error => qq|<ul><li>| . join('</li>',@errors) . q|</ul>| } );
exit;
}
I add quite a few links from the admin forms, is there anything I can change to stop this crashing?
Cheers,
Piers
The plugin works ok when a user calls up the form, but when I try and add a link from the admin form it crashes.....
I get this error message:
Undefined subroutine &Links::SiteHTML::display called at /home/stagelink/public_html/cgi-bin/admin/Plugins/Check_If_Allowed.pm line 52.
Line 52 from the plugin is the print Links::SiteHTML::display as below;
Code:
if ($errors[0]) { print $IN->header;
print Links::SiteHTML::display('add',{ error => qq|<ul><li>| . join('</li>',@errors) . q|</ul>| } );
exit;
}
I add quite a few links from the admin forms, is there anything I can change to stop this crashing?
Cheers,
Piers