Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add an Extra URL

Quote Reply
Add an Extra URL
In addtion to the main URL I want to add another field called Download URL which will lead to a download page on my users sites. I did some searching but didn't find a similar post.

I don't want to use jump.cgi for this. I wanted to create download.cgi and have the extra URL configured with this. Something like below.

http://www.mysite.com/...in/download.cgi?ID=5

I still want the hits to count for this also.

Does anyone know how to accomplish this?

Thanks,

Craven
Quote Reply
Re: [craven32] Add an Extra URL In reply to
Copy jump.cgi to download.cgi and copy Jump.pm to Download.pm. Then in the download.cgi file, find the line that looks for Jump.pm and change it to Download.pm.

You will then need to edit Download.pm so that it looks for the Download URL field instead of the regular one.

(I'm not sure that's all but it should point you in the right direction.)
Quote Reply
Re: [afinlr] Add an Extra URL In reply to
I'll give it a try and let you know how it turns out. Thanks for the help!

Craven
Quote Reply
Re: [afinlr] Add an Extra URL In reply to
I was looking through the jump.pm file and I'm not sure what to change to make it look for the Download URL. Anyone know what I need to change in this file?

Craven
Quote Reply
Re: [craven32] Add an Extra URL In reply to
You need to change

$goto = $rec->{URL};

to

$goto = $rec->{DownloadURL};

or whatever you have called the field with your new URL in it.