MyBB Community Forums
Hide "Latest News Bar" from guests - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: Hide "Latest News Bar" from guests (/thread-146010.html)



Hide "Latest News Bar" from guests - osinho - 2013-09-28

Hello.

I am using the same news bar MyBB uses for in its index (explained in the help page titled: Latest News Bar).

This template mod is working fine in my forum, but I would like to hide it from guests since my forum is private.

Could anyone help me here?

Thanks.


RE: Hide "Latest News Bar" from guests - .m. - 2013-09-28

you can use template conditionals plugin for above requirement
install and activate the plugin and then use code like below
<if !in_array($mybb->usergroup['gid'], array('1', '5', '7')) then>
your content here
</if>
(group IDs --> 1: guests , 5: Awaiting Activation members , 7: banned members)


RE: Hide "Latest News Bar" from guests - osinho - 2013-09-28

Thanks, will try.