XF 2.2 change usergroup self service

Luca_

Active member
Hi everyone, I have resumed the development of my project currently on local and closed domain. I tried to create a way to make a normal registered user (normal user) if he goes to settings-->preferences-->do you want to be a blogger? -->YES --> the user doesn't change user group, can anyone explain to me why?

what I did:

1 I created a custom field

DO YOU WANT to be a blogger: single choice: YES - NO required upon registration YES.

2 I created the blogger user group

3 I created a group promotion linked to the YES choice of the field

4 when with a test user I go to preferences.. do you want to be a blogger and I press YES, it doesn't change the user group. where am I wrong? Is there an easier way to get user X to join group X?
 
4 when with a test user I go to preferences.. do you want to be a blogger and I press YES, it doesn't change the user group. where am I wrong? Is there an easier way to get user X to join group X?
The user should not change user groups but be added to an additional user group, this will work better in all cases, the permissions being cumulative.

Did you read this resource?
 
The user should not change user groups but be added to an additional user group, this will work better in all cases, the permissions being cumulative.

Did you read this resource?
that's exactly what I did.. but I didn't wait 20 minutes because I didn't see the change..

is there a way to do crons every 1 minute?
For info, the cron task for usergroup promotion are every 20 minutes...
is there a way to do crons every 1 minute?
 
Disable the original one and create a new one is the recommended way but I think you’re right saying that a cron job running every minute is not a really good idea. Maybe someone more competent than me can confirm?
 
My comment was related to the method not the frequency.

Every minute is excessive but on a small forum it shouldn't cause any noticeable issues.
 
@Xon has an addon for this though not clear if it works on 2.3.

 
Oh, I remembered to read somewhere that cron jobs aren't recommended to run every minute. But there you go. Thanks for rectifying that.
with the crons set to 3 minutes unless you have 600,000 users it's not a problem.. thanks with the crons I solved it anyway
Disable the original one and create a new one is the recommended way but I think you’re right saying that a cron job running every minute is not a really good idea. Maybe someone more competent than me can confirm?
thanks friend
@Xon has an addon for this though not clear if it works on 2.3.

thx work !!!
It should work fine with XF2.3, it is just one of the minor add-ons I haven't gotten around to marking as compatible
thanks for that wonderful plugin I hope it continues its support for subsequent versions, it is a very useful plugin. and it works perfectly.
 
Back
Top Bottom