Quote:
Originally posted by JakeC
First off, thanks for the replies. I have just installed the advanced dynamic templates hack by logician and I want to use the conditionals in order to decide when the logincode is displayed in the header and when its not. Someone told me that what I need to do is parse the $logincode (whatever that means, I don't know). Is there a hack already out that does this or can someone tell me how to do this? I just need the Header Template to recognize the $logincode and $logoutcode and I'll use the conditionals to do the rest. Is my thinking flawed? Please let me know. Thanks.
|
Erwin's solution is nice..
If you want the "conditional way" of advanced templates, it's similiar to that solution: You can use:
[[($bbuserinfo[userid]>0)]]
Your header template if the user is logged in
[[/($bbuserinfo[userid]>0)]]
[[($bbuserinfo[userid]==0)]]
Your header template if the user is NOT logged in
[[/($bbuserinfo[userid]==0)]]
format in any template you like (including header)