| 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 |