If you want to add the loginbox to the frontpage, add this to the sidebar:
<?php if (!(current_user_can('level_0'))){ ?>
<h2>Login</h2>
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" />
<input type="password" name="pwd" id="pwd" size="20" />
<input type="submit" name="submit" value="Send" class="button" />
<p>
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
</p>
</form>
<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a>
<?php } else { ?>
<h2>Logout</h2>
<a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>">logout</a><br />
<a href="http://XXX/wp-admin/">admin</a>
<?php }?>
skysnow
Member
Posted 2 years ago #
ehersman
Member
Posted 2 years ago #
Very nice, thanks for adding this here. Works like a charm.
steffenster
Member
Posted 2 years ago #
João Leitão
Member
Posted 2 years ago #
PapyRef
Member
Posted 2 years ago #
The SimpleLogin plugin also works really well.
Is there a login/logout/forgot password/register * AJAX * wordpress plugin compatible with P2?
Using
style="width: 150px"
instead of
size="20"
makes the login form even prettier, as both textboxes get the same width.
jus.systems
Member
Posted 2 years ago #
Nice... thanks.
You might change this line:
admin
to this:
/wp-admin/">admin
dlopeman
Member
Posted 2 years ago #
I'm using iredlof-ajax-login-plugin successfully... although I will probably re-do it eventually... I've already taken a lot out of it... I just wanted the slide down thingie with the login stuff on it... plus I had to fix a tabindex problem with it... because i also use the register-plus plugin.
Easy enough to search in the plugin page on WP... or google.
juandrah
Member
Posted 2 years ago #
@dlopeman :
I'm using iredlof-ajax-login-plugin successfully too but cannot get either Register-Plus or Pie-Register to work with it. I get an error that there is a conflict with another plugin and the error goes away when I deactivate iredlof. there appears to be a conflict there. Please, how did you resolve it?
Thanks.