XF 2.0 How can I use promotions to give users access to a node?

duderuud

Well-known member
What I want to achieve:
- When a user registers that user has to be put in permission group "new users"
- After x days and x posts that user has to be moved to permission group "registered user" which gives access to node X

Tested user promotions with a test user:
- Test user put in group "new users" in the admin panel
- Created promotion with the above conditions
- That works...a bit. User is put in secondary group "registered user"
- Still doesn't do what I want to achieve, it only works when I then manually remove the user from the "new users" group and make the "registered users" the primary group.

How am I going to do this?
 
The approach you are taking isn't quite right. Firstly, every user should be a member of the Registered User Group and have that as their primary user group. See this guide for more details:

https://xenforo.com/community/resources/implementing-permissions-across-multiple-user-groups.358/

What you should be doing is setting the permissions for the Registered user group as those you want new users to have. Then you create a secondary user group, let's call it "promoted users" and this group is the one that you give additional permissions to. Users will then be added to this group (and will therefore be members of both groups) with the user group permission. No need to remove someone from a user group in this case.

In the case of access to nodes, you are basically wanting a private node for anyone who isn't a new user. See this part of the guide on how to do this:

https://xenforo.com/community/resou...user-groups.358/updates#resource-update-16595

Note that it was written for XF1, so for XF2 the word "Revoke" is now "No" and "Allow" is now "Yes".
 
Back
Top Bottom