WordPress.org

Ready to get started?Download WordPress

Forums

Stop new users going to their own dashboard? (9 posts)

  1. luke.younge
    Member
    Posted 5 years ago #

    Hi

    How can I stop new users from going directly to their dashboard? I think this is just going to confuse my users... I've found a redirect plugin - but that's too harsh, it means they're forced back somewhere, and, crucially it doesn't get rid of the 'dashboard' link under the login widget in the sidebar

    Thanks

  2. Gixxer
    Member
    Posted 5 years ago #

    Edit the login widget and remove the link to the dashboard.

  3. MichaelH
    Member
    Posted 5 years ago #

  4. luke.younge
    Member
    Posted 5 years ago #

    Gixxer - good suggestion, But I don't know which file the login which it is... wp-login.php?

    Michael thanks that is what I found but I don't want people to be forced to go somewhere which is basically what this login redirect plug-in does.

  5. luke.younge
    Member
    Posted 5 years ago #

    24hr bump

  6. mores
    Member
    Posted 5 years ago #

    Vergiss das bearbeiten von Core-files ... öffne die sidebar.php Deines Themes und bau das Login selber.

    <form name="loginform" id="loginform" action="<?php bloginfo('url'); ?>/wp-login.php" method="post">
    <table border="0">
    <tr><td>Benutzername:</td><td>Passwort:</td></tr>
    <tr>
    	<td><input type="text" class="rounded" name="log" id="user_login" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" style="width:130px;"></td>
    	<td><input type="password" class="rounded" name="pwd" id="user_pass" style="width:130px;"></td>
    </tr>
    <tr>
    	<td><input name="rememberme" type="checkbox" id="rememberme" value="forever"/> angemeldet bleiben?</td>
    	<td align="right"><input type="submit" value="Login" class="button" name="wp-submit" id="wp-submit"></td>
    </tr>
    </table>
    <input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
    <input type="hidden" name="testcookie" value="1" />
    </form>

    Der Trick hier ist der "redirect_to" Befehl ... nach dem Login wird der User gleich zur Seite "zurückgeschickt", auf der er sich angemeldet hat. Nahtlos, sozusagen.

  7. luke.younge
    Member
    Posted 5 years ago #

    Wow! thanks. The german got me a bit , and my german friend had a laugh at me trying to pronounce it to him over the phone, but it makes sense, thanks.

  8. luke.younge
    Member
    Posted 5 years ago #

    For anyone who doen't have a german friend on hand, the translation of mores' post:
    ------------------------------------------
    Forget about working on core files. Open the sidebar.php file of your theme and develop the login yourself.

    The trick here is, the "redirect to" command ... after the login, the
    user is sent back immediately to the page where he logged-in. Seamless
    so to say.

  9. luke.younge
    Member
    Posted 5 years ago #

    Next trick - how do I get rid of the 'dashboard' option in the sidebar?

Topic Closed

This topic has been closed to new replies.

About this Topic