Amout of user points decides premission

Events happening in the community are now at Drupal community events on www.drupal.org.
zumph's picture

The idea is this:

When you create an account you will be given 10 user points. Then you will be given 10 points automatically every week. As i understand it this can be done through the rules module. Then i want to to make certain nodes viewable depending on the amount of user points you have. So the longer time you have been a member of the site the more nodes can be accessed.

Anyone know how to set node persmissions depending on user points?

Regards

/Zumph

Comments

A rough idea would be to use

Satori42's picture

A rough idea would be to use User Role (one of the Userpoints Contributed Modules, available here: http://drupal.org/project/userpoints_contrib ) to cause users to join or leave Roles automatically based on the number of Points they have. Then create Roles with various permissions for that purpose. A nice aspect of this is that you can also have User Badges for the roles, which users can display on their signature lines in various online forums.

A better idea would be to use the Rules module. You'd design a Rule when a user wanted to view any node or type of nodes, and then compare the date of their account creation against today's date. The Rule would then either load the node for them, or redirect them. This might take a small bit of custom code which can be pasted in. You can consult a reference tome and work out how to code that bit yourself, or hire someone for a freelance microjob to do it for you.

When you have it, please share the code snippet with the community here so that others may use it.

User Points

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: