XF 1.1 Addong a default secondary group

fronix

Member
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 ^^
 
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),
 
Top Bottom