WordPress.org

Ready to get started?Download WordPress

Forums

Register Plus Redux
Embeding registration form in site page. E.g. via shortcode. (7 posts)

  1. Vrefr
    Member
    Posted 3 years ago #

    Hi there,

    is it possible to embed the registration form to one of the pages via shortcode or smth?
    I would like users not to leave the site interface in order to be registered. Its like teh left side of the page will say "Please log in" and login form, and the right side of the page says "Or register" and registration form.

    What I did I just copied the result of html that your plugin makes and pasted in my page. It actually works, but does not pass the additional radio field to the new user profile.

    What's interesting, it does it from my html file on my laptop - calling as action "http://mysite.com/wp-login.php?action=register"

    So I believe this is not the safest and accurate way of doing this.

    Could you please help me to decide the issue in more professional way?

  2. moshoodo123
    Member
    Posted 3 years ago #

    hi, have done that on my site, what i used is just a plugin called page links to. thats all. if you need help futher please let me know.

    here is my site. http://www.cityflavourmagazine.com

  3. Prince Abiola Ogundipe
    Member
    Posted 3 years ago #

    this can be done with page links to plugin, its very simple, you will just copy the url of the register radux and add it add the ulr space in page links to. thats all. but you will have to create a new page and name it Register/ Login. let me know if its not clear

  4. Vrefr
    Member
    Posted 3 years ago #

    Hi naijaping.
    didn't quite understand "add the ulr space in page links to"... where should I add the plugin URL? And what plugin URL do you mean? Smth like:
    wp-content/plugins/register-plus-redux/register-plus-redux.php ?? or?

    2 moshoodo123: Actually I don't need to redirect... there will b eno link to original registration page, as I will have it inside of other page.

  5. Vrefr
    Member
    Posted 3 years ago #

    naijaping?

  6. mcWade
    Member
    Posted 2 years ago #

    Hi Vrefr. Did you figure this out by chance, I am wanting to do the same thing? Place the registration form on a specific page with out redirecting to the wp-login.phplogin.php?action=register page.

    Thanks,
    Wade

  7. chavo
    Member
    Posted 2 years ago #

    Hi to everyone. First at all, sorry for my english. Well...I was looking for this (inserting a login / registration form into a page) for a while. I found some plugins to do it but no one fills my entire goals. So, what I'm currently doing is inserting the form coding it manually. Yes...manually!

    The basic steps I follow are next:

    1) Go to login / registration url.
    2) Look at source code and copy it (only form part).
    3) Put this code into a php template file.
    4) Clean the code.
    5) Validate the fields via ajax (jQuery). Currently I'm not able to validate existing emails via ajax but I will explain how to do it in next steps or inserting and password strength meter (I don't know how to do it).
    6) Insert a hidden field with redirect_to value.

    Then, I open wp-login.php page and go to this part:

    } elseif ( email_exists( $user_email ) ) {
    		$errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) );
    	}

    and edited like this

    } elseif ( email_exists( $user_email ) ) {
    		wp_redirect(('LINK_TO_THE_PAGE_WITH_REGISTRATION_FORM/?action=registeredEmail') );
    		$errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ) );
    	}

    Note the variable "registeredEmail". So, I put a conditional php tag that shows the error message into my template file. Something like this:

    <?php if($_GET['action']=="registeredEmail") { ?>
    		<div class="errorForm" id="errorEmail">Email account is already registered. Please, enter another email address</div>
    		<?php } else { ?>
    <div class="errorForm" id="errorEmail"></div>
    		<?php } ?>

    That's all. I know that maybe this is not the best solution or that this process can be perfectioned. It is working for me.

    You can also that a look at this post
    http://wordpress.org/support/topic/alternative-registration-page?replies=4

    I don't tested it yet but It looks good.

    Hope this helps you.

    ps: once again, sorry for my english.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic