Gossamer Forum
Home : Products : Links 2.0 : Customization :

Merging Download.pl and Links 2.0

Quote Reply
Merging Download.pl and Links 2.0
Hello everyone!

I've convert Links 2.0 to make it a DownloadSearch so people can search and find Christian downloads for their computer or website. Well I want to make it like Download.com where the user clicks on the link to download a program and it takes them to a page with ads and other options to do while they're downloading. So I went and looked at what Download.com has setup and they used Javascript on the addiontional options page (which I figure they used that anyway). So I couldn't figure out what script to use and then went to JavaScriptSource.com to look for something simuliar but with no luck. So I decided to use CGI.

I found this nice little script called download.pl written by http://www.interactive.de. It can count how many times a program is downloaded, allows you to assign each program an ID (so ID "blah" would be "download.pl?f=blah"), and even posts the Top 3 downloads somewhere on your website using SSI.

Download.pl reads a database file call fileindex.dat which is setup like this:

0|blah|http://www.blah.com/blah.zip
meaning
# of times downloaded|download ID|download location

I have added additional fields to Links for a Primary Download Location, Secondary Download Location, File Type, License Type, and File Size which the user all fills in on the add.cgi form.

What I want to do is merge download.pl and Links so that Links will either add the neccesary fields to the fileindex.dat for download.pl to read or make it so download.pl can read links.db (the latter is more practical). The coding for download.pl can be found at http://www.christian-search.net/download/download.txt.
Thanks for any help you can give and just ask if you need anymore information! God bless! Smile


<><-----------------><>
Daniel
AKA Dan the Great
<><-----------------><>