The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto move user from verification to a specific usergroup under condition?
Is there anyway for me to add a PHP plugin code where a user has met a specific condition once they validated their email, it'll move him/her to another usergroup rather than the default registration group?
In this case, another plugin calls up $islinked is someone is linked or not. I'd like to have something that IF user $islinked and is in the email verification group that once he/she has his/her mail verified, that in combination with $islinked it'll move him to a specific usergroup. EG: Code:
if ($islinked) { && has just verified mail address -> move to usergroup <if needed> add an ELSE code to continue normal verification to registered usergroup if not islinked. Code:
if ($islinked) && ($vbulletin->options['verifyemail']) { $newusergroupid = X; } else { $newusergroupid = 2; } Code:
// get special data templates from the datastore $specialtemplates = array('steam_softlinks'); // pre-cache templates used by all actions $globaltemplates = array( 'register_rules', 'register_verify_age', ); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); require_once(DIR . '/includes/functions_login.php'); require_once(DIR . '/includes/openid.php'); require_once(DIR . '/includes/functions_steamconnect.php'); I greatly appreciated the help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|