The "Click Counter" rename my files to "click

Post your Click counter digestion problems here
Post Reply
Bionicbase

The "Click Counter" rename my files to "click

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

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 Image

Image 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
bionicbase
Posts: 4
Joined: Mon Dec 26, 2005 6:14 pm

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

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 Image

Image 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
bionicbase
Posts: 4
Joined: Mon Dec 26, 2005 6:14 pm

Hi Again

Post by bionicbase »

Okey...I have uploaded the "Alt. Click" now.

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

Regards,
Jimmy
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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 Image

Image 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
bionicbase
Posts: 4
Joined: Mon Dec 26, 2005 6:14 pm

Post 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";
?>
bionicbase
Posts: 4
Joined: Mon Dec 26, 2005 6:14 pm

Post by bionicbase »

Any idea about what to do?

Regards,
Jimmy
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
ricktowers
Posts: 3
Joined: Sat May 20, 2006 6:02 pm

Does it work?

Post 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
vapor
Posts: 1
Joined: Mon May 22, 2006 1:48 am

Same question as above!

Post 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
ricktowers
Posts: 3
Joined: Sat May 20, 2006 6:02 pm

click.php name

Post 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/
ricktowers
Posts: 3
Joined: Sat May 20, 2006 6:02 pm

Post by ricktowers »

Anyone? Am I the only one with this problem?

-Ricardo
http://ricardotorres.net/
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply