• Resolved rlpublishing

    (@rlpublishing)


    Hi – it seems that if I have a page with the registration form on it, when the user completes it, all they see is the brief message about registration and then they are just returned to the same page … which is rather confusing for them !

    It makes me wonder whether I have this set up properly, but after checking, I think that it is.

    So the question: is it possible to make the free version take you to another page (say a page with the login form) once a new user has successfully registered ?

    Thanks,

    R.

    http://wordpress.org/plugins/profile-builder/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor barinagabriel

    (@barinagabriel)

    Hello,

    here is the code you need to enter in the currently active theme’s functions.php: http://pastebin.com/F9MYazfj

    If you need anything else, you can use this snippet as example.

    Regards,
    Gabriel

    Thread Starter rlpublishing

    (@rlpublishing)

    Hi Gabriel, thanks for responding so quickly.

    I have copied and pasted your code to the bottom of functions.php (vanilla Twenty Twelve theme) but if doesn’t seem to have any effect 🙁

    Is this correct ? Should I be doing anything else ?

    Thanks,

    R

    Plugin Contributor barinagabriel

    (@barinagabriel)

    Hello,

    it can also be that you need another filter. The simplest way to check if it is the correct filter in the correct theme:

    add the following to your theme’s functions.php
    echo ‘this one’;

    If it appears the theme is ok; now to check if the above filter is the one
    add the following in the snippet I gave you:

    function custom_register_redirect( $oldMessage, $oldLink ){
    echo ‘correct filter!’;
    ….
    }

    See if the text is displayed or not. If yes, do variable echoes and see what gets returned. If nothing is displayed, you might need another filter:
    function custom_register_redirect ( $oldMessage, $oldLink ){
    // old code goes here
    }
    add_filter ( ‘wppb_register_redirect_after_creation2’, ‘custom_register_redirect’);

    Hope this helps!
    Gabriel

    PS: if you can understand PHP code, you can test out your own code with different filters from this file: plugins\profile-builder\front-end\wppb.register.php

    PPS: this confusion is due to the fact that these filters all handle different registration messages (for instance different messsages/actions for single-site installations, and different for WPMU and so on).
    Basically, this is the best I can do remotely.

    Thread Starter rlpublishing

    (@rlpublishing)

    Thanks again Gabriel – I did as you suggested and this is what happened.

    1. ‘this one’ appears at the top of the screen.
    2. ‘correct filter’ does not show up.
    3. Added the second filter: success !
    4. Just to check, I removed the first one and it still worked.

    So many thanks.

    It’s a shame that this is a hack to the theme itself: I guess that if you update the theme or change to a new one, you have to re-apply this.

    (It would be nice to have this function built in to the basic plugin: no fancy redirects, juts this one, after registration.)

    Anyway, thanks very much for your help 🙂

    R.

    Plugin Contributor barinagabriel

    (@barinagabriel)

    Hello,

    there is another solution we suggest, on our site; please read the following topic: http://www.cozmoslabs.com/wordpress-profile-builder/faq/#10

    You can add the code there, as you suggested, making the theme also update-proof

    Thread Starter rlpublishing

    (@rlpublishing)

    Hi – yes, after I wrote my last update, I wondered if the code could be placed in a little plugin, so this is perfect. I tried it and it works. Wonderful – thanks 😉

    R.

    Mette

    (@sorenpkvist)

    I have same problem, but as I am new to WordPress and does not know the syntax of PHP, I would be happy for some more step-by-step guidance.

    I have already downloaded and activated the “profile-builder-customizations” plugin.

    I have also found the above code found here: http://pastebin.com/F9MYazfj

    But what do I do then?

    Plugin Contributor barinagabriel

    (@barinagabriel)

    Mette,

    sorry for the late reply.

    You add the code you want in the customizations plugin by either using the WP plugin editor, or by using one of yourself (notepad, notepad++ etc).

    After you added the code, upload the plugin (if you made changes to it on your own PC), and activate it like you would any other plugin.

    Keep your eyes open for any warnings or errors you might get because of syntax error.

    Let me know if you need more info!

    Regards,
    Gabriel

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirect after registration (Profile Builder Free v1.1.57)’ is closed to new replies.