The MU forums have moved to WordPress.org

Tag wp_register() (17 posts)

  1. Nekusagi
    Member
    Posted 17 years ago #

    Doesn't show the REGISTER link only the Admin Site.

  2. Nekusagi
    Member
    Posted 17 years ago #

    hello? anyone?

  3. donncha
    Key Master
    Posted 17 years ago #

    I haven't a clue what you mean, I presume everyone else is in the same boat. Can you explain again?
    wp_register.php doesn't exist, in case that's what you want to know!

  4. Nekusagi
    Member
    Posted 17 years ago #

    codex.wordpress.org/Template_Tags/wp_register

    Template tag

    show REGISTER or ADMIN SITE link

  5. donncha
    Key Master
    Posted 17 years ago #

    Guess what? you're probably logged in...

  6. Nekusagi
    Member
    Posted 17 years ago #

    this is the most ridiculous joke ever...
    I tried in 2 browsers, in the one that Im not logged it don't appear.

  7. Nekusagi
    Member
    Posted 17 years ago #

    anyone can help?

  8. donncha
    Key Master
    Posted 17 years ago #

    Can you delete the cookies in your browser for your site?

  9. Nekusagi
    Member
    Posted 17 years ago #

    Donncha, Im logged in the blog in the FireFox, Im testing the not logged in Internet Explorer.
    In Internet Explorer the link that should appear from the tag just don't show up.

  10. donncha
    Key Master
    Posted 17 years ago #

    Are you using a proxy server that may have cached the logged in page somehow?

  11. Nekusagi
    Member
    Posted 17 years ago #

    nope... let's do this, check my site: http://www.clanlogs.net

    should appear 2 REGISTER lines. One I put the link myself, the other is made by the sistem.

  12. donncha
    Key Master
    Posted 17 years ago #

    I got this error: "There is no website configured at this address."
    Are you testing this locally?

  13. KKWangen
    Member
    Posted 17 years ago #

    wp_register only shows up when logged out if you have checked the option "Anyone can register" in Option -> General: Memberships - which isn't an option in any MU blogs.

  14. Nekusagi
    Member
    Posted 17 years ago #

    mmmm.... I see...

    Donncha: seem that my host messed up something while fixing the httpd.conf stuff lol

  15. Nekusagi
    Member
    Posted 17 years ago #

    there's a way to change it?

  16. donncha
    Key Master
    Posted 17 years ago #

    I see two links now - Entrar and Register. Is that correct?

  17. Nekusagi
    Member
    Posted 17 years ago #

    yes, ENTRAR is for LOGIN, REGISTER is the hand-made to register.
    Now, if you create an account and log in you'll see SAIR (Sign Out), AdministraĆ§Ć£o (the real register) and REGISTER.

    function wp_register( $before = '<li>', $after = '</li>' ) {
    if ( ! is_user_logged_in() ) {
    if ( get_settings('users_can_register') )
    $link = $before . '<a href="' . get_settings('siteurl') . '/wp-register.php">' . __('Register') . '</a>' . $after;
    else
    $link = '';
    } else {
    $link = $before . '<a href="' . get_settings('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;
    }
    echo apply_filters('register', $link);
    }

    and by default 'users_can_register' is 0. There's a "can override" in the table, but I can't find what it means. File 'general-template.php'.

About this Topic

  • Started 17 years ago by Nekusagi
  • Latest reply from Nekusagi