SimpleDownload Block

Permalink
BETA2 RELEASED

I had start a very simple download block for files of any kinds.
visible in demo on this page for the moment:

with the default template :
http://cms.concrete5.fr/ressources/themes/nos-themes/...

download page:
http://cms.concrete5.fr/ressources/blocs/nos-blocs/...

other kind of templates are comming, and th SDK files will be in a contrib folder.

Al the url are to be set in "hard". The thumbnails and files are not taken from the assets (volontary) of c5.
Why? simply because i'm hosting my files on another server than the web site one ;)
it also let me to link on any file i want anywhere.

ps: a big thanks to reddog who help me.

i have one question, by the way.

i'm using a file in /tools folder but if i put a:
defined('C5_EXECUTE') or die(_("Access Denied."));

at the beginning the access is denied and i don't understand why.

in the same way i have to make an include of /config/site.php to use the defined constants like DB_USERNAME as vars.
i din't have this kind of problem in coding jobs for C5.

do i miss something ?

cali
 
cali replied on at Permalink Reply
cali
here is beta1 to test on local environnement:

http://cms.concrete5.fr/blocks/SimpleDownload/tools/DownBt.php?id=6...

tjis bloc is not already finished.
Remo replied on at Permalink Reply
Remo
how do you open the file that is located in tools?

direct link to it?

make sure you prepend this to it <?php echo $ci->getBlockTypeToolsURL($bt)?>
cali replied on at Permalink Reply
cali
hi remo yes for the moment i touch the tool file by direct link with the doownload id as argument.

i'll look about getBlockTypeToolsURL thanks a lot ;)
cali replied on at Permalink Reply
cali
just a little amelioration for the beta2

upgrade instructions includes.

download link doesn't change from the beta1.