if one plays an audio file from a teaser view, he has effectively "read" the node (this is unique to audio nodes). Thus, I suggest we update the node history around the same point we record the click in our own stats. Just call: node_tag_new($nid)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | audio.module_63976.patch | 1016 bytes | drewish |
| #6 | audio.module_63976.patch.txt | 466 bytes | drewish |
Comments
Comment #1
drewish commentedi'm not sure i follow exactly what you mean. plays/downloads are counted from any view...
Comment #2
moshe weitzman commentednode.module keeps track of what nodes each user has seen. it does so when you you view its full page (i.e. node/x). but with audio nodes, you don't have to go to the full page because the play button is in the teaser. so iam suggesting that when someone plays an audio file, audio.module should manually mark the node as read. node.module provides a function for this called node_tag_new()
Comment #3
drewish commentedthat makes a lot more sense. should we call this when the file is downloaded as well?
Comment #4
moshe weitzman commentedyes, i think we should
Comment #5
leoburd commentedGuys,
The pointed raised here is the same as the one described in http://drupal.org/node/63765 ...
.L.
Comment #6
drewish commentedhow's this patch look?
Comment #7
drewish commenteduh, working patch here.
Comment #8
drewish commentedcommitted this to 4.7 (HEAD will be soon).
Comment #9
(not verified) commented