Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

'Save and Continue' button on BP profile tabs

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    When user first signs up, I redirect them to profile /group-1 to edit.

    I used code to create the ‘save and continue’

    Works a charm, except for if an impatient user clicks on a tab in advanced (i.e. on tab 2 but selects to go to tab 4), it breaks sequence and redirects user to 404 page.

    If there is a small tweak in this code which can be made, I kindly ask if you may point it out (if it is of benefit to your wider community).

    It does not cause any drastic issue, but is just not necessary to ‘block’ and require a user to refresh page.

    Note: it only occurs for the ‘post register’ sequence and flow. It does not occur at a future point in time when a user returns back to profile to edit.

    function ps_redirect_next_group() {
    	
       	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    	
    	$group_id = bp_get_current_profile_group_id()+1;
    	if ( bp_get_current_profile_group_id()==4 ) {
    			bp_core_redirect(bp_displayed_user_domain()."profile/");
    	}else{
    		bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/$group_id/");
    	}
    	
    }
    add_action( 'xprofile_data_after_save', 'ps_redirect_next_group' );
    
    add_filter( 'gettext', 'ps_change_save_button_text', 20, 3 );
    
    function ps_change_save_button_text( $translated_text, $text, $domain ) {
    
       if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return $translated_text;
    	}
    
        switch ( $translated_text ) {
            case 'Save Changes' :
            	$translated_text = __( 'Save and Continue', $domain );
            break;
        }
        
        return $translated_text;
    }
    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    We’ve created a new account on your website to test the profile edition flow that you’re describing and we’re not experiencing any 404 page when clicking on the various tabs of your form…

    Could please share a commented screenshot describing your issue or maybe a very short screencast? We want to make sure that we understand your issue to help you the best way possible. ?

    Thanks.

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Thanks for testing this.

    Must have been a glitch on my end.

    Safe to conclude thread 🙂

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    You’re welcome alex. ?

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘'Save and Continue' button on BP profile tabs’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site