Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello, I have a Drupal 7 site working with several content types where I have enabled a point increase to the content author when someone views it. It just isn't working. I can see through Drupal 7's statistic module that a certain node have been visited several times but the author isn't getting any points at all.
Comments
Comment #1
BerdirPlease provide your exact configuration. I suggest you provide screenshots of both the general settings page as the content type specific settings overrides.
The visits submodule has a bunch of tests which verify that it works as it's supposed to, so maybe it's a configuration issue on your side.
Comment #2
trillex CreditAttribution: trillex commentedI am so sorry, I somehow missed this and forgot to upgrade it while fiddling with some other things. It seems to work for everyone but me (UID=1).
Screenshot of my User Points transactions
http://i.imgur.com/SZhov.jpg
Screenshot of another user's User Points transactions
http://i.imgur.com/u28mq.jpg
Screenshot of the config for that specific content type
http://i.imgur.com/uOjO5.jpg
Screenshot of an article I made. I assume that it only registers logged in users' views, so I just want to clarify that comments can only be made by registered users.
http://i.imgur.com/PQpgV.jpg
Comment #3
trillex CreditAttribution: trillex commentedComment #4
trillex CreditAttribution: trillex commentedI have also noticed that other people very rarely get points for views. Tried this with several logged in users who go on a node for the first time.
Comment #5
BerdirYour screenshots don't cover the settings at admin/config/people/userpoints/settings
Specifically, what do you have Eligible content and Recurring visits duration set to?
Comment #6
trillex CreditAttribution: trillex commentedSorry, here it is:
http://i.imgur.com/ekTZ4.png
Comment #7
BerdirYour settings look ok to me.
I can't reproduce this. I've just did various tests, visited with multiple users the same node of user 1 and every user showed up exactly once no matter how often I refreshed and my uid 1 user showed up on all other users for which I viewed a content, once for each content.
Note that visits count are currently limited to the full view mode, if you use anything else, it won't be registered. Also, what modules are you using on that site?
If you know a bit PHP, start debugging the userpoints_nc_visits_node_view() function, find out which check fails and causes it to not apply any points...