This topic has 23 replies, 2 voices, and was last updated 6 years by Radu.

  • Author
  • #186823
     axcelluloid
    Participant

    Greetings,

    when a new member signs up I would love to redirect him/her to a site where it is written something like “thank you for registering -. your registration is pending” or “you have to activate via your email” …

     

    unfortunately I have NO clue how to do so 🙁

    #186912
     Radu
    Moderator

    Hi,

    Found the plugin that prevents that to display that message

    After signup it’s shown like this.

    There was a plugin that causes that named “BuddyPress Registration widget” that breaks that, also i’ve de-activated the peters redirect plugin and i’ve changed the registration page from home to signup page from wp-admin -> settings -> buddypress -> pages

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187446
     axcelluloid
    Participant

    Hello again,

    first of all thank you for your help. I tried to sign up a new member but unfortunately I still got no message that the registration has took place. Is there a way to show this? A popup or a separate page where you can tell the fellow that the registration has to be approved or what the next steps are?

    Thank you very much for your feedback,
    Axl

    #187559
     Radu
    Moderator

    Hi,

    I see,

    Just follow this guide : https://buddydev.com/buddypress/redirect-users-to-welcome-page-after-successful-registration-on-your-buddypress-based-social-network/

    Create a page with your desired welcome message and add it into the snippet.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187598
     axcelluloid
    Participant
    This reply has been set as private.
    #187825
     Radu
    Moderator

    Hi,

    Now it’s first time when you say something about facebook login, in you initial request you asked for a redirect immediately after user signup, maybe i’ve not understand correctly or you had not asked correctly what you need to achieve, so please tell me again in detail what you need to achieve.

    If it’s about redirect after signup then just add this snippet

    The function will have to be added in wp-content/themes/kleo-child/functions.php and also the child theme should be enabled.

    COPY CODE
    
    add_action( 'bp_complete_signup', 'buddydev_redirect_after_signup' );
     
    function buddydev_redirect_after_signup() {
        
        $page = 'welcome';//your page slug
        
        bp_core_redirect( site_url( $page ) );
    }
    

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187835
     axcelluloid
    Participant

    Hi,
    as much as I understand you can signup with facebook or manually – so both ways should work.
    So if you register manually a popup or site should be shown that an email has been sent.

    of course if you sign up on facebook there will be no email to answer. But you need a redirection after signing up if both methods are offered. 🙂

    Cheers,
    A.

    #187836
     axcelluloid
    Participant

    PS.:

    I tried to put the snippet into the functions.php of the child theme via editor:

    Kommunikation mit der Website, um auf fatale Fehler zu prüfen, nicht möglich, daher wurde die PHP-Änderung rückgängig gemacht. Du wirst deine veränderte PHP-Datei mit anderen Mitteln hochladen müssen, wie per SFTP.

    Wordpress tells me something about a fatal error. 🙁

    #187845
     Radu
    Moderator

    Hi,

    Try to copy and paste the code from here : https://pastebin.com/raw/EYrWNs14

    If still get the same error, add it via ftp by editing directly the file wp-content/themes/kleo-child/functions.php

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187872
     axcelluloid
    Participant
    This reply has been set as private.
    #187890
     axcelluloid
    Participant

    It would be great to have a ragistration which works – otherwise the complete site makes no sense :/

    #187961
     Radu
    Moderator

    Hi,

    I see in this case you will have to overwrite the register page

    Go to wp-content/themes/kleo-child/buddypress/members/ create file named register.php in that you will paste this : https://pastebin.com/raw/3aHxsXs0

    In the market area you will have to add your page slug where to be redirected.

    NOTE: Child theme needs to be installed and activated.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187962
     axcelluloid
    Participant

    Ok, and if there is no such path in the child version (screenshots)? Child theme up and runnung but no path can be found – so I make it in the main theme?

    Cheers,
    A

    Attachments:
    You must be logged in to view attached files.
    #187975
     Radu
    Moderator

    Create the missing folders

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #187984
     axcelluloid
    Participant

    does NOT work . . . .

    #188000
     Radu
    Moderator

    Hi,

    Please provide FTP credentials in a private to ca do that for you, but before that install the child theme and activate it

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #188009
     axcelluloid
    Participant
    This reply has been set as private.
    #188032
     Radu
    Moderator

    Hi,

    The solution it’s corrent if i test on mine it works after i register from register page i’m redirected but on you when you sign-up always you are redirected to the homepage not sure why, tried to take again a look to wp-admin and the credentials not woks.

    Maybe there will be needed to do turn off plugins and maybe to change the homepage if it’s needed temporary just to test.

    Let me know

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #188047
     axcelluloid
    Participant

    Hi,
    i am testiing every plugin right now – after deactivating everything the redirection works

    But what happens after loggging out? In my case I still can use everything until I click on the banner

    #188052
     Radu
    Moderator

    Want to redirect in a certain place after logout ?

    If yes the function will have to be added in wp-content/themes/kleo-child/functions.php and also the child theme should be enabled.

    Replace my-page with your page slug

    COPY CODE
    
    
    function SQ7R_logout_redirect(){
      wp_redirect( home_url('/my-page/') );
      exit();
    }
    add_action('wp_logout','SQ7R_logout_redirect');
    

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #188062
     axcelluloid
    Participant

    are you sure? unfortunately the rediection dont work

    #188124
     Radu
    Moderator

    Work for me just i’ve tested

    COPY CODE
    
    add_action( 'wp_logout', 'SQ7R_logout_redirect');
    function SQ7R_logout_redirect(){
        wp_redirect(site_url( '/welcome/' ));
        exit();
    }
    

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #188131
     axcelluloid
    Participant

    Cool – it works now!

    Thank you 🙂

    #188146
     Radu
    Moderator

    You’re welcome

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 24 posts - 1 through 24 (of 24 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?