MyBB Community Forums

Full Version: [SOLVED] get something to show to admin/mods only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The only way i can mimc that is if i completely remove
{$posticons}

from the template. But that does no good as no one can see it then.

IS there a chance the usergroup id's changed? How can i verify them?
I downloaded the mybb hacks template conditionals. Is there a github that updated more? (that seems to happen a lot)
Is there a chance that template conditionals might not be working with X mybb version (if have 1.8.7) or with other plugins. I dont have PHP in templates plugin...but i have quite a few installed.
Quote:DVZ Random AVatars
Fast Quote
First post only
fir on page
Geoogle SEO
guest warn
haz spoiler
inline success messages
lock posts
lock old threads
minify HTML
my insert buttons
no links allowed
page manager
template conditionals
portal announcmeent cut off
prostats
related threads
select all in code's
like system (simple likes)
smashable christmas lights
tagging plugin
view unanswered posts
undo delete
users browsed topic

and then in the inactive plugins i  have
Quote:TLF Code Vault
Advanced MyCode Permissions
Automatic subscriptions
donation page
HTML in posts
Mobile MyBB 1.8
MWS Syntax Highlighter
PluginLibrary
Quick advanced editor
required approval
thank you/like system
top stats
user tagging
Your Code
EDIT:
oh it shows the user group id in admin
so admins are 4
super mods are 3
and mods are 6
---
and the ones i dont want to see it are
guests 1 (well they cant post anyways)
registered 2
awaiting activation 5
banned 7
priv user 11
user 10
locked user 12
super user 13

Ah ok...

so the ids are mixed up i guess
I changed it to 
<if $GLOBALS['mybb']->user['usergroup'] == 4 then>{$posticons}</if>
and now only admins can see.
How do you do an "or" condition in whateverlanguage this is such as

<if $GLOBALS['mybb']->user['usergroup'] == 4 or $GLOBALS['mybb']->user['usergroup'] == 3 then>{$posticons}</if>

oh i guess that worked

<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 3 then>{$posticons}</if>

thanks for the help Smile
Pages: 1 2