Skip to:
Content

BuddyPress.org

Changeset 7232


Ignore:
Timestamp:
06/22/2013 08:08:46 PM (13 years ago)
Author:
boonebgorges
Message:

Don't show @username in member headers if mentions are disabled

It's unnecessary and misleading to show this information when mentions have
been turned off.

Fixes #5067

Props imath for inital patch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r6795 r7232  
    2222<div id="item-header-content">
    2323
    24         <h2 class="user-nicename">@<?php bp_displayed_user_username(); ?></h2>
     24        <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
     25                <h2 class="user-nicename">@<?php bp_displayed_user_username(); ?></h2>
     26        <?php endif; ?>
     27
    2528        <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    2629
  • trunk/bp-themes/bp-default/members/single/member-header.php

    r6218 r7232  
    2626        </h2>
    2727
    28         <span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
     28        <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
     29                <span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
     30        <?php endif; ?>
     31
    2932        <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    3033
Note: See TracChangeset for help on using the changeset viewer.