2009-05-30, 02:04 PM
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
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