![]() |
redirect to register.php for guests
hi,
is it possibile to redirect the guests to the register page of my forum? if so how? thanks |
use
Code:
<if condition="$bbuserinfo[userid] == 0"> |
<if condition="$bbuserinfo[userid] == 0">
<a href="http://www.mysite/forum/register.php"></a> </if> I put the above code in the forumhome template but it doesnt work |
Code:
<if condition="$bbuserinfo[userid] == 0"> |
now works!
thanks ;) |
That'll work only for forumhome page, guests are still able to read threads and browse forums. And you can write a plugin to redirect all guests to register page.
Create new plugin at global_start hook with following content: Code:
if (!$vbulletin->userinfo['userid'] AND THIS_SCRIPT != 'register') |
Wouldn't this work against you spider-wise? All the spiders would be crawling your register.php page...
|
well, you can put in a condition to exclude spiders.
|
All times are GMT. The time now is 05:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|