The MU forums have moved to WordPress.org

Login form on home page (47 posts)

  1. mobiletechguy
    Member
    Posted 15 years ago #

    mixle,

    The FancyLogin link is no longer available. Any way I can download the script?

    MTG

  2. mixle
    Blocked
    Posted 15 years ago #

    mobiletechguy. the fancy login link is still available at
    http://wpmudevorg.wordpress.com/project/login-form-on-my-home-page.
    also you can see it in action on my site.

  3. danalog
    Member
    Posted 15 years ago #

    That link is not correct.

  4. lunabyte
    Member
    Posted 15 years ago #

    I still don't see what's so hard about this. It's a simple form that posts the data to wp-login.php.

    Heck, you can copy and past the login form, and wrap it in an is_user_logged_in() check, and be done.

    I can't even see how a plugin should even be needed for such a basic thing.

  5. verbal36
    Member
    Posted 15 years ago #

    On the site I'm currently working on I use a nice little plugin called login anywhere

    I put the call ** login_here(); ** for it where I want it... an voila. I hacked on it a bit to add a couple extra things to it and created some css to fancy it up..but I found it to pretty easy and straight forward.

  6. mixle
    Blocked
    Posted 15 years ago #

    The log-in form on home page is at http://wpmudevorg.wordpress.com/ go to downloads then other and you will see it there.or go to
    http://myblog.uk2uonline.info/ and you will also find it there.

  7. MaryJane
    Member
    Posted 15 years ago #

    The link to the fancy login script is dead and its not listed on the wpmudev.org site. Anyone know where else to download this at? On uk2uonline she/he just links to the wpmudev page and has no direct download.

  8. ekusteve
    Member
    Posted 15 years ago #

    The login anywhere plugin linked in a post above by verbal36, seems to work on Mu. Just download the plugin and drop it in your mu plugins folder, then place the call where you want it in your theme.

    I have two login forms on my test site at the link below. The first one, I just copied the login form and included it in my sidebar. It works, but the login fields are still there when you login.

    The second login form on the sidebar is from the plugin...the nice thing about it is when I login, then form goes away and I get a link to "Admin" and "Logout". I'm sure I could code that into the first one, but no need...just drop in this plugin, include the call in your theme, and you're done.

    http://stevehyndman.com/

    Steve

  9. ehab
    Member
    Posted 14 years ago #

    domainplus - your snippet doesn't work. The cookies doesn't get passed or something so I get error returned - Your browsed does not allow cookies, etc, etc.

  10. iamsgf
    Member
    Posted 14 years ago #

    I know this is an old thread, but it seems that this is such a common issue that alot of people are asking for but there is no defined solution for it yet. I am trying to get a login form for my home page http://megablogs.net it you can help please let me know.

  11. lunabyte
    Member
    Posted 14 years ago #

    It's a form, it posts data to wp-login.php. Nothing too difficult to accomplish.

  12. MrBrian
    Member
    Posted 14 years ago #

    <form name="loginform" id="loginform" action="http://<?php echo $current_site->
    domain . $current_site->path ?>wp-login.php" method="post">
    <input type="text" name="log" id="log" value="" size="20" tabindex="1" style=" font-size:11px; border:1px solid #a9cbed;">
    <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" style=" font-size:11px; border:1px solid #a9cbed;">
    </form>

  13. bschwarting
    Member
    Posted 14 years ago #

    thanks MrBrian, I had this going on my last theme and didn't save it. this will be a good start.

  14. iamsgf
    Member
    Posted 14 years ago #

    this is what I used in the end looks ok

  15. <h3>Login Form</h3>
    <form action="/wp-login.php" method="post" name="loginform">
    <tr>
    <td valign="middle">Username
    <input type="text" name="log" size="13" value=""></td>
    <td valign="middle">Password
    <input type="password" class="tbl_blue" name="pwd" size="13"></td>
    <td valign="middle" style="padding-top:15px;"><input type="submit" name="login_submit" value="Login" border="0" id="medSubmitButton" style="background-color:#e0e0e0;border:1px solid #e0e0e0;padding:1px;" /></td>
    </tr>
    <p style="text-align: center;">Forgotten Passord? Click Here
    Not Registered Yet? Register Now!</p>
    </form>
  • Sprout17
    Member
    Posted 14 years ago #

    This is the code I use, although I can't fully remember where I got it...some was taken from here, but I also had to do a little reworking:

    <?php global $user_ID, $user_identity, $user_level ?>
    <?php if ( $user_ID ) : ?>
    
    <h2>My Account</h2>
    
    <ul>
    <li>Welcome <strong><?php echo $user_identity ?></strong>.
    <ul>
    <li><a>/<?php echo $user_identity ?>">My Blog</a></li>
    <li><a>/wp-admin/">Dashboard</a></li>
    <?php if ( $user_level >= 1 ) : ?>
    <li class="myaccount"><a>/wp-admin/post-new.php">Write a Post</a></ul>
    </li>
    <?php endif // $user_level >= 1 ?>
    
    <li><a>/wp-admin/profile.php">Profile Options</a></li>
    <li><a>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Log Out</a></li>
    </ul>
    		<?php elseif ( ! is_user_logged_in() ) : ?>
    
    <li>
    <h2>Register</h2>
    <form name="signupform" id="signup" action="<?php bloginfo('url') ?>/wp-signup.php">
    <input type="image" name="submit" src="/images/startablog.gif" width="100" height="23" value="register" tabindex="100" />
    
    </form>
    
    Already have a blog?
    
    <form name="loginform" id="loginform" action="<?php bloginfo('url') ?>/wp-login.php" method="post">
    
    <label><input type="text" name="log" id="user_login" class="input" value="" size="11" tabindex="10" /> Username</label>
    
    <label><input type="password" name="pwd" id="user_pass" class="input" value="" size="11" tabindex="20" /> Password</label>
    
    <input type="image"  src="/images/signin.gif" width="80" height="23" name="wp-submit" id="wp-submit" value="Sign In" tabindex="30" />
    
    <!--Safe info <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /></label>-->
    
    		<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
    
    		</form>
    
    <?php endif // (is_user_logged_in()) ?></li>

    Again, I can't remember where I pieced this together, I think some is from what amanzi posted, and some is FancyLogin.

    The only issue I have with it is when the user is logged in and the My Account section replaces the login form, the link for "My Blog" only works if the user doesn't change their user_identity.

    In other words, when I created a blog, my user name is sprout, and I made the url to my blog http://www.website.com/sprout. So if I am logged in and on http://www.website.com or http://www.website.com/member2, clicking "My Blog" will take me back to my page.

    However, if I change my profile so that my display name is fname lname, the My Blog link tries to link to http://www.website.com/fnamelname when you click.

    I tried changing the code to call for the blog_id instead of the user_identity, but then if I was logged in as sprout but on http://www.website.com/member2, it calls member2 when clicked.

    Anyone have any thoughts on how to resolve this?

  • meisamb
    Member
    Posted 14 years ago #

    i couldn't find Fancylogin !

  • au8ust
    Member
    Posted 14 years ago #

    Hmm... I'll the latest one to see if it's still working with WPMU 2.6

  • 1 2

    About this Topic