MyBB Support

mybb show secondary usergroup on postbit?

Submitted by redd, , Thread ID: 22842

Thread Closed
23-08-2016, 07:10 PM
This post was last modified: 23-08-2016, 07:13 PM by redd
#1
I am using css based userbars on my board. But i also want to show secondary usergroup title on postbit is thre any way i can do this?

I tried using this.

Code:
<if (stripos(','.$memprofile['additionalgroups'].',', ',12,') !== true) then>
<span class="ub ub12">Verified Cracker</span>
</if>



did not work sadly enough someone who could help me?


i know there are plugins that can do this but these work with the usergroup images in users, groups but tey dont work with my css based userbars

RE: mybb show secondary usergroup on postbit?

#2
try:

Code:
<if (stripos($memprofile['additionalgroups'], '12') !== false) then>
    <span class="ub ub12">Verified Cracker</span>
</if>

RE: mybb show secondary usergroup on postbit?

OP
This post was last modified: 23-08-2016, 10:58 PM by redd
#3
23-08-2016, 09:55 PM
Kill Wrote:
try:

Code:
<if (stripos($memprofile['additionalgroups'], '12') !== false) then>
  <span class="ub ub12">Verified Cracker</span>
</if>

Now its not showing anything.And when i change it to true again then it showing for everyone again even for the ppl that don't have it as secondary group

also tried

Code:
<if (stripos(','.$mybb->user['additionalgroups'].',', ',12,') !== false) then>
Show Stuff where user is in ADDITIONAL usergroup 12
</if>
did not work either

Users browsing this thread: 2 Guest(s)