BuddyDev

Search

Failed Download – Network Error

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

    Hello,

    I just purchased another year of BuddyPress User Badges (order #43229).

    I already have version 1.2.0 installed, but badges no longer appear on single member profile and they once used to. They appear in members loop and Group members list, just not on the single profile.

    I am hoping version 1.2.4 fixes this.

    I have purchase it, but when I click the download link, I get a “Failed – Network error” message. This is true on several different computers, networks, and browsers.

    Please help me get the plugin.

    Thank you!
    Tim

  • 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.

    TIm

  • 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,
    Tim

  • Keymaster
    (BuddyDev Team)
    Posts: 21310
    Brajesh Singh on #45226

    Hi Tim,
    Thank you for renewing.

    I am glad the download worked.

    I see that your custom header is customized.

    There are 2 possible reasons for the issue:-

    1. Either the hook ‘bp_member_header_meta’. e.g do_action( ‘bp_member_header_meta’ ) is missing from your header file

    2. Or the code that is adding the extra xprofile data is using output buffering and discarding the other data.

    Can you please check and let me know.

    Regards
    Brajesh

  • 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:

    		<?php
    		/***
    		 * 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!
    Tim

  • Keymaster
    (BuddyDev Team)
    Posts: 21310
    Brajesh Singh on #45358

    Hi Tim,
    I had a look at your site.

    You are using bp-nouveau template pack not the bp-default theme.

    Please look into your currently active theme(wp-content/themes) and check for ‘buddypress’ directory in your theme.

    My assumption(from the view of the site) is that there is customizations in user profile header in your theme.

    Can you please look inside your currently active theme?

    Thank you
    Brajesh

  • 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

    
    <?php
    /**
     * 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' ); ?>
    
    	</a>
    </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; ?>
    
    	<?php
    	bp_member_type_list(
    		bp_displayed_user_id(),
    		array(
    			'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!
    Tim

  • Keymaster
    (BuddyDev Team)
    Posts: 21310
    Brajesh Singh on #45389

    Hi Tim,
    Thank you for sharing the details.

    The file you are referring to is a core BuddyPress Noveau template file.

    This is not the issue.

    Is there any way that I can look into your WordPress theme? My assumption is that the WordPress theme you are using has a customized version of profile header and that is causing the issue.

    Regards
    Brajesh

  • 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>
    
    <?php 
    endif;
    
    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?

    Thanks!
    Tim

  • Keymaster
    (BuddyDev Team)
    Posts: 21310
    Brajesh Singh on #45432

    Hi Tim,
    Thank you for the reply.

    I am sorry, I am not sure of the issue.

    Here is a fix that should show the badges above your social media

    
    add_action( 'bp_before_member_header_meta', function () {
    
    	if ( ! function_exists( 'bp_user_badges_get_user_badges_html' ) ) {
    		return;
    	}
    
    	echo bp_user_badges_get_user_badges_html( bp_displayed_user_id() );
    }, 0 );
    
    

    Can you please add this to your functions.php and let me know.

    PS:- Is there any chance that you have the badges disabled on profile. Before using this code, Please visit Dashboard->settings->Badge Settings and make sure that the “User Profile” is enabled.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved