Gossamer Forum
Home : Products : Links 2.0 : Customization :

Make Jump.cgi to Injump.cgi

Quote Reply
Make Jump.cgi to Injump.cgi
Hey folks - I was trying to rig the injump.cgi mod to make it so hits in and out were of the same value - I'm not creating a new field in the dbase for hits coming in. So I tried to shoehorn injump.cgi and jump.cgi together. Essentially all I need is the end of the script to send people to the my homepage instead of the URL of the link. Here's what I changed it to - the same code as jump.cgi - just the end is different - that doesn't seem to be working...

Code:
# Now let's send the user to the url..

$goto ?

print "Location: $build_root_url\n\n" :

&error ("Record not found ($in{$db_key})");

}

Any ideas?

Thanks for your help!

Last edited by:

ao4047: Dec 14, 2002, 4:26 PM
Quote Reply
Re: [ao4047] Make Jump.cgi to Injump.cgi In reply to
I think it's looking for the definition of $goto, which would normally be
Code:
# Let's get the URL.
open (URL, "<$db_url_name") or &error ("unable to open url database: $db_url_name. Reason: $!");
while (<URL>) {
(/^$id$delim(.+)/o) or next;
chomp ($goto = $1);
last;
}
close URL;
$goto or &error ("Can't find link id: $id");




Just guessing, maybe you could replace the above with:

$goto = $build-root_url




Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Make Jump.cgi to Injump.cgi In reply to
Thanks so much - worked like a charm!