Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: Buddypress Profile link #40347

    Hi Brovuve,

    Welcome to BuddyDev support forums.

    You can put the following code in your active theme’s(or child theme’s) functions.php

    
    /**
     * Shortcode for generating edit profile link
     */
    add_shortcode( 'bp-edit-profile-link', function ( $atts = array(), $content = '' ) {
    
    	$atts = shortcode_atts( array(
    		'user_id' => get_current_user_id(),
    		'label'   => 'Edit Profile',
    		'class'   => 'edit-profile-link',
    	), $atts );
    
    	if ( empty( $atts['user_id'] ) ) {
    		return '';
    	}
    	$url = get_edit_profile_url( $atts['user_id'] );
    
    	return sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), esc_attr( $atts['class'] ), $atts['label'] );
    
    } );
    

    Now, you can use the shortcode

    
    [bp-edit-profile-link]
    

    You can also pass the edit profile label and css classes using the ‘label’ and ‘class’ attributes.

    If the user is not logged in, It will not sho anything. When the user is logged in, It will show the link to edit profile.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383

    Hi Khalid,
    Thank you for confirming.

    All the best !

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: critical error conditional-profile-fields #40345

    Hi Adrian,
    Thank you for the details.

    The issue is caused by Youzer/Youzify calling the relevant functions early. We have seen similar issue with our other plugin(BP Xprofile Custom Field Types) with them.

    Youzer(now youzify) has done too many things which are non standard and broken compatibility that we do not support any compatibility with it for any of our plugins.

    Also, I doubt that Conditional profile field will even work with it due to the change in markup. I will suggest avoiding conditional profile field in this case.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: Make Custom Profile Tab specific to specific Profile? #40344

    Hi,
    Thank you for the question.

    There are two ways to achieve it.

    1. If you have a shortcode that accepts user id, you can use our tag replacement feature for it.

    You can change

    
    
    [som-shortcode user_id=32] 
    
    

    to

    
    
    [some-shortcode user_id="#displayed_user_id#"]
    
    

    Now, the plugin will replace this token ‘#displayed_user_id#’ with the actual user id of the displayed user before the shortcode is handled.

    2. If you want to put static content specific to each user, You can install an addon plugin to achieve it. Please have a look at the following.
    https://buddydev.com/create-dynamic-user-profile-tabs-for-buddypress/

    Hope it helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: [Resolved] BuddyPress Members Directory #40343

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: Notification is not done by BuddyPress #40326

    Hi,
    Thank you for the question.

    that is not notification. That is a confirmation which is triggered when you perform some kind f destructive action( e.g. delete an activity or similar). BuddyPress uses the browser’s ability to ask you for confirm before processing the actions which might have non-reversible effect.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: Different Hover States for BuddyPress Profile Tabs #40325

    Hi,
    Thank you for the question.

    I do not think BuddyPress will ever have anything like this. it might be implemented by some plugin or themes. I still think that it will be an overkill to allow changing background of each tab/hover state to different colors. It might suits for some of the use cases but most of the time a consistent color scheme will be much more helpful.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: [Resolved] Change default avatar issue #40324

    Hi,
    I hope it worked. marking resolved due to lack of replies.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383
    Brajesh Singh on in reply to: BuddyPress FOLLOW option #40323

    Thank you.

    I am glad it helped 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25383

    Hi Bjorn,
    I am sorry, I am not using WP Fusion, so will need feedback on what changed. Can you please check with them and provide me the details?

    Thank you
    Brajesh