• Participant
    Level: Initiated
    Posts: 5
    Tim Paschkewitz on #45404

    Hi Brajesh,

    Thank you!

    I am using GeneratePress as my theme. I have been using the same theme since I developed the site, even when the badges used to appear on user profiles.

    GeneratePress does not have any BuddyPress specific content, no folder within the theme. I only see single.php, header.php, content-single.php, and content-page.php which may be involved with the BuddyPress profile.

    You’ll notice that I did inject some code in my theme’s functions.php file to add social media content BENEATH the profile background image, but, I have tried commenting out this content to see if it brings the badges back, but it does not, so I do not think that’s the cause. This code I’ve added (to functions.php) is:

    function bpfr_socialize_profile () {	
    echo '<div class="member-social-wrap"><span class="member-social-title">Social Media:</span>';
    if ( $data = bp_get_profile_field_data( 'field=Twitter ' ) ) : 
    <div class="member-social-icon"><a href="http://twitter.com/<?php echo xprofile_get_field_data( 'Twitter', bp_displayed_user_id() );?>/" target="_blank" title="Twitter"><i class="fab fa-twitter-square icon-twitter">  </i></a></div>
    add_filter( 'bp_before_member_header_meta', 'bpfr_socialize_profile' );

    Sorry for taking your time, I just don’t understand why they show up in some places but not others and my technical skills are limited. I appreciate your help.

    I added
    do_action( ‘bp_member_header_meta’ )
    to my functions.php file, but it made no difference. It probably needs more code for it to work?


  • Participant
    Level: Initiated
    Posts: 5
    Tim Paschkewitz on #45375

    Hi Brajesh,

    Thank you for your help. It’s strange, because I’m not a coder and would not have knowingly made any changes to the header files. I suppose yes, my Buddypress is highly customized (with plugins from BuddyDev, Wbcom, BuddyBoss (but I don’t run that theme). In fact, I have most buddypress-altering plugins from you (either as BuddyDev or listed as by Brajesh Singh), including:

    BP Non Editable Profile Fields
    BuddyPress Dynamic Group Tab Content
    BuddyPress Group Tabs Creator Pro
    BuddyPress Login Redirect to Profile
    BuddyPress Member Types Pro
    BuddyPress User Badges
    BuddyPress User Profile Tabs Creator Pro
    BuddyPress Xprofile Custom Field Types

    All of the above are active.

    So I dug a little deeper, but forgive me, I’m a novice at understanding php and when files are called and why…in this file, as you suggested: /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/member-header.php, I do not see the hook you described above. Here is what that file contains

     * BuddyPress - Users Header
     * @since 3.0.0
     * @version 7.0.0
    <div id="item-header-avatar">
    	<a href="<?php bp_displayed_user_link(); ?>">
    		<?php bp_displayed_user_avatar( 'type=full' ); ?>
    </div><!-- #item-header-avatar -->
    <div id="item-header-content">
    	<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    		<h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
    	<?php endif; ?>
    	<?php bp_nouveau_member_hook( 'before', 'header_meta' ); ?>
    	<?php if ( bp_nouveau_member_has_meta() ) : ?>
    		<div class="item-meta">
    			<?php bp_nouveau_member_meta(); ?>
    		</div><!-- #item-meta -->
    	<?php endif; ?>
    			'label'        => array(
    				'plural'   => __( 'Member Types', 'buddypress' ),
    				'singular' => __( 'Member Type', 'buddypress' ),
    			'list_element' => 'span',
    	<?php bp_nouveau_member_header_buttons( array( 'container_classes' => array( 'member-header-actions' ) ) ); ?>
    </div><!-- #item-header-content -->

    I wouldn’t have knowingly made a change, so I can only suspect it’s a plugin conflict or something. If it’s as simple as adding a snippet (that is preferred as to modifying core files), please advise how to add the appropriate hook. I don’t really understand where to put it and what all the syntax would be, sorry!

    Thank you!

  • Participant
    Level: Initiated
    Posts: 5
    Tim Paschkewitz on #45321

    I have just checked what I think is the correct header file…
    In the file that is at /bp-themes/bp-default/members/single/member-header.php I see the following hook, which I think is what you said could be missing:

    		 * If you'd like to show specific profile fields here use:
    		 * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    		 do_action( 'bp_profile_header_meta' );

    So, with regard to possibility #2, how do i fix this, if this is the cause? As I said, badges are showing up on the members loop (directory) and on group members detail, just not on single profiles.

    Thank you!

  • Participant
    Level: Initiated
    Posts: 5
    Tim Paschkewitz on #45225

    Sorry – let’s keep this ticket open.

    I now have updated to 1.2.4 version of the plugin, but I still cannot see any badges on the single member profile.

    Under ../wp-admin/options-general.php?page=bp-user-badges-settings I have Members Directory, User Profile, and Group Members List selected; however, badges DO NOT show up on User Profile, but they show up on the Members Directory and Group Members List.

    I don’t see any reason why they stopped appearing.

    I did heavily modify my BP Single Profile display (with CSS). When I inspect the page I don’t see any code structure for the badges, as if the plugin is not adding them in correctly.

    Please help – they once used to appear.

    Site with examples:

    User Profile (do not appear): https://seac.online/member-directory/paschkewitz/
    Member Directory (appear): https://seac.online/member-directory/
    Group Members List (appear): https://seac.online/groups/student-group/members/

    Thank you,

  • Participant
    Level: Initiated
    Posts: 5
    Tim Paschkewitz on #45224

    Ah, nevermind. I updated Firefox and tried again and it worked. Thank you – you can close ticket.