Adding a username and password authentication widget to SIGN IN area…

Theme support is offered to verified customers by forum only. Support requests and solutions made by email, Skype, Envato or any other method will be redirected back to the forum.

This topic is: not resolved
  • In Progress
    Posted in: Social Reach  
  • Member
    alexander_lau
    May 20, 2014 at 8:49 am #31404

    Hello,

    How do I add the following, to the pop-up widget:
    <!–?php if (!(current_user_can(‘level_0’))){ ?–>
    <h2>Login</h2>

    <form action=”&lt;?php echo get_option(‘home’); ?&gt;/wp-login.php” method=”post”><input name=”log” size=”20″ type=”text” value=”&lt;?php echo wp_specialchars(stripslashes($user_login), 1) ?&gt;” /> <input name=”pwd” size=”20″ type=”password” /> <input class=”button” name=”submit” type=”submit” value=”Send” />
    <p><input checked=”checked” name=”rememberme” type=”checkbox” value=”forever” /> Remember me <input name=”redirect_to” type=”hidden” value=”&lt;?php echo $_SERVER; ?&gt;” /></p>
    </form>

    <p><a href=”&lt;?php echo get_option(‘home’); ?&gt;/wp-login.php?action=lostpassword”>Recover password</a> <!–?php } else { ?–></p>

    <h2>Logout</h2>

    <p><a href=”&lt;?php echo wp_logout_url(urlencode($_SERVER)); ?&gt;”>logout</a><br />
    <a href=”http://XXX/wp-admin/”>admin</a&gt; <!–?php }?–></p>

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.