Closed (duplicate)
Project:
Audio
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2006 at 23:30 UTC
Updated:
17 May 2006 at 19:33 UTC
Hello there,
I think it would be nice to increment node access statistics (daycount, totalcount, ... in {node_counter}) and add the audio node to {accesslog} everytime an audio file is played . Among other things, this would make it easier for users to browse through content that that's new or old to them and would allow the statistics module to keep track of system usage.
Thanks in advance,
.L.
Comments
Comment #1
drewish commentedleoburd, that sounds interesting. is there a module you could point me towards that does this correctly?
Comment #2
leoburd commentedHello drewish,
Here's a little code snippet that should do the trick. It has to be updated to increment play_count and other specific audio.module counters, though.
BTW, I'd appreciate if you could concentrate all the statistics update functionality in a single function that could be called by my audio_xmlrpc.module ...
Comment #3
drewish commentedI'm going to mark this as a duplicate of #63976, it focuses in on the node_new_tag(). The rest of the statistics code could be put into a contrib module using the new hook_audio() that was committed as part of #33708.