Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 - 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: How to tell if someone is logged in
by Catzwolf on 2007/4/26 17:40:50

When I first posted I wasn't 100% sure, wasn't till King reposted I realised I made a mistake and had to go look it up lol

Anyway, glad it is working for you :)

ATB

Catz
Re: How to tell if someone is logged in
by kings on 2007/4/26 17:22:48

Thanks to the both of you, works great
Re: How to tell if someone is logged in
by tmreg on 2007/4/26 17:08:37

Catzwolf, you beat me by seconds.

Kings, either will work.
Re: How to tell if someone is logged in
by tmreg on 2007/4/26 17:01:23

You need to wrap whatever you want to display in an "if" statement. Start with this:
le="color: #000000"><?php <{if $xoops_isuser == true}>

and end with this:
le="color: #000000"><?php <{/if}>


Put whatever html you want in the middle and it will only display when the user os logged on.

Use
le="color: #000000"><?php <{if $xoops_isuser == false}>

if you want something to display only if the user is not logged in.

I have used this extensively from making custom user menus to having "logged in" icons, to changing headers depending on if you are logged in or not.
Re: How to tell if someone is logged in
by Catzwolf on 2007/4/26 17:01:00

Whoops I bad, it should be $xoops_isuser

Who's Online

208 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits