Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

[RoleTitle addon] Change of Role

This discussion is related to the Role Titles addon.
AoleeAolee Hobbyist & Coder ✭✭
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?
  • AoleeAolee Hobbyist & Coder ✭✭
    edited February 2011
    sorry, i was too lazy to look at the code.
    i did some changes on the code :
    //echo ''.implode(', ', $Roles).' '; echo ''.array_pop($Roles).' ';

    thanks
    meshugy
  • @Aolee: Users can have multiple roles, not just one.
    UnderDog question is still relevant.
  • AoleeAolee Hobbyist & Coder ✭✭
    @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.
  • LincLinc Director of Development Detroit Vanilla Staff
    Why would they need to be in both roles? Remove them from the Member role.
  • lucluc ✭✭
    Well, sometimes roles do not overlap.
  • LincLinc Director of Development Detroit Vanilla Staff
    Right, I was just suggesting an easy fix for @Aolee.
Sign In or Register to comment.