MyBB Community Forums

Full Version: Determining a user is logged in or not...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI all

I am currently working on my new theme and had a little problem.

I would like to determine whether a user is logged in or not so I can change a link in the header based on the result.

Logged in: [attachment=14036]
Guest: [attachment=14035]

This is outside the welcome panels but inside the header template. I am coming from vBulletin and in there testing for bbuserid==0 does the trick. Is there something similar in MyBB?

Cheers
Bruce
Solved - just found I can use PHP directives in templates.

Cheers
Bruce