The MU forums have moved to WordPress.org

wp_register alternative? (6 posts)

  1. zimen
    Member
    Posted 11 years ago #

    Installed widgets and activated the meta menu. I get login/logout working and admin menu, but the <?php wp_register(); ?> does not show the signup link to not registered users.

    Any fix around this?

    thank you

    Simon

  2. andrea_r
    Moderator
    Posted 11 years ago #

    The wp_register hook is for blog readers to sign up as users to a particular blog. It's also present in the standard WP.

    You have to put in a manual link to the signup page.

  3. zimen
    Member
    Posted 11 years ago #

    Ok i put a manual link with a condition to show ONLY if not registered:

    <?php global $user_level ;
    get_currentuserinfo();
    if ('' == $user_level) {
    echo 'link-to-signup-php-here';
    }
    ?>

    Hope someone finds it useful :)

  4. ladynada
    Member
    Posted 10 years ago #

    thank you
    nada

  5. GrizzlyGroundswell
    Member
    Posted 9 years ago #

    Hey This is perfect but where do I place the code Zimen to have it show up on all my blogs in my WPMU install?

  6. blarocque
    Member
    Posted 9 years ago #

    Just thought I would answer the last question and add to Zimen's previous solution !! Add the following code to the sidebar.php (or alternate sidebar file) in your theme folder.

    ~~~~~

    <?php global $user_level;get_currentuserinfo();
    if ('' == $user_level) {
    ?><li>
    <a href="wp-login.php?action=register">
    Register</a></li><?php } ?>

    ~~~~~

About this Topic