MyBB Community Forums

Full Version: only show for usergroup id
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<li><a title="Theme Options"><i class="fa fa-image" style="margin-top:12px;"></i></a>

	
<ul class="paneldropdown themepanel">

<div class="colors">

My question is how would I make this viewable for only group id 1,5,7?

anybody?
(2015-04-07, 08:38 AM)dragonexpert Wrote: [ -> ]This plugin will work: http://community.mybb.com/mods.php?action=view&pid=381

How do you use this?
You create a variable in ACP->Templates&Style->Theme Variables. After creating the variable, you put it in your template.
(2015-04-07, 09:05 PM)dragonexpert Wrote: [ -> ]You create a variable in ACP->Templates&Style->Theme Variables. After creating the variable, you put it in your template.

I put it before the div? or I am sorry kinda new.
You can also download Template Conditionals: http://mybbhacks.zingaburga.com/showthread.php?tid=464 and use this code in any template:
<if is_member('1,5,7') then>
Code executed only for people in 1,5,7 groups..
</if>

Make sure that inc/plugins/phptpl_allowed_funcs.txt contains the is_member function (add it if it's not there).
(2015-04-07, 11:04 PM)Destroy666 Wrote: [ -> ]You can also download Template Conditionals: http://mybbhacks.zingaburga.com/showthread.php?tid=464 and use this code in any template:
<if is_member('1,5,7') then>
Code executed only for people in 1,5,7 groups..
</if>

Make sure that inc/plugins/phptpl_allowed_funcs.txt contains the is_member function (add it if it's not there).

Thank you so much I have one more question can I ask here or do you want me to open thread?
If it's not connected with the initial question, a new thread should be opened
(2015-04-08, 12:29 AM)Destroy666 Wrote: [ -> ]If it's not connected with the initial question, a new thread should be opened

I opended it, it kinda is tho.