What about putting a download count beside the various versions. I would be curious to know how many times my module had been downloaded.

Ron.

CommentFileSizeAuthor
#1 release_dlcounter_0.patch4.58 KBbuchanae
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

buchanae’s picture

Version: 4.7.x-1.0 » 5.x-1.x-dev
FileSize
4.58 KB

I wrote this simple click-thru release download counter patch for a repository site I am building, and I am submitting it for comments, additions, questions, and blasphemous remarks :) Please feel free to tear it apart if it can be done in a better way.

A summary of what I did:

1. Changed the code that generates the link to the extension download file to point to an intermediary page called "dlcounter/node_number" instead of "files/filename"
2. Registered the page "dlcounter/node_number" to a callback handler function
3. Created the callback handler function. this function increments the download count in the database and redirects the page to the actual file
4. Modified the install and update database schema profiles to add the extra download count field to the project_release_nodes table
5. Added a download count message to project release pages

If you go to a release node, you will see a download count. I will be adding a default view for most downloads per project, and any settings that seem critical.

Thank you!
buchanae

bloomaniac’s picture

+1; I like this

njkt’s picture

If you use the module "Download Counter" I wrote 2 patches for this sort of thing,

http://drupal.org/node/131342

dww’s picture

Status: Active » Closed (duplicate)

thanks, but this is duplicate. let's move discussion back into the original issue: http://drupal.org/node/32124