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: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46346
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi,
    Thank you for the details.

    Here is some sample code(you will need to change page id and field id) to redirect user to the term page

    
    
    add_action( 'bp_template_redirect', function () {
    	// no need to do anything if the user is not logged
    	// or the user is super admin.
    	// (probably we would like to restrict access to update terms page in this case)
    	if ( ! is_user_logged_in() || is_super_admin()) {
    		return;
    	}
    
    	$term_page_id  = 32;// please use your page
    	$term_field_id = 2;// please update
    
    	if ( xprofile_get_field_data( $term_field_id, get_current_user_id() ) ) {
    		// already updated, no need to do anything
    		return;
    	}
    
    	// if we are here and it is not terms page, redirect to terms page
    	if ( ! is_page( $term_page_id ) ) {
    		bp_core_redirect( get_permalink( $term_page_id ) );
    	}
    
    } );
    

    The function to get the data is xprofile_get_field_data( $field_id_or_name, $user_id)

    Do you need assistance with creating a form and updating the field data or can you handle that part?

    Please let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46341
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: how to add reach text field in a user profile #46340

    Hi,
    You can use multline text field(Profile field). It allows you to have the rich text area.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46335
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46334

    Hi Nik,
    Thank you.

    Please find the plugin links below(in next private post).

    You will need to update to BuddyBlog Pro 1.3.0 beta before activating the BuddyBlog Groups.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: user signature in forums #46332
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #46331

    Hi Nik,
    We have the plugin ready for beta. I can provide access immediately if needed or you may wait for 1-2 days more.

    1. We have added template support for BuddyBoss but before final release, we will need to test with other themes.

    2. We have yet to complete the setting(In group’s Manage screen) that allows group admins to override the tab availability/visibility. currently, the global preference(set by site admin is applied)

    3. We have to test the workflow emails(emails to group admin on publish etc) as I found some issues and it is not fully functional.

    overall, these are minor things but may take some time. WE have the activity integration/posting/listing etc working and I can provide access to the current version if you want to have a look today.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Richard,
    Welcome to BuddyDev support forums.

    I am not sure how you add the checkbox on the login page as our plugin does not add that.
    Still, our plugin stores the value in the xprofile data. You will need to add a form and then on form submission, you will need to update the field using xprofile_set_field_data($field_id, $user_id, $value ); to set it.

    The purpose of the xprofile terms field to to simply store the preference and does not do anything else.

    I hope it helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: user signature in forums #46325

    Hi Talia,
    Thank you for the question.

    I will suggest approaching BuddyBoss support for this as they are in an advantageous position and can add the support.

    Regards
    Brajesh