MyBB Community Forums

Full Version: How to add my code in templates? need some help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2009-06-05, 08:53 PM)babjusi Wrote: [ -> ]That plug in works excellent. I have used it for some minor modification for a buddy of mine that runs mybb.

Try the following and let me know if it would help:

<if $GLOBALS['mybb']->user['usergroup'] == 1 then> 
//The code that you want to display to that usergroup here
<else>
//The default code here
</if>

As I said I have tried it and it works perfect. Hope it will help you.

Thank you thank you.
Pages: 1 2