The MU forums have moved to WordPress.org

Hacking Normal Registration Method (4 posts)

  1. vibhash
    Member
    Posted 17 years ago #

    Hie there...

    I have been searching this from from 2 days but didn't got any ans which could help me:(

    I want to hack the normal registration process, and make it only 1 step, rather than normal 2 step process....

    I'm trying to implement registration box in the sidebar, so user gets the option:
    Blog Domain:
    Username:
    Blog Title:
    Email:
    Verification:

    And after that when the user enter the details he gets the greetings on the sidebar only, weather registration successful or Failed.

    I want to implement something like http://bicyclejournals.net/

    But i think they have customized the wp-signup.php, to make only single page...

    I even tried to use the wp-signup.php ported along with WPMU Captcha for registration, but that too has 2 step normal registration:(

    So i will really appriciate if anyone plz tell me the code i need for wp-signup.php , and the other changes i require for getting this done....

    I'm not a PHP coder, just know basics, & how to hack basic stuffs...

    Here is the registration form of bicyclejournals.net

    <form name="setupform" id="setupform" method="post" action="wp-signup.php">
    <input type="hidden" name="stage" value="1">
    <table border="0" width="100%" cellpadding="2">
    <tr>

    <th valign="top" nowrap style="text-align:right;">Blog Domain:</th>
    <td style="text-align:left;">
    <input style="font-size:10px; font-family:Verdana,Arial;" name="blog_id" type="text" id="blog_id" value="" maxlength="50" style="text-align: right; font-size: 10px;" />
    <span style="font-size: 10px">(bicyclejournals.net)</span>
    </td>
    </tr>
    <tr>
    <th valign="top" nowrap style="text-align:right;">Blog Title:</th>

    <td style="text-align:left;"><input style="font-size:10px; font-family:Verdana,Arial;" name="blog_title" type="text" id="blog_title" value="" /></td>
    </tr>
    <tr>
    <th valign="top" nowrap style="text-align:right;">Email Address:</th>
    <td style="text-align:left;"><input style="font-size:10px; font-family:Verdana,Arial;" name="user_email" type="text" id="user_email" value="" maxlength="200" /></td>
    </tr>
    <tr>
    <th valign="top" nowrap style="text-align:right;">Verification:</th>

    <td style="text-align:left;">
    <img src="5digits.php">
    If you don't see 5 digits, refresh this page.
    <input type="text" name="code_check" size="6" maxlength="5" />
    </td>
    </tr>
    <tr>
    <th scope="row" valign="top"> </th>

    <td style="text-align:left;"><input style="font-size:10px; font-family:Verdana,Arial;" id="submit" type="submit" name="Submit" class="submit" value="Sign Up »" /></td>
    </tr>

    Regards.
    vib.

  2. demonicume
    Member
    Posted 17 years ago #

    'non PHP coder but can hack bits together' here: i copied this directly into a WP install that i have sitting on my WPMU install and it worked. one problem, the absence of 5digits.php was a problem, in that the image never showed. other than that it was all good.

    <li id="login">
    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <h2><?php _e('Login'); ?></h2>
    <form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
    <div><label><?php _e('Login') ?>:
    <input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label>
    <label><?php _e('Password') ?>:
    <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label>
    <label><input type="checkbox" name="rememberme" value="forever" tabindex="9" /> <?php _e("Remember me"); ?></label>
    <input type="submit" name="submit" value="<?php _e('Login'); ?> »" tabindex="10" />
    <?php wp_register('', ''); ?>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
    </form>
    <?php
    else:
    ?>
    <h2><?php echo $user_identity; ?></h2>

    <?php
    endif;
    ?>

    i may try (i said try) to combine this with the homeland stupidity hack and make some sort of plugin that does it all and sets up in side bar. if that goes well, i'll try a widget. i really hate the default login page.

  3. vibhash
    Member
    Posted 17 years ago #

    Didn't get how this login form can be used as registration form???
    Well you are using <?php wp_register('', ''); ?> but still this is not a normal registration form!

  4. quakebum2k
    Member
    Posted 16 years ago #

    anyone figured this thing out yet?

About this Topic

  • Started 17 years ago by vibhash
  • Latest reply from quakebum2k