Ok, I solved problem, there was missing quite a bit of code:
PHP Code:
if ($userinfo['coppauser'] OR ($vbulletin->options['moderatenewmembers'] AND !$userinfo['posts']))
{
// put user in moderated group
$userdata->save();
eval(standard_error(fetch_error('moderateuser', $userinfo['username'], $vbulletin->options['forumhome'], $vbulletin->session->vars['sessionurl_q']), '', false));
}
else
{
// activate account
$userdata->save();
// rebuild stats so new user displays on forum home
require_once(DIR . '/includes/functions_databuild.php');
build_user_statistics();
$username = unhtmlspecialchars($userinfo['username']);
if (!$user['emailchange'])
{
if ($vbulletin->options['welcomemail'])
{
eval(fetch_email_phrases('welcomemail'));
vbmail($userinfo['email'], $subject, $message);
}
$userdata->send_welcomepm();
}
if ($user['emailchange'])
{
eval(standard_error(fetch_error('emailchanged', htmlspecialchars_uni($userinfo['email'])), '', false));
}
}
This is code that normally would be executed in register.php (in your forum root). I added it before redirecting link in mod.
You can use my modified version and it should work without problem. It solves if user is put in moderated group, changes mail address, you use mail or PM to greet new users, etc...