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

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Please 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.

trillex’s picture

I 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

trillex’s picture

Status: Postponed (maintainer needs more info) » Active
trillex’s picture

I 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.

Berdir’s picture

Your 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?

trillex’s picture

Sorry, here it is:

http://i.imgur.com/ekTZ4.png

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Your 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...