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

XF 1.1 Addong a default secondary group

#1
How can i add a default secondary group so after someone has registered they get the default group and a secondary group.

I know i can use User Group promotions, but this only runs once an hour and that delay is not good for me ^^
 
#2
Okay, i fixed this myself

My Solution:
Open 'XenForo/DataWriter/User.php'

Find:
'secondary_group_ids'
=> array('type' => self::TYPE_BINARY, 'default' => ''),
'display_style_group_id'
=> array('type' => self::TYPE_UINT, 'default' => ''),

Change to
'secondary_group_ids'
=> array('type' => self::TYPE_BINARY, 'default' => SECONDARYGROUPID),
'display_style_group_id'
=> array('type' => self::TYPE_UINT, 'default' => SECONDARYGROUPID),