I'm trying to remove the Badges tab on profiles, but not finding this anywhere (permissions, views).

I'm using a view to display badges in profiles, so the tab is not needed.

CommentFileSizeAuthor
#7 user_badges_badges_tab_perm.patch1.06 KBjcmarco
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

castelar’s picture

Anybody have any ideas on removing the Badges tab on profiles?

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)

That tab is also where you assign badges. Without it you won't be able to.

Doesn't the 'manage badges' permissions limit who sees the tab?

castelar’s picture

I'm using rules to assign badges and/or don't mind going straight to user/xxx/badges/edit to assign them.

The manage badges permission does not limit the tab. It is visible to all, is very annoying to me and my site users, adds extra spidered/indexed pages on search engines that shouldn't be, and needs to go away.

Can anyone help?

wackywally’s picture

I want to do this too, but i want to remove it in the forum. It makes the author plane too tall

http://naruto.myanimespace.org/forum/what-your-favorite-naruto-outfit

wackywally’s picture

figured out my problem

i just deleted

 <?php /* User badges */ ?>
      <?php if (!empty($user_badges)): ?>
        <div class="author-pane-line author-badges">
          <?php print $user_badges; ?>
        </div>
      <?php endif; ?>

section in "author-pane.tpl.php"

you might want to try that in one of the profile files

castelar’s picture

wackywally - how did you remove the badges tab on profiles?

ie. http://naruto.myanimespace.org/users/narutokid

You only have "View", "Posts" and "Track" tabs - and no "Badges" tab.

This is what I'm trying to accomplish.

jcmarco’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
1.06 KB

Added new permission to show the badges tab in the user profile page.
Roles without this permission won't see the badges tab.

castelar’s picture

Status: Needs review » Reviewed & tested by the community

This works great. Thank you jcmarco!

NancyDru’s picture

Status: Reviewed & tested by the community » Needs review

I'd like one more person to review this, but it will go in on my next commit anyway.

fugazi’s picture

Patch # 7 When I can not. Tried 6.x-1.x-dev and 6.x-1.6. Unfortunately he is not disabled. I now first with Tab Tamer. Sorry for my bad English

fugazi’s picture

it is now, I forgot update.php. Sorry

NancyDru’s picture

Status: Needs review » Fixed

Committed to 6.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.