MyBB Community Forums
[How To?] How to disable snippet in templates on certain subforums? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] How to disable snippet in templates on certain subforums? (/thread-151496.html)



How to disable snippet in templates on certain subforums? - blogantinom - 2014-02-27

I have a http://widgets.amung.us widget that shows the number of people in the forum on my footer template, but I wanted to stop it from appearing on private threads, for privacy concerns. It even showed private date copied from one of those threads.

I have conditional templates installed.

I have used already something similar to not show ads for moderators, like the code below

Quote:<if in_array($GLOBALS['mybb']->user['usergroup'], array(4,5,6)) then> stuff for usergroup 4,5,6</if>

But how would I do the same to exclude some subforums for the html snipped?

Thanks a lot for the help
Eco


RE: How to disable snippet in templates on certain subforums? - blogantinom - 2014-03-06

I would really appreciate if someone would give me a help.


RE: How to disable snippet in templates on certain subforums? - Destroy666 - 2014-03-07

So.. You want to check forums in footer template, right?

If yes, try this:
<if !in_array($GLOBALS['fid'], array(1,2,3)) then>display in all forums except fid 1,2,3</if>