MyBB Community Forums

Full Version: Template Conditionals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the code using the template conditionals plugin for only a certain usergroup to see the area?
can someone help please? bumperooni
ask at the forum where you got the plugin, not sure how many folks here use that plugin
To disallow certain groups to not see specific area, you've to use the following technique;

<if $mybb->user['usergroup'] != 2 then>
// do something here. Be sure that this will dis-allow all users other then User Group "2" to see the area / text you typed here.
</if>

Just take this into consideration that your code start with <if> command and ends with </if>
(2010-12-08, 06:52 PM)Yaldaram Wrote: [ -> ]To disallow certain groups to not see specific area, you've to use the following technique;

<if $mybb->user['usergroup'] != 2 then>
// do something here. Be sure that this will dis-allow all users other then User Group "2" to see the area / text you typed here.
</if>

Just take this into consideration that your code start with <if> command and ends with </if>

okay, thank you. so all i have to do is edit the orange part with what want guests to be able to see and members to be able to see?
Yes..