PDA

View Full Version : guest redirect


M.C.
09-09-2013, 06:02 AM
Hello!

I wish all guest been redirected to forumhome.

I found this: https://vborg.vbsupport.ru/showpost.php?p=1023751&postcount=6

I edited it like that:
if ($vbulletin->userinfo['usergroupid'] == '1' AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'index')
{
header("Location: " . $vbulletin->options['bburl'] . "/forum.php");
}

It seems working OK but I have template issue now:

https://vborg.vbsupport.ru/external/2013/09/22.jpg

Why does it brake my template? It happens to default template too....

Thanks in advance!

ForceHSS
09-09-2013, 09:05 AM
what Hook Location are you using

M.C.
09-12-2013, 05:56 PM
global_start

M.C.
10-01-2013, 09:05 AM
I turned it off and add redirect in meta in headinclude...