Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We would like to limit so only anonymous users are able to 'emit' energy.
There is 1 semi-related issue but from an older version of the module:
#452288: How to limit to authenticated users?
Thank you,
-hg
Comments
Comment #1
HyperGlide CreditAttribution: HyperGlide commentedBelieve this commit helps to address --
http://drupalcode.org/project/radioactivity.git/commit/588fe05Noe.
Comment #2
spidersilk CreditAttribution: spidersilk commentedCould someone explain this a bit further? I have a similar concern on a site I'm working on - they would like to exclude page views by their own staff from being counted toward the content's popularity.
The date on that commit is from before version 2.8 came out, so I would expect it would be included in version 2.8? But I still haven't been able to find any way in the settings or permissions to control which user roles content accesses count toward the content's "hotness". If there is a way to do this that I'm missing, could someone please explain?
Comment #3
spidersilk CreditAttribution: spidersilk commentedComment #4
spidersilk CreditAttribution: spidersilk commentedA further thought: one thing that might help with this is if the module exposed more events to Rules. A co-worker had suggested that Rules might be able to be used for this, to prevent a point from being added to a node's energy count depending on user rule, but the only event Radioactivity exposes to Rules is "Energy is below the cutoff level", which is not helpful here. If the addition of energy to a node was available as an event in Rules, it would help people to customize the module's functioning in a variety of ways, including the one this issue concerns.
Comment #5
lzimmerman CreditAttribution: lzimmerman commentedA hacky approach might be to check in radioactivity.js for a class or variable indicating whether a user is authenticated or not, and clearing the available incidents - e.g. (to allow only anonymous emits):