Page 1 of 1
file dowload with counter?
Posted: Tue Jul 18, 2006 7:10 am
by Mesmer
Is there a mod available which makes it possible to put a file up for download with a counter?
Like: [filename] downloads: 12
Re: file dowload with counter?
Posted: Tue Jul 18, 2006 2:16 pm
by calguy1000
check out the uploads module on the forge (dev.cmsmadesimple.org) it does exactly that.
Re: Uploads Module
Posted: Tue Jul 18, 2006 2:29 pm
by Mesmer
thanks. will try it
I intalled the module and everything seems ok but when I want to show a link on a page using
Code: Select all
{cms_module module="Uploads" category="nieuwsbrieven" mode="link"}
I get this error on my page:
string(63) "Smarty error: unable to read resource: "module_db_tpl:Uploads;""
When I try mode="url" I get:
Error!
Error: Insufficient parameters supplied to module!
What did I do wrong?
Re: file dowload with counter?
Posted: Tue Jul 18, 2006 3:52 pm
by Dr.CSS
did you try it in lower case "uploads"
Re: file dowload with counter?
Posted: Tue Jul 18, 2006 6:46 pm
by Mesmer
doesn't make a difference.
Just noticed mode="detailed", mode="upload", mode="summary" work without a problem.
mode="single" and mode="singlesummary" Both give the msg:
Error!
Error: Insufficient parameters supplied to module!
Re: file dowload with counter?
Posted: Tue Jul 18, 2006 6:50 pm
by calguy1000
when you're using those modes you have to specify the id of the upload to point to. there's a param for that.
Re: file dowload with counter?
Posted: Sun Oct 08, 2006 5:22 pm
by Caspar
calguy1000 wrote:
when you're using those modes you have to specify the id of the upload to point to. there's a param for that.
Hello,
I get the same error:
Code: Select all
string(63) "Smarty error: unable to read resource: "module_db_tpl:Uploads;""
My tag looks like that:
Code: Select all
{cms_module module='uploads' category='pdfdownloads' mode='link' upload_id='1'}
I have uploaded a PDF file in the category's directory and it has the ID "1". Infact, the link gets displayed and the file is downloadable, but just after the link there's that error message.
Tried uppercase for
as well.
Module version 1.1.14 after xml-install of 1.2.3 had failed.
CMSMS version 0.13, mod_rewrite urls.
Thank you for responding!
Regards, Cas
Re: file dowload with counter?
Posted: Sun Oct 08, 2006 6:04 pm
by tsw
thats a bug, fixed in svn in few moments

Re: file dowload with counter?
Posted: Sun Oct 08, 2006 6:14 pm
by Caspar
tsw wrote:
thats a bug, fixed in svn in few moments
woohhh, let me know when and where
