Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

[Beta Pepper] Downloads

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 03:01 am

good morning folks,

I haven’t got much time for development because I’m currently very busy. Please note that there is still much todo until this Pepper works perfectly.

Grab the Beta 001 here: Downloads_v001.zip

Download; Upload; Install; …

Tracking Type 1: Redirect your files
Syntax: download.php?uri=http://yourdomain.com/file.zip
Example: yourdomain.com/mint/pepper/tillkruess/downloads /download.php?uri=http://yourdomain.com/files/archive.zip

Tracking Type 2: Automatic redirect Enable the automatic URL redirection (via JavaScript) in the Peppers preferences and set up the file extensions that you’d like to redirect.
Your “file extensions matching”-links on your Minted pages should/will now be redirected.

Tracking Type 3: Mighty Apache Mode!!!!! (experimental)
Upload the .htaccess file to a directory.
Now every file access in this directory is tracked and the user is forced to download the file.
A Guide for advanced .htaccess tracking (e.g. If you wish to track only defined files) will be available in the first stable release.

Note: Type 1 and 3 are not effected by the ‘File Extensions Setting’.

Please send or post only DETAILED bug reports.

Sam Brown
Third-Party Pepper Developer
Posted on Feb 21, '07 at 03:58 am

Till, when you are being ignored by Mint you can not download your own files. I was assuming I would be able to download the file, but not have it add my download to the count?

// Mint is ignoring you as requested

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 04:09 am

ehh, I’ll fix that, Sam.

By the way, you can set the $__debug to TRUE, if your downloads aren’t tracked.

Thank you!

Automatic Redirect works perfect!

This is already so much better than the original dloads pepper!

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 09:25 am

I’ve updated the file above

Changes:
1) I rewrote the pane display because I used the component in parse_url which was recently added in PHP 5.1.2.
2) If $__debug is FALSE and your ignored by Mint you can now download files.
3) I removed my Domain from the .htaccess file.

Please note that: If you use type 3 you have to change the domain inside the .htaccess file.

Oh, and I just wanted to add that I do not receive the “Mint is ignoring you as requested” message when I am being ignored by mint using the Automatic Redirect tracking type.

Till, on my MAC, the .htaccess file is hidden.

You should probably package the .htacess file as htaccess (no . ) and have the user rename the file if they wish to use that method.

Sam Brown
Third-Party Pepper Developer
Posted on Feb 21, '07 at 09:45 am

Till, great work! Downloading works fine now with no addition to the count.

Would it be possible for you to increase the version number with your changes so we can keep track of when to update the file?

Dkozikowski, not sure what FTP program you are using but you should be able to check an option to “Show Invisible Files”, thus allowing you to upload the included .htaccess file.

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 09:55 am

Dkozikowski, I’m not sure if I should do this.
I have a bad feeling about renaming this file…
I’ll think about this.

Sam, yes I’ll increase the version number from now on.

SteveW
Minted
Posted on Feb 21, '07 at 10:12 am

Till-

Using method #2, my downloads work but aren’t tracked. Sample URL: http://automatorworld.com/mint/pepper/t … oarder.zip

I wonder if the problem is the converted characters? (“%3A”, etc)

When I turn on debug, my downloads don’t work and I get this screen:

// file not found - is no file - /users/home/sweintraub/web/public/ //

By the way, I’dlike to try #3, but there’s no htaccess file in my download of the plug-in, I’m confused…

Arco
Minted
Posted on Feb 21, '07 at 10:16 am

Working so well! Thanks for your work here.

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 10:22 am

SteveW, thats because your file is not physical:
http///automatorworld.com/?dl=dashboarder.zip

I’ll maybe write code for this case. Please be patient.

Well I tried using the .htaccess method and came across a little problem.

When I click on the download link, I receive the following error message and the file is not downloaded or counted.

Too many redirects occurred trying to open “http://www.dwilkinsjr.com/public/pixelpost/myaddons/admin_comment_stat_v1.0.zip”.

This is probably due to the fact I already use a .htaccess file for the root of my site to clean up the URLs using mod_rewrite

Any Ideas on how to fix this?

Also, a quick question. By using the .htaccess method, downloads are still counted if the user has JS disabled right ?

(For now, I switched back to the JS way so downloads are counted so you wont be able to see the actual message if you wanted to try it yourself)

SteveW
Minted
Posted on Feb 21, '07 at 10:27 am

Till - thanks…yeah, it’s going through a wordpress plugin for file tracking (which I’d like to abandon for this plugin, if it eventually does site reporting).

When I do a direct url as in #1, it does track.

Sam Brown
Third-Party Pepper Developer
Posted on Feb 21, '07 at 10:30 am

By using the .htaccess method, downloads are still counted if the user has JS disabled right ?

Dkozikowski, yes, even if the user has JavaScript disabled their download will be counted by Tills PHP. Their hit in Mint wont be of course though.

Till
Third-Party Pepper Developer
Posted on Feb 21, '07 at 10:44 am

Dkozikowski,
1) Type 1 and Type 3 tracks, if JS is disabled (as Sam wrote).
2) The other .htaccess file could interrupt, but I have to see the code for telling you this.
3) Does this “Too many redirects”-Error occur if you access the file directly (without /pepper/download?uri=file.zip)

SteveW, what do you mean with “site reporting”?

Arco
Minted
Posted on Feb 21, '07 at 10:47 am

Oops, spoke too soon. I’m using the .htaccess method. I was able to get it working fine. But when I select “ignore my visits” I can’t download anything myself.

I get this error:

The page isn’t redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

*   This problem can sometimes be caused by disabling or refusing to accept
      cookies.

Till, my URLs do not contain anything like /pepper/download?uri=file.zip

Do i need to use methods 1 and 3 for this to work?

Check it out yourself, i left the htaccess working http://dwilkinsjr.com/myaddons

or

http://dwilkinsjr.com/?x=myaddons

Both are the same page

SteveW
Minted
Posted on Feb 21, '07 at 11:03 am

Site reporting: A pipe dream I guess, but I would love it if there were hooks in the plugin so I could report download stats publicly; like the count for specific files, top 10 downloads, like that.

I’ve just tested method 2 and 3 and it works perfectly! Thanks!

Altough you should include the .htaccess as dot.htaccess or dot.htaccess.txt. This way users will understand more and makes it much easier to find.

So I am trying to use the .htaccess method, but I’m not having any luck. I am trying to track .m4a downloads from our museum website, sjmusart.org however I am having to host Mint on my personal webserver at chris-alexander.com. How would I set up the .htaccess file to track this?

Any help would be greatly appreciated.

Thanks!

@calexander, don’t know if I understand your question right, but are you trying to monitor downloads from a remote site, by mean other than your own site where Mint is located? Coz, don’t think this is possible with Mint, or in this case Downloads Pepper

Ronald Heft
Third-Party Pepper Developer
Posted on Feb 21, '07 at 07:29 pm

I’m receiving the same problem as Arco. And Till, I would recommend you do name the htaccess file without a period. Unix-based systems currently can not see it.

Ronald Heft
Third-Party Pepper Developer
Posted on Feb 21, '07 at 08:19 pm

Another bug I noticed is the htaccess method will download files which are not specified in the rewrite rules.

You must be logged in to reply. Login above or create an account