« Upgrading to D7? | Main | Loggin and communication data requests - Part 1 »

February 28, 2012

Logging and communicating file downloads. Part Treux

[EDIT: I had to reconfigure how files were displayed. Switching to a File type of View. See this post for more.]

If you want part 2 and part 1.

Implementation Round 2:

1) Install and enable additional modules

Squeeze - gives ability to interrupt a file download by redirecting to a Webform
Filefield Stats - gives cryptic name to file download link, allows squeeze to not fire until the file is actually clicked on (i.e., user can still view node page)
Download Stats - introduces Rules action to trigger upon file download. I will use this to send an email to the file contributor with information from the Webform

$ sudo drush dl squeeze-6.x-1.x-dev filefield_stats download_count
$ drush en squeeze filefield_stats download_count

* May need to apply this patch for Squeeze

2. Create a webform to collect use information

3. Visit update.php and Configure

- Permissions (admin/user/permissions)
Squeeze - check all for administrator, nothing else
Download Count - Check all for admin, view own download counts for Authenticated
Filefield Stats - check all for admin, nothing else

- Modules
Squeeze (admin/settings/squeeze):
Check Default for 'Show page?';
Squeeze enabled content types: Data File Data Set;
Default Squeeze form: Data Download Form;
Check Redirect back to protected page

Download Count (admin/settings/download_count):
No changes
You can disable all the new menu items though admin/build/menu-customize/navigation

Filefield Stats: no options

4. Per the Squeeze module: File fields should have 'Generic files + Stats URL [+ Download Count]' as display type

I use a View (admin/build/views/edit/datafile_list) to list files so this setting is in the Field section of the pertinent view. Change the Public file, leave Private files as is.

5. Create a Rule that will trigger upon download and send an email to the Data Set Contact
This rule should include the following conditions (custom PHP):
Is downloaded file from a Data File CT?
Does the Contact want to be downloaded when files are downloaded?

The action should do the following:
Retrieve Data Set contact information
Retrieve last webform submission for the IP of the downloading user
Package the Webform submission information into an email and send to Contact.

6. [Optional] Get this module patch taken care of for usability purposes.

7. Profit

Posted by kkwaiser at February 28, 2012 12:26 PM

Trackback Pings

TrackBack URL for this entry:

Listed below are links to weblogs that reference Logging and communicating file downloads. Part Treux:

» www.coachfactory-outletonline.com from www.coachfactory-outletonline.com
coach factory outlet coach factory online coach factory outlet online [Read More]

Tracked on February 19, 2014 03:39 PM

» louis vuitton outlet from louis vuitton outlet
[url=http://www.nikeoutletairmaxstore.com]nike outlet[/url] [url=http://www.nikeoutletairmaxstore.com]nike outlet store[/url] [url=http://www.nikeoutletairmaxstore.com]www.nikeoutletairmaxstore.com[/url] [url=http://www.guccioutletonline-sale.com]gu... [Read More]

Tracked on February 20, 2014 12:16 PM

» http://www.xxnx.ca/article_detail/8-secrets-about-vouchers-they-are-still-keeping-from-you-469783.html from http://www.xxnx.ca/article_detail/8-secrets-about-vouchers-they-are-still-keeping-from-you-469783.html
Data Discussions: Logging and communicating file downloads. Part Treux [Read More]

Tracked on March 21, 2014 10:08 AM

» incorporacoes.com.br from incorporacoes.com.br
Data Discussions: Logging and communicating file downloads. Part Treux [Read More]

Tracked on April 9, 2014 03:25 AM

» http://www.dynicks.com/5-incredible-discounts-transformations from http://www.dynicks.com/5-incredible-discounts-transformations
Data Discussions: Logging and communicating file downloads. Part Treux [Read More]

Tracked on April 9, 2014 08:18 PM


Login to leave a comment. Create a new account.