Log in

View Full Version : "global_start" hook question...


defi
06-27-2005, 12:28 AM
Using the hook, "global_start", I basically want to define it so -


if ($vbulletin->userinfo['usergroupid'] == 8)


This usergroup is redirected to a different page upon the loading of the page. I realize this could be done using templates alone, but is there any way to implement this using the hook system so it can be turned on/off with ease? :ermm:

Paul M
06-27-2005, 12:52 AM
Not tested, but I imagine you could do something like this ;

if ($vbulletin->userinfo['usergroupid'] == 8)
{
$vbulletin->url = ' you page url ' ;
standard_redirect('Some message here') ;
}

defi
06-27-2005, 01:59 AM
Not tested, but I imagine you could do something like this ;

if ($vbulletin->userinfo['usergroupid'] == 8)
{
$vbulletin->url = ' you page url ' ;
standard_redirect('Some message here') ;
}

Perfect! Thank you! I'll be sure to show the gratitude where needed :nervous:

Which, by the way, the space infront of the url isn't needed and instead would add the annoying little %20 ;)