Author |
Message |
24/06/2007 12:47:15
|
djdon
Newbie
Joined: 24/06/2007 12:42:41
Messages: 2
Offline
|
Hello i've tried searched and spend A LOT of time figuring it out but just cant Find the answer.. Basiclyy I have this One File i wanna track of the download and i cant do it.. wen i press the button SCAN nothign shows upp io dont know why
# url to script
$cgiurl = "http://www.underworlddon.com/cgi-bin/download.pl";
# url to the image files without trailing "/"
$base_gif = "http://underworlddon.com";
# administration password - should not contain '&','=' and "
$admin_pass = "pass123";
# file locking ($lock=0 for Win32!);
$lock = 1;
# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.proxy2.de');
# log files
$basedat = "log.txt";
$daylog = "daylog.txt";
$stats = "download_stats.txt";
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.underworlddon.com";
# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www/nafizur/public_html";
THATS wat i can fill up wit so far im really confused wat to put on BASE_URL and BASE_DIR also i dont knwo wat the term "without Trailing means.. But anywho das my SET Up so far
SO i loged in and MANUALLy added my File since wen i press SCAN it can't find it.. NOW wen ppl download it IT DOesnt SHOWw me it keeps sayin 0 DOwnlaods WHy is that??
and also it says To count a download use:
<a href="download.pl?file=filename_id">yourfile</a>
"filename_id" can be a number or a string.
I got no clue wat dat means Wat and were am i supose to put that?? someone pkease help me really appriciate it thankx
|
|
27/06/2007 15:13:52
|
Hawk
Newbie
Joined: 27/06/2007 14:33:50
Messages: 2
Offline
|
First of all, I hope you changed the password from pass123 to something else. If not, do so immediately.
I would also like to suggest adding a folder inside the cgi-bin folder and move the 6 Top20 files into it, changing your links accordingly, especially after this post-for security reasons.
As for the scanning function, I wouldn't worry too much about that. What that's for is; say you have a folder on your server that has 100 download files in it. Instead of having to add each file manually you would set the parameters for the scanning function to look for that folder and it would automatically add all the files to the list.
Since you only have one file, and you've already added it manually, the scanning function is irrelevant to you at this time.
Now, to get the count to see the file; I assume you're talking about the MixTape zip.
In order for Top20 to count the downloads for that file, where you have (I've added spaces in the link to avoid it actually being a link) <a href= "http:// www . underworlddon . com/ Dj_Don_Mixtape_ Vol1.zip">[Click Here]</a>, change that to (assuming you entered the file id the same as the file name, otherwise change accordingly) <a href= "http:// www . underworlddon . com/cgi-bin/new folder name-if you choose/download.pl?file= Dj_Don_Mixtape_ Vol1.zip">[Click Here]</a>.
If you want to show how many times the file has been downloaded on the page, you would add this <script language=
"JavaScript" src=" http: // www . underworlddon.com/cgi-bin/new folder name-if you choose/stat_js.pl?stat=Dj_Don_Mixtape_ Vol1.zip"></script>
under the download link (or beside it-your choice). You can also add font tags around the last link if you want.
Hope this helps.
|
Hawk |
|
29/06/2007 08:25:25
|
djdon
Newbie
Joined: 24/06/2007 12:42:41
Messages: 2
Offline
|
o okay thanks for the helpp i just want to make sure..
ARE these Informationn correct??? im not 100% sure wat im also spose to put it there
# url to script
$cgiurl = "http://www.underworlddon.com/cgi-bin/download.pl";
# url to the image files without trailing "/"
$base_gif = "http://underworlddon.com";
# administration password - should not contain '&','=' and "
$admin_pass = "pass123";
# file locking ($lock=0 for Win32!);
$lock = 1;
# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.proxy2.de');
# log files
$basedat = "log.txt";
$daylog = "daylog.txt";
$stats = "download_stats.txt";
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.underworlddon.com";
# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www/nafizur/public_html";
|
|
29/06/2007 16:37:12
|
Hawk
Newbie
Joined: 27/06/2007 14:33:50
Messages: 2
Offline
|
Well, first of all-let me ask, did the recommendations I made in the previous post work?
Whether your counter is working or not will determine what else needs to be addressed.
Did you change your password (very important)? Does the Admin page for Top Downloads work? Do you get a proper download count in the Admin page or on the download page (if you used the code to show the download count on the download page)?
If everything works right then there's no need to worry about the other entries, except for the 'check http referer' which I changed to my site home page rather than the proxy2.de page, although I must admit-I'm not sure what that's for.
Since you're not using the scanning function, the last 2 elements aren't important, but will need to be edited if you need to use this function-which at this point I don't see a need for it's use in your case.
|
Hawk |
|
|