Page 1 of 1

file download counter

Posted: Tue Jun 26, 2007 7:39 am
by berserkk
Hi I have some files on my site, avail for download, I want to see the popularity.
I've done a search of these forums but not really getting much info.
I've uploaded files by both ftp and by the uploads module into directories that are under uploads\talks
talks is an uploads category.
I don't know how to set it to view a download counter for the file, I can't see how to connect the files to the uploads module either.
Can anyone shed any light?
thanks,
Ben

Re: file download counter

Posted: Tue Jun 26, 2007 8:09 am
by cyberman
There's an advanced version for action.default.php here

http://forum.cmsmadesimple.org/index.ph ... l#msg51272

Yes, it's german - but I mean attachment :). Not sure if it's included in current version

By inserting in template

Code: Select all

{$downloads} : {$entry->downloads}
you will see number of downloads.

Re: file download counter

Posted: Sun Jul 08, 2007 2:18 pm
by berserkk
Hi thank-you for the reply,
I tested today for the first time.
I replaced the file - but i am not sure of the next steps.
(i tried translating the german post, it translated well but no real help)
1) which template do i insert "{$downloads} : {$entry->downloads}"
2) then how do i display downloads for a file?
currently my files are displayed via a "news" post, and can be downloaded from the summary

I tried inserting "{$downloads} : {$entry->downloads}" into the summary template for the news post.
I only got ":" - of course i didn't think this would work because it does not address the file at all.
Any help?
thanks,
Ben!

Re: file download counter

Posted: Mon Jul 09, 2007 8:24 am
by Michael AC
Hi,

maybe give the banner module a try?

After banner module installation in admin area -> content -> banner management you can see clicks on links (or linked files)... read banner help for more information.

Kind regards
Michael

Re: file download counter

Posted: Wed Jul 25, 2007 8:41 am
by berserkk
still no love =(
there was another question in these forums
"Is there a mod available which makes it possible to put a file up for download with a counter?
Like: [filename] downloads: 12"

This is what i want, but there wasn't really an answer
surely someone has this functionality working?
thanks for your help,
ben

Re: file download counter

Posted: Wed Jul 25, 2007 9:26 am
by RonnyK
Berserkk,

the topic in German where Cyberman pointed at, was a changed file for the Uploads module. Inserting the piece of code, was meant to be inserted in one of the templates of that module. By calling that module and shwoing the files that are there for download, the extra code added to the template of "Uploads", will show the extra information. This extra functionality is incorporated in the attached file of that topic.

Ronny

Re: file download counter

Posted: Thu Jul 26, 2007 5:18 am
by berserkk
Hi ronny & others,
i looked deeper into it, i found i was able to track files & downloads after removing the uploads module and installing 1.3beta the functionality now makes a lot more sense - as i realise now the uploads module wasn't functioning at all.
sorry to take all your time,
thanks a lot for all your help!
ben