The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Not Logged In Redirect
Does anyone know of a way to make it so that if you are not logged in it redirects you to an alternate login page?
My forum uses an alternate login page and not the normal vBulletin login, so I was wondering if I could make it so that they can't go to /forums/ at all if they are not logged in. (Currently it just says to log in and shows the default login) Thanks |
#2
|
||||
|
||||
Bumping this---
|
#3
|
||||
|
||||
Put this at the top of your header template
HTML Code:
<if condition="$bbuserinfo['usergroupid'] == 1"> <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mysite.com/register.php"> </if> |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
Try this instead
HTML Code:
<if condition="THIS_SCRIPT != 'register' AND is_member_of($bbuserinfo,1)"> <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mysite.com/register.php"> </if> |
Благодарность от: | ||
MagicPID |
#6
|
||||
|
||||
Quote:
Thanks, I appreciate it. |
#7
|
||||
|
||||
One final issue, I still want my users to be able to use the lost password php which is found under /forums/login.php?do=lostpw, the only problem is it's situated within the login.php and the whole point of this thread was to avoid users being able to access that.
Is there a way to let users only access that part of the login.php? |
#8
|
||||
|
||||
Not that i can think of off hand, but you could always put the lost password link at your redirected location...........but i'll have a think about it
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|