Version: 1.00, by borbole
Developer Last Online: Oct 2015
Category: Mini Mods -
Version: 4.0.1
Rating:
Released: 02-09-2010
Last Update: 05-11-2012
Installs: 110
Uses Plugins
Translations
No support by the author.
This is a small hack that will allow you to redirect your members to an url of your choise after they register at your forum. It works on both registration methods. For the Instant registration when no emaila ctivisation is needed and for Activating Acount method as well, in which case the user will be redirected to the url of your choosing immediately after he/she activates his/her account from the email address that they have been registerd at your forum.
The url can be an internal one, i.e. to the rules section of your forum or at the Introduction area, or it can be an external url.
You can enable and disable this hack at the Acp of your forum. You can also enter there the url to where you want to redirect your users to after they register at your forum and/or after they activate their account.
There is a bug in this . If you moderate your members it does not work .
It will not put them into users awaiting moderation after they have activated through email even if you have selected yes to moderating new users in registration options , You might want to look into fixing this . I'm also looking at fixing it .
I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!
I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!
I had the same issue with user activation on my board. When new users were clicking on their activation links it was just sending them to the custom page and not activating their accounts. I had to disable that portion of the modification. Other than that, working great!
Just to say, I too have this bug. I tested with more than one test user registration. All couldn't really activate their accounts, they stayed in users awaiting mail activation.
It's a shame, it's excellent idea and if this mod would work with redirecting after mail activation it would be great. Using just redirecting after registration works.
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...