Download manager

7th Feb 2006 ¥åßßå

Ok, I've had a tad of a play under the hood of the download manager plugin and it now has two hooks.

If you want to log a download then use h[x]ttp://download/<file path/name>

If you just want to protect a file (such as images etc) from hotlinking then use h[x]ttp://protected/<file path/name>

All files just get uploaded to media/blogs/chat/protected/<path to file>

I changed the media dir to put it back in the webroot as the filemanager throws a fit if I put it above webroot (must remember to bring that one up on the dev list).

Coming soon :-
Two more "hooks" [am_dl_percent <file path/name>] and [am_dl_count <file path/name>] these will return numbers and can be used as straight text or part of an img url:-

This file has been downloaded [am_dl_count <file path/name>] times

<img src='h[x]ttp://skin/img/[am_dl_percent <file path/name>]percent.jpg' />

Ohh yeah, and I need to render h[x]ttp://skin/ as '' to allow for urls relative to SkinBase().

¥

 
 
 
 

Comments

Anonymous
7th Feb 2006
To bad that b2evo doesn't let us keep the content "off the web", b/c IMO ... that's the COOL part of the manager.
Alright ... I noticed that there are users|blog directories in /protected/media
I also added:

  • dl (file downloads)

  • img
    • blog
      • 0602 (yearMonth)




I don't generally use the upload thing, preferring FTP and like the images used in blogs to be organized (b/c we have lots of images on our site :p ... of course ... prolly "img" would work just fine for as many images as I've used so far. :|

 
 

Recent Comments

     
     

    Archives