• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Massively change primary usergroup

#1
I migrated from vBulletin where i had a custom usergroup named Registered Full. When users reached 20 posts their primary usergroup switched from standard Registered to Registered Full.
After migration i have those users in a xenforo primary usergroup named Registered Full. What i wish is to switch those users to Registered as primary and adding Registered Full as Secondary.

How can i achieve it ? Should i play directly with the database ?
 

Brogan

XenForo moderator
Staff member
#2
The easiest way (without resorting to hackish methods) would be to delete the Registered Full usergroup - all of the members which have that group as their primary will then default to the Registered user group as the primary.

Then you can create a new Registered Full user group and a corresponding promotion.
 
#4
ok i made a test on a local installation and all users were moved to registered.
Now i created a promotion, with condition if message >= 20 then add to Registered Full secondary group, then i run the cron job for promotion but nothing happens. No users got the promotion
 
#10
Hummm, anyway i run it but no effect. Do yo confirm that it process ALL users, not checking if they were active in the last 72 hours ?

Thanks a lot
 
#11
Ok, i'm a dumb that forgot that i'm able to read code :p

Is ok if i delete

Code:
, 'last_activity' => array('>', XenForo_Application::$time - 86400 * 3)
from
Code:
        $conditions = array(
            'user_state' => 'valid',
            'is_banned' => 0,
            'last_activity' => array('>', XenForo_Application::$time - 86400 * 3)
        );
in order to not count last activity ?