MyBB Community Forums

Full Version: User/guest conditional
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I am using an external shout box provider, but what I would like to know is if I can make this viewable to members only. I know how to do this in vBulletin, just wrap a conditional around the code. My question is, is this same thing available in MyBB?

I've searched and found a post that requires editing a php file, do I really have to do that?

Thanks in advanced!
LTC
Where do you want to put it? If it's in the header area, I suggest sticking the code in the header_welcomeblock_member.
No it's actually in the footer...could try it in the header though, that's a good idea Wink

Thanks,
LTC
Didn't really like it in the header Sad

Is anyone able to point me in the right direction please Smile Thanks very much in advance.
I think the only template that is different for guests and members is the welcomeblock, anything else will show the same for everybody and will need some additional code modification, so moved.
Any progress?

Thanks
You can use my PHP templates (link in signature below).
Wrap it in a conditional, like:
<if $mybb->user['uid'] then>
<!-- code here -->
</if>