Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[RoleTitle addon] Change of Role

AoleeAolee ✭✭
edited February 2011 in Vanilla 2.0 - 2.8
Hi when i changed a member's account to moderator, title becomes

"Member, Moderator"

can it just show the latest Role assigned?

Thanks!
Tagged:

Comments

  • Do you want it to be the latest role assigned or the "highest" role assigned?

    There was an error rendering this rich post.

  • AoleeAolee ✭✭
    edited February 2011
    sorry, i was too lazy to look at the code.
    i did some changes on the code :
    //echo '<span>'.implode(', ', $Roles).'</span> '; echo '<span>'.array_pop($Roles).'</span> ';

    thanks
  • @Aolee: Users can have multiple roles, not just one.
    UnderDog question is still relevant.
  • @Aolee: Users can have multiple roles, not just one.
    UnderDog question is still relevant.
    oh i didn't know about it. i thought there's only one role per user. yeah i think UnderDog's question is relevant.
  • Why would they need to be in both roles? Remove them from the Member role.
  • lucluc ✭✭
    Well, sometimes roles do not overlap.
  • Right, I was just suggesting an easy fix for @Aolee.
Sign In or Register to comment.