Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Hide Userstars for Certain Usergroups
#1
Not Solved
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
#2
Not Solved
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.
[Image: information.gif] MyBB Support Technician
Please do not PM me for support.


MyBBatically - A quick and easy way to update your board!
#3
Not Solved
(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


Forum Jump:


Users browsing this thread: 1 Guest(s)