MyBB Community Forums

Full Version: Help me , !
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2021-10-03, 04:05 PM)PARADOXP Wrote: [ -> ]if you want to hide the contents from guests then you can simply use

 <if $GLOBALS['mybb']->user['usergroup'] == 1 then><else> your content </if>
or if you want to hide that from only some users then replace usergroup with 'uid' and == the uid number. 

and where should this be inserted? which template?
wherever you want to add , it doesn't matter. But you have to be careful that you should know what you are doing.
(2021-10-04, 03:56 AM)PARADOXP Wrote: [ -> ]wherever you want to add , it doesn't matter. But you have to be careful that you should know what you are doing.

but where is it anywhere? which template?
for using conditionals in any template

see this thread... every post has a hints to how to use conditionals

https://community.mybb.com/thread-31860.html
Pages: 1 2