![]() |
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 Code:
if ($islinked) && ($vbulletin->options['verifyemail']) Code:
// get special data templates from the datastore I greatly appreciated the help. |
I was hoping at least 1 of you would know the answer. I'm already targeting the register_activate_x hook for this.
--------------- Added [DATE]1431943679[/DATE] at [TIME]1431943679[/TIME] --------------- Okidoki.. I figured out the code that I need: Code:
include_once(DIR . '/includes/functions_steamconnect.php'); --------------- Added [DATE]1431955165[/DATE] at [TIME]1431955165[/TIME] --------------- EDIT From register.php Code:
// ### DO THE UG/TITLE UPDATE ### If I alter Code:
$userdata->set('usergroupid', $user['usergroupid']); Code:
$userdata->set('usergroupid', 9); |
All times are GMT. The time now is 01:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|