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.

hide specific role in user account

carlokokcarlokok New
edited April 2011 in Vanilla 2.0 - 2.8
Is it possible to hide a specific role from being shown on the profile page? I don't want the role names for access to private categories to be visible to the public

Comments

  • figured this out by some custom code:

    diff --git a/applications/dashboard/views/modules/userinfo.php b/applications/dashboard/views/modules/userinfo.php
    index d91261c..1712112 100755
    --- a/applications/dashboard/views/modules/userinfo.php
    +++ b/applications/dashboard/views/modules/userinfo.php
    @ if (Gdn::Config('Garden.Profile.ShowAbout')) {
    <?php echo T('Last Active'); ?>
    <?php echo Gdn_Format::Date($this->User->DateLastActive); ?>
    <?php echo T('Roles'); ?>
    - <?php echo implode(', ', $this->Roles); ?>
    + <?php
    + $newroles = array();
    + foreach ($this->Roles as $key) {
    + if (strpos($key, "private") !== 0) {
    + $newroles[] = $key;
    + }
    + }
    +?>
    + <?php echo implode(', ', $newroles); ?>
    <?php
    if ($this->User->InviteUserID > 0) {
    $Inviter = new stdClass();
    @ if (Gdn::Config('Garden.Profile.ShowAbout')) {


Sign In or Register to comment.