Automatic Role Change-Need help
| Project: | User Stats |
| Version: | 6.x-1.0-rc1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I read through the docs and issues here and also on your site and I only found out that this module integrates with the Rules module and/or the trigger or action area but there is no demo on how to do this.
Could someone please give me an example of the correct rule set with the correct labels and variables so I can apply an automated role change based on user's number of posts?
For example lets say when a user reaches 50 posts, I want to add the level 1 role so they will automatically get the access that level 1 role gives them. This is supposed to be able to be done using rules and actions but I need a step by step guide for this one to get me started and I can go from there.
Thanks a lot in advance,
Jeffrey

#1
Hi Jeffrey, sorry no-one has tried to help you. Unfortunately this is pretty-much a one-man-band module and I don't have the time to help many people. It's true that the documentation is lacking on Rules integration. Basically, our statistics/events auto-magically appear in Rules and we expect that module to have good enough documentation that users should be able to find statistics themselves.
Having said that, I've heard seasoned Drupal developers say things like 'Rules drives me potty', so you wouldn't be alone in being confused. :)
What you need to do is similar to the instructions at: http://drupal.org/node/298506 except that the event is 'User post count increased' and you'll need to add an Action. Select 'Numeric comparison' from the drop-down and click Forward.
In 'Number 1:' put: [user:post-count], in the drop-down select 'Greater than' and in 'Number 2:' put 49. Then, instead of adding a redirection action, click Add action and select 'Add user role' from the drop-down, before clicking Forward. Then simply check the boxes next to the role(s) you wish to add and click Save.
Finished! Hope this helps, even if it is probably too late.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.