2010-12-13, 01:32 AM
I would like to make a button on my forum for only staff to see and click called "Mod Hat" it's a button that mods can click to post a Mybb Code. Is there away to add a button like this to my post bit?
<if condition="is_member_of($vbulletin->userinfo, 5,6,7,26,25)">
<td class="thead_text"><a href="" rel="nofollow">{$lang->}<img src="button URL here" border="0" alt=""></a></td>
</if>
<if $mybb->user['usergroup'] == 4 then>
<td>
<a href="YOUR_URL">
{$lang->BUTTON_TEXT}
<img src="BUTTON_URL" border="0" alt="">
</a>
</td>
</if>
(2010-12-13, 01:30 PM)Richard.R Wrote: [ -> ]what about combining these?
http://mods.mybb.com/view/advanced-mycode-permissions
http://mybbrunway.com/tutorials/adding-b...to-editor/
http://mybbhacks.zingaburga.com/showthread.php?tid=260
In theory it should work
and long time no see redneckmelly
*wonders if she knows which charming former CF mod i be*
(2010-12-13, 06:02 AM)Yaldaram Wrote: [ -> ]Using Template Conditionals Plugin you can use this thingy. Try this;
<if $mybb->user['usergroup'] == 4 then> <td> <a href="YOUR_URL"> {$lang->BUTTON_TEXT} <img src="BUTTON_URL" border="0" alt=""> </a> </td> </if>
Remember couple of things. Replace "4" to what ever your mods usergroup ID is. Replace any thing in the code above which is in "Capital Letters".
Hope it helps.
(2010-12-13, 06:29 PM)Melbelle Wrote: [ -> ]Ok so I downloaded the php in template thing, but it has no instructions at all, and I have no idea where I'd upload it. It's probably a "Duh" thing, but I honestly don't know lol.