Gossamer Forum
Home : Products : Links 2.0 : Customization :

linkdead.cgi and validation

Quote Reply
linkdead.cgi and validation
Hello,

I use the mod "linkdead.cgi". All is ok, But much in visitors are mistaken by clics on my logo " deadlink "
and indicate to me valid links.
I would wish insert a page of confirmation. Each visitor who clic on
the link, finds himself on a page asking whether he wants to confirm that the link died. It makes possible to limit the mail abusive which I receive.
Thank you

Laurent

Quote Reply
Re: linkdead.cgi and validation In reply to
Mmm, which deadlink mod are you using? If I get permission from the Author I should be able to have a look for you to add a confirmation page first Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: linkdead.cgi and validation In reply to
Myself and others have already made mods that will only report deadlinks if the links are actually dead so they can't abuse the service.

Maybe you should try one of them first.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: linkdead.cgi and validation In reply to
Use linkdead 2 as it has a confirmation window...

As paul was saying though a better solution is to use a mod which checks if the link is dead first before reporting it. These should be available somewhere, or if not it shouldn't be that hard to do, just learn a little about lwp.

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: linkdead.cgi and validation In reply to
Hello,

I use this mod
LWP doesn't work on my server...
I'd like this mod but how can I make a confirmation page ?

#!/usr/bin/perl
# -------------
# Links
# -------------
# Links Manager
#
# File: linkdead.cgi
# Notifies the webmaster of a deadlink
# Based on and designed to be used with
#Links 2 by: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.0
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
#
# Setup:
# Make sure the require statement below points to the config file.
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}

# ========================================================

eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.

sub main {
# --------------------------------------------------------
# Sends an email to the admin, letting him know that there is a dead link.

my %in = &parse_form();

# Check to make sure that there is an admin email address defined.
$db_admin_email or &cgierr("Admin Email Address Not Defined in config file!");

my $to = $db_admin_email;
my $from = $in{$db_cols[$db_contact_email]};
my $subject = "Deadlink ID number: $in{'ID'}\n";
my $msg = qq|
The following link is reported to be dead:

ID number: $in{'ID'}
Site title: $in{'Title'}
Site URL: $in{'URL'}
Category: $in{'Category'}

To check the link, please go to:
$db_cgi_url/jump.cgi?ID=$in{'ID'}

Or to delete the link please go to:
$db_cgi_url/$db_script_path/admin.cgi?db=links&ID=$in{'ID'}&Title=&URL=&Date=&Category=---&Description=&Contact+Name=&Contact+Email=&Hits=&isNew=---&isPopular=---&Rating=&Votes=&ReceiveMail=---&Graphic=&Gwidth=&Gheight=&Priority=---&Password=&MonthHits=&isMonthPopular=---&DateAdded=&keyword=&mh=10&sb=---&so=ascend&delete_form=Search&delete=$in{'ID'}



Sincerely,

Visitor.
|;

# Then mail it away!
require "$db_lib_path/Mailer.pm";
my $mailer = new Mailer ( { smtp => $db_smtp_server,
sendmail => $db_mail_path,
from => $from,
subject => $subject,
to => $to,
msg => $msg,
log => $db_mailer_log
} ) or return;
$mailer->send or return;
print &site_html_deadlink_mail;
}


Quote Reply
Re: linkdead.cgi and validation In reply to
but how can I make a confirmation page ?

Use the linkdead 2 script. Don't know where to find it? Then follow the link below...

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: [glennu] linkdead.cgi and validation In reply to
Hi!
quick question .. any mode or hack for linkdead2 to send mail to linkowner, that admin was noticed about his site not being available ... something like this ...

Gregor