The "Click Counter" rename my files to "click
The "Click Counter" rename my files to "click
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
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
Hi,
Try the alternate click.php:
http://www.phpjunkyard.com/extras/ccoun ... _click.zip
Does it help?
Regards
Try the alternate click.php:
http://www.phpjunkyard.com/extras/ccoun ... _click.zip
Does it help?
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 4
- Joined: Mon Dec 26, 2005 6:14 pm
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
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
Hi,
Upload the alternate click.php and let me test it please.
Regards
Upload the alternate click.php and let me test it please.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 4
- Joined: Mon Dec 26, 2005 6:14 pm
Hi Again
Okey...I have uploaded the "Alt. Click" now.
Check it out. And you'll see what happends...
Regards,
Jimmy
Check it out. And you'll see what happends...
Regards,
Jimmy
In the settings.php, what is your variable $settings['click_url'] set to?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 4
- Joined: Mon Dec 26, 2005 6:14 pm
<?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";
?>
// 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";
?>
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.
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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 3
- Joined: Sat May 20, 2006 6:02 pm
Does it work?
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
-Ricardo
Same question as above!
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
Is there some way to maintain the original file name? Otherwise this script was exactly what I was looking for.
Peace,
Guy

-
- Posts: 3
- Joined: Sat May 20, 2006 6:02 pm
click.php name
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/
-Ricardo
http://ricardotorres.net/
-
- Posts: 3
- Joined: Sat May 20, 2006 6:02 pm
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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools