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: 25273
    Brajesh Singh on in reply to: I want to make sign up process like facebook #4285

    Hi Dhaval,
    Welcome to Buddydev.

    Since I registered on Facebook in 2006-2007, I don’t remember the exact steps. I checked on the FB and see the the first screen is basic form.

    So, My question to you:-

    1. Does that screen come after completion of registration or is it part of registration steps?
    2. is the user logged in when the form is shown?
    3. Do you need help in creating multi step registration or importing etc?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Clear notifications template tag #4284

    Hi Graeme,
    Welcome to Buddydev forums 🙂

    Are you using BuddyPress clear notification plugin? If yes, you can create a function like this and use it anywhere

    
    function buddydev_clear_notification_button() {
    	
    	if ( !  is_user_logged_in() ) {
    		return ;
    		
    	}
    	
    	$user_id = bp_loggedin_user_id();
    	
    	$notifications = bp_notifications_get_notifications_for_user( $user_id );
    	
    	if ( ! $notifications ) {
    		return ;
    	}
    			
    			
    	echo '<a id="clear-notifications" href="'.bp_core_get_user_domain( $user_id ).'?clear-all=true&_wpnonce=' . wp_create_nonce('clear-all-notifications-for-'. $user_id ).'"> [x] Clear All Notifications</a>';
    
    }
    
    

    Here is an example to show how to inject it at the top in the notifications screen(It is not the right way, the notification template does not have a hook, so I suggest using the function in the template directly instead of hooking like below)

    
    
    function buddydev_inject_clear_button() {
    	
    	if( !  bp_is_notifications_component() ) {
    		return ;
    	}
    	
    	 buddydev_clear_notification_button();
    }
    add_action( 'bp_before_member_body', 'buddydev_inject_clear_button' );
    
    

    Hope that helps.
    Please do let me know how it goes?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Dandy,
    Thank yo.
    I am glad it is working.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Display last name in profile pages #4281

    Hi Javier,
    Thank you for the update. Yes, you are right about it. Though it is possible to write a script that does it for the older registrations, It does not seem to be readily available.

    Marking the thread as resolved. Please do post a topic if you need any help in future 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Buddyblog post grid layout #4280
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Tiziano,
    Thank you.

    I am looking forward to your tests. Our team will certainly keep developing it 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Multisite Global terms #4278

    Hi Ro,
    Please give me today. I am thinking about some strategy.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Couple of questions #4277

    Hi Zabrina,
    Can you please tell me what do you mean by sharing media? MediaPress Uses WordPress attachment for storing media. So, everything that applies to attachment, applies to MediaPress.

    2. Yes, It is coming in August.

    Hope that helps.
    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Eric,
    Welcome to BuddyDev forums.

    Please use this and let me know if it works for you or not?

    
    [activity-stream action='activity_update']
    

    Hope that helps.

    Regards
    Brajesh