MyBB Community Forums

Full Version: Hide Userstars for Certain Usergroups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am using myBB 1.6.8 and I am aware of how to remove the userstars on postbit and I am using a custom set of userstars. But I don't want to remove it at all. Instead, I want it to show only to a certain group (i.e. Members and Custom User Groups). How can I do this? I tried doing some codes but I have really no idea how it was coded. Thanks. Smile

Regards,
The Abyss
Try using the Template Conditionals plugin.

Then use something like this:

<if $GLOBALS['mybb']->user['usergroup'] == X then>{$post['userstars']}</if>

Replace X with the usergroup you want to make the userstars visible for.
(2012-09-03, 07:15 AM)Vernier Wrote: [ -> ]Try using the plugin.

Then use something like this:

<if $GLOBALS['mybb']->user['usergroup'] == X then>{$post['userstars']}</if>

Replace X with the usergroup you want to make the userstars visible for.

Hi Vernier,

Thank you for the response and I tried installing this Template Conditionals plugin that you referred and I have activated the plugin plus I edited the postbit and placed the code snippet there (I replaced the default userstar part) but still, it is not working. I will appreciate it if you can show me around or at least, correct me if I did the wrong steps. Thanks~! Smile

Regards,
The Abyss