different forms

How do I display a different registration form for free members compared to premium paid members?

  • aecnu
    • WP Unicorn

    Greetings bxdavi2,

    To the best of my knowledge there is no way for this to be done without some serious custom coding.

    However, I do not know everything and therefore I will see about getting the lead developer in here for his advice or to confirm my suspicions above.

    Though this may take longer then a normal ticket, I will try to get him in here asap.

    Thank you for being a WPMU Dev Member!

    Cheers, Joe

  • digitsoft
    • The Crimson Coder

    You can try this...

    1. Edit /wp-content/plugins/membership/membershipincludes/includes/registration.form.php
    2. Add this on line 9 (gets the memb level number): $sub = $_REQUEST['subscription'];
    3. Add this before anything you want for a particular level:
    <?php if ($sub==1){?>
    4. Add this after anything you want for a particular level:
    <?php }?>

    Here's what it would look like adding something after the password field:

    <div class="form-element">
    				<label class="control-label" for="user_email"><?php _e('Confirm Password','membership'); ?></label>
    				<div class="element">
    					<input type="password" class="input-xlarge" id="password2" name="password2" placeholder="" autocomplete="off">
    				</div>
    
    				<p class="help-block"><?php _e('Hint: The password should be at least 5 characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).','membership'); ?></p>
    			</div>
    
    <?php if ($sub==1){?>
    			<div class="form-element">
    				<label class="control-label" for="my_test"><?php _e('My Test','membership'); ?></label>
    				<div class="element">
    					<input type="text" class="input-xlarge" id="my_test" name="my_test" placeholder="" value="<?php echo esc_attr($_POST['my_test']); ?>">
    				</div>
    			</div>
    <?php }?>

    This works fine for aesthetic things (like text, images, etc..,), but if you want to store custom fields it requires more code. If this is what you want, just ask.

  • Barry
    • DEV MAN’s Mascot

    How do I display a different registration form for free members compared to premium paid members?

    Hi, I assume you mean after they have clicked on a subscription button, and before they are actually members (as members wouldn't see the registration form as they've already registered).

    It is do-able, but would require some custom coding - so it depends on how confident you are about putting together a bit of code in a plugin?

  • bxdavi2
    • Design Lord, Child of Thor

    The difference is when a free member signs up all we really want is

    First Name
    Last Name
    Country
    Age

    These along with the basic user id and password and email.

    For the premium area we want more info for their profile

    address
    city
    state or province
    postal code
    country
    phone number
    style
    rank
    age
    time in training
    bio

    We created in buddypress profile fields two tabs

    base and premium member profile. So basically we want the premium member profile fields to show up when someone signs up and pays to be a premium member. If you want to see the website it is here

    http://www.wcoaa.org/wordpress

  • digitsoft
    • The Crimson Coder

    Register page text:
    1. On the page you have set for the registration form you can edit it and add text like this and the shortcode:
    My reg page text...
    [subscriptionform]

    2. If you want to change the text on the form, then edit this file:
    /wp-content/plugins/membership/membershipincludes/includes/subscription.form.php

    As for your other requests...that would require custom coding as Barry mentioned.
    I'd post a job here: https://premium.wpmudev.org/wpmu-jobs/

    Hope this helps...

    Rob

  • aecnu
    • WP Unicorn

    Greetings bxdavi2,

    The lead developer has already come in here and commented:
    https://premium.wpmudev.org/forums/topic/different-forms#post-217825

    In which he pointed out that this will require a significant amount of custom coding and Rob pointed out that you may be able to retain a custom coder at:
    https://premium.wpmudev.org/wpmu-jobs/

    Reference: https://premium.wpmudev.org/forums/topic/different-forms#post-218312

    I have replied to this ticket to prevent you from waiting for something that is not to come or has already been here as you mentioned in your last post that you are waiting for. i.e. The lead developer has already been here and comment which is Barry.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.