Whilst I appreciate the convenience of importing this as a product, it appears to redirect
all members (even admins) when they log in.
Since it is a relatively simple matter to write a plugin that only affects specific usergroups - or indeed a series of plugins that can redirect different usergroups to different places, I'm wondering how this hack offers further benefit?
For example, I use the following to redirect banned users to a page telling them they're banned:
Code:
Product: vBulletin
Hook Location: login_redirect
Title: Banned user redirect
Plugin PHP Code:
if (!($vbulletin->GPC['logintype'] === 'cplogin' OR $vbulletin->GPC['logintype'] === 'modcplogin'))
{
if (is_member_of($vbulletin->userinfo, 8))
{
$vbulletin->url = "http://www.my site/banned/banned.htm";
}
}
The text in red can be varied according to the usergroup / usergroup ID# / desired destination. Should it be required to redirect multiple usergroups to the same place, simply enter the usergroup ID's seperated by a comma.
This further example would send registered users to a forum of your choice:
Code:
Product: vBulletin
Hook Location: login_redirect
Title: Registered user redirect
Plugin PHP Code:
if (!($vbulletin->GPC['logintype'] === 'cplogin' OR $vbulletin->GPC['logintype'] === 'modcplogin'))
{
if (is_member_of($vbulletin->userinfo, 2))
{
$vbulletin->url = "http://www.my site/forumdisplay.php?f=6";
}
}
I don't wish to sound rude, but as yet I do not see the benefit of a product that simply redirects everyone, irrespective of their usergroup. If I'm missing some additional benefits here, I'd be grateful if someone would explain what they may be?