The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[Urgent] Check if user is logged in.
Can someone help me on this, I finally got a working login page to integrate my site by using the code from this page but I can't seem to figure out how to hide the form and show something else if the user is already logged in. Anyone have ideas?
|
#2
|
|||
|
|||
<if condition="$show['register']>
LOGIN CODE <else /> Text for logged in users </if> How about that? |
#3
|
|||
|
|||
That didn't seem to work at all, it showed both the login code and the other.
What Do I have to include for this to work, that may be the problem. |
#4
|
||||
|
||||
Is this on your own custom page? Could you post that page?
|
#5
|
|||
|
|||
HTML Code:
<if condition="$bbuserinfo[userid]"> Text For Logged In Users <else /> LogIn Code </if> |
#6
|
|||
|
|||
http://www.truewebgaming.com
and to use the if statements, what do I need to include? Also, can I just use php's if statements, and as far as the bbuser thing, what do I need to include? |
#7
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=170110" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=170110</a>
|
#8
|
|||
|
|||
Ok, well, I followed that, but it says this when I test it:
Quote:
--------------- Added [DATE]1203349108[/DATE] at [TIME]1203349108[/TIME] --------------- I found out that it's a notice, so it's not important, but it still isn't checking whether the user is logged in. Anyone? --------------- Added [DATE]1203352368[/DATE] at [TIME]1203352368[/TIME] --------------- If you aren't logged in, all it does is show the error, and nothing else is loaded, if you are logged in, it just shows the notices at the top, but it loads the rest of the page |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|