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

Re: [deadroot] [NEW PLUGIN] Error_Jump_Articles v1

Quote Reply
Re: [deadroot] [NEW PLUGIN] Error_Jump_Articles v1 In reply to
Hi,

I may actually make this template based for the email - but won't have time for that today.

In the mean time, this would work:

In safe_jump.cgi, find:

Code:
my $msg = "An error has been found on your site for $id. The error message was: $code_returned ($STATUS_BAD{$code_returned}).";

..and change to:

Code:
my $msg;

if ($code_returned == 404)
$msg = "The URL on Link ID $id gave a 404 Page Not Found error. [ $code_returned ($STATUS_BAD{$code_returned}).]";
elsif ($code_returned == 400) {
$msg = "The URL on Link ID $id gave a 400 Bad Request Error. [ $code_returned ($STATUS_BAD{$code_returned}).]";
} else {
# backup
$msg = "An error has been found on your site for $id. The error message was: $code_returned ($STATUS_BAD{$code_returned}).";
}

Hope that helps.

Cheers

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 [NEW PLUGIN] Error_Jump_Articles v1 Andy 4920 Oct 31, 2005, 6:12 AM
Post Re: [Andy] [NEW PLUGIN] Error_Jump_Articles v1
Jag 4684 Nov 2, 2005, 7:39 AM
Thread Re: [Andy] [NEW PLUGIN] Error_Jump_Articles v1
DeadMan 4362 Feb 16, 2008, 4:54 AM
Thread Re: [deadroot] [NEW PLUGIN] Error_Jump_Articles v1
Andy 4365 Feb 18, 2008, 5:58 AM
Thread Re: [Andy] [NEW PLUGIN] Error_Jump_Articles v1
DeadMan 4342 Feb 18, 2008, 2:40 PM
Post Re: [deadroot] [NEW PLUGIN] Error_Jump_Articles v1
Andy 4360 Feb 19, 2008, 12:51 AM