The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
What would the code be to not allow unregistered users go to my custom pages? Either template code or html will work.
Thanks in advance. |
|
#2
|
|||
|
|||
|
PHP:
PHP Code:
Code:
<if condition="$bbuserinfo[userid] == 0">User isn't currently signed in</if> |
|
#3
|
||||
|
||||
|
I use a slightly different code. I must have gotten it from vb somewhere, cuz I don't just make these up.
![]() PHP Code:
|
|
#4
|
||||
|
||||
|
Or
if(!$vbulletin->userinfo['userid']) |
|
#5
|
|||
|
|||
|
Go with Boofo's I'd say
![]() In a template: <if condition="!$bbuserinfo['userid']">....</if> |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
Thx guys for all the help, I would have to say that i like Lynne's code the most. Mostly cause i dont want a custom error message i just need to prevent unregistered users to access a custom page i created and getting the defualt message is perfect.
|
|
#8
|
||||
|
||||
|
Quote:
.
|
|
#9
|
|||
|
|||
|
If it is not set, it will NOT return 0. If it is not set how should PHP even know it is numeric?
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|