Installed and running downloads pepper. But it does not seem to be recording the downloads. Here is an example (scroll down and click the link that downloads the .zip file) collegeclassifieds.com/?function=0301&s … &adID=3049
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!
Installed and running downloads pepper. But it does not seem to be recording the downloads. Here is an example (scroll down and click the link that downloads the .zip file) collegeclassifieds.com/?function=0301&s … &adID=3049
If you haven’t set up any .htaccess - in that case:
You haven’t enabled automatic redirecting in the peppers preferences.
OK. But your readme file did not indicate a need to do so. Also, I have no need for an htaccess file in my application. So, I try to avoid putting in single files for things that honestly, have only a single purpose. And I generally, don’t like using htaccess files. I see on your site however, that there are other ways to do this, namely: http://yourdomain.com/mint/pepper/tillk … rchive.zip
I think what is somewhat frustrating is that alll of the mint and pepper packages are done on the assumption that one is running a site built in PHP. I am not. I can and do run PHP, but my site is not PHP. So, I think it would be a good idea for there to be alternate methods of doing things. Or, maybe I am just not running the kind of site that Mint was designed for?
Have you read the peppers documentation or searched the forums - at the point of writing this topic.
I’m not you babysitter, if you want something do it yourself and don’t blame me for your laziness or whatever.
If you would have read the docs you would know that you don’t need a htaccess, just *!@%$$!! use method one or two.
Haha Till, steady! :)
I see on your site however, that there are other ways to do this
There are a couple of ways and implementing the the redirects with .htaccess is the easiest method with little involvement from yourself. However, as you stated you can simply edit each download link code to be tracked manually.
I can and do run PHP, but my site is not PHP.
Mint is a PHP app, so you have to be aware of and be able to use and handle PHP as it is a huge part of what Mint is.
Sam, thanks. I solved it by changing the download link code. Till, I wasn’t trying to piss you off, I was just saying, it’s not in the read me doc supplied with your zip file. Sorry, but running a burgeoning web site, doing everything from finances to marketing to development, I don’t have a lot of time to dig very deep into documentation. But thanks!
Till, I see the option now on the preferneces panel. Sorry for being such a moron. Thanks!
Also, for those of us who prefer Python (Django <3), Ruby (Rails), or even auto-generated directory listings, this won’t work. I personally use lighttpd Here’s the rewrite rules I used to get it working:
url.rewrite = (
"(.*)" => "http://yourdomain.tld/mint/pepper/tillkruess/downloads/download.php?uri=http://yourdomain.tld/$1&force"
)
Alternatively, for specific file extensions, you’d wrap the above with:
$HTTP["url"] =~ ".(tar|bz2|gz)$" {
// rewrite rule
}
This assumes you use a separate directory for downloads, which shouldn’t be too awfully hard to manage. ;)
You must be logged in to reply. Login above or create an account