Page 1 of 1

The "Click Counter" rename my files to "click

Posted: Fri Dec 23, 2005 4:19 pm
by Bionicbase
Click Counter works great. It shows number of clicks/download of my mp3-files on my webbsite.

But...there's one issue.

When someone download a mp3-song from the site...the song are renamed to "click.mp3"...

Why's that....and how can i change it?

Visit my site:

www.bionicbase.se

And try to download a song under "Music" section.

Best Regards,
Jimmy

Posted: Fri Dec 23, 2005 5:08 pm
by Klemen
Hi,

Try the alternate click.php:
http://www.phpjunkyard.com/extras/ccoun ... _click.zip

Does it help?

Regards

Posted: Mon Dec 26, 2005 6:18 pm
by bionicbase
No...it doesn't help. Now it's like this:

When i click on "download" this message displays in a white windows:

Redirecting to http://www.filelodge.com/files/hdd4/588 ... k.php?id=1

And after about 10 seconds the mp3-file the download-windows shows and you can download the mp3-file, but.......

It still rename the mp3-file to "click.mp3"...

Hm...


Best Regards,
Jimmy Holm

Posted: Tue Dec 27, 2005 3:05 pm
by Klemen
Hi,

Upload the alternate click.php and let me test it please.

Regards

Hi Again

Posted: Tue Dec 27, 2005 4:47 pm
by bionicbase
Okey...I have uploaded the "Alt. Click" now.

Check it out. And you'll see what happends...

Regards,
Jimmy

Posted: Thu Dec 29, 2005 6:30 pm
by Klemen
In the settings.php, what is your variable $settings['click_url'] set to?

Posted: Thu Dec 29, 2005 7:12 pm
by bionicbase
<?php
// SETUP YOUR CLICK COUNTER
// Detailed information found in the readme file

// What type of server is your website on?
// 1 = UNIX (Linux), 2 = Windows, 3 = Machintos
$settings['system']=1;

// Password for admin area
$settings['apass']="my password";

// URL of the click.php file
$settings['click_url']="http://www.bionicbase.se/counter/click.php";

// OPTIONAL SETTINGS BELOW //

// Name of the log file
$settings['logfile']="clicks.txt";

// Name of the file where last ID number is stored
$settings['idfile']="ids.txt";

// DO NOT EDIT BELOW
$settings['verzija']="1.1";
?>

Posted: Mon Jan 02, 2006 2:25 pm
by bionicbase
Any idea about what to do?

Regards,
Jimmy

Posted: Tue Jan 03, 2006 10:57 am
by Klemen
In your admin panel try adding this EXACT url:
http://www.filelodge.com/files/hdd4/588 ... mixed).mp3 without the "/click.php?id=1/click.php?id=1" end (why is it there anyway?).

Then click
http://www.bionicbase.se/counter/click.php?id=5
to test it.

Does it work?

Posted: Sat May 20, 2006 6:09 pm
by ricktowers
Hi is this issue been resolved? I have the same problem with my MP3s for download. This issue only happens in Firefox and Explorer but not in Safari on a Mac. When someone trys to download with a right click or control click the file is save as click.php.

-Ricardo

Same question as above!

Posted: Mon May 22, 2006 1:52 am
by vapor
Great script, but I'm also trying to use it for multiple mp3 files on a web page. I have the script workling fine, but any file download renames the file to "click.php". If someone downloads several files off the page they'll all have the same name and overwrite any earlier downloads....also, the average user will probably be lost trying to get their mp3 player to play a php file.

Is there some way to maintain the original file name? Otherwise this script was exactly what I was looking for.

Peace,
Guy :D

click.php name

Posted: Mon May 22, 2006 2:11 am
by ricktowers
Maybe I should be more specific about what happens when people download my MP3s. If someone clicks on a link for a download the script counts the download and redirects to the MP3 which then starts downloading normally with the correct name and extension. The problem with the click.php file name is when people right click or control click on the link and select Save Link As (Firefox) or Download Link to Disk (Explorer). In this case the mp3 file is downloaded as click.php. People can change the extension and the files works but it's a pain. The strange thing is that this works correctly in Safari on the Mac. If you right or control click and select Download Linked file the MP3 downloads with the proper name and extension. The only way arround this for me was to put a disclaimer in my download page not to right or control click. This script has been terribly handy to track the downloads in my site so I don't want to give it up.

-Ricardo
http://ricardotorres.net/

Posted: Tue Jun 06, 2006 5:17 pm
by ricktowers
Anyone? Am I the only one with this problem?

-Ricardo
http://ricardotorres.net/

Posted: Thu Jun 08, 2006 11:11 am
by Klemen
I don't think this can be avoided due to the way browsers work and display redirecting links, but I will look into it more detailed when I have more time.