How to make stop form when not logged in like here?

Phiu Viet

Reputable
Joined
Feb 13, 2011
Messages
132
Reaction score
0
FP$
6
Hi,

I'm using MyBB and I don't know how to create a stop form if not logged in and an announcement when logged in like here - Forum Promotion.

What should I do ? I've installed PHP Template Conditional plugin but don't know how to use. Please help!

Thanks in advanced.
 
Hi,

I've solved it myself, if you installed PHP Templates Conditional and want to do that.

So here is the code:

Code:
<if $mybb->user['uid'] != 0 then>
	Logged In
<else>
	Not Logged In
</if>

You can check demo at : http://www.phiu.net/ (my homepage)
 
Back
Top Bottom