XF 2.1 User group promotion (demotion), assistance needed

beerForo

Well-known member
This is what I am looking to do.

When someone registers, they are added to a secondary group.
When they make post #1 they are removed from this secondary group.
The whole time, they are in Registered as the parent.

I can't figure out the way, but am told it is possible.

Thanks!
 

jeb35

Well-known member
What exactly are you doing? Might help more. Usually you have new members register and they are belong to registered members group. Then you use a promotion to move them to the next group after the requirements are met. You probably need to change the way you are doing it.
 

beerForo

Well-known member
I am trying to add to a secondary upon registration and upon first post remove them from said secondary. The core can demote I just need instruction. I don't understand XF's help:
You use the 'User is NOT a member of any of the selected user groups' criterion on the promotion.

So promotion A would have that set for the user group related to promotion B.

This may mean setting up your user groups and promotions differently to utilise that.
I can't really explain it any better than I already have.

The promotion system can be used to add or remove secondary user groups, utilising the criteria as required.
Any help appreciated.
 
Last edited:

sbj

Well-known member
This should work but this doesn't work for me on the demo board. Not sure what the problem is.

1578005109297.png
1578005184807.png
1578005599818.png
 

Mr Lucky

Well-known member
I also think it would be useful to explain more specifically the actual goal in regard to specific permissions or whatever.
 

Deathstarr

Well-known member
Basically, They can login and see everything but they can only post in one(1) area, after the first post they will be allowed to enter the forum.
 

beerForo

Well-known member
That's the idea yes, the problem is, since ALL groups have the parent as Registered you literally have to go in and change the permissions of every group in every node to YES, because Registered is NO. So I want them to be in Registered AND a secondary that I can set to Never for the bulk. Then they are moved out with the post. This is instead of hours of permission changes as well as remembering for the future.
 

Mr Lucky

Well-known member
Basically, They can login and see everything but they can only post in one(1) area, after the first post they will be allowed to enter the forum.
Which be best done by adding a secondary group after first post, not the other way round.
 

beerForo

Well-known member
I already do that. They are promoted to see all. The problem is going in and clicking YES to every group every node. It can be one and done with a secondary they are removed from.

The use case doesn't really matter, I am told it is possible I just haven't figured it out.
 

sbj

Well-known member
My suggestion should theoretically work. It moves the user while he is in a valid state (registered) and while he has no more posts than 0 to the secondary group. So all people should be in the secondary usergroup once they register. And once someone has 1 post, the promotion criteria is not met anymore and the usergroup should be dropped. But it strangely didn't work for my test case.
 

beerForo

Well-known member
My suggestion should theoretically work. It moves the user while he is in a valid state (registered) and while he has no more posts than 0. So all people should be in the secondary usergroup once they register. And once someone has 1 post, the promotion criteria is not met anymore and the usergroup should be dropped. But it strangely didn't work for my test case.
Right! This is the idea and it should work. :(
 

sbj

Well-known member
Yep, it works. I can also confirm that once the post number is 1, the usergroup is removed. See the 3rd entry from above and the first entry. Both users lost their usergroups (see new value).

1578007884137.png
 

beerForo

Well-known member
@sbj this was the solution and thanks again for the help. I really appreciate it.

Don't have to click "Yes" now for every forum, every group, and future groups, since I use Inherit. Just "Never" to the forums they should not see in one group, and they are removed from it with one post. Elegantly efficient!
 
  • Like
Reactions: sbj

sbj

Well-known member
No problem. Glad I could help.

Once people understand the system, setting up multiple usergroups and nodes without having to duplicate stuff is very easy.
 

beerForo

Well-known member
@sbj
Any help appreciated. Some users are signing up and posting to the forums they are not supposed to see because the usergroup promotion is taking too long. What would cause this? I actually have the cron set to run every minute and it looks like it is. But if I look at the user history log, it will show that they accepted the terms... and then 5 minutes, sometimes 20 minutes, etc. later, the promotion. Some new signups, none. Thanks for any guidance.
 

beerForo

Well-known member
I'm going to try unchecking the Valid user state. This way when they are awaiting email confirmation it will work and after as well, maybe that's the loophole. They signup... browse, confirm, and then sneak a post in before the cron. Could be it. If that is the reason this should take care of it.
 
Top