WordPress.org

Ready to get started?Download WordPress

Forums

could someone tell me how i can change the log in page (24 posts)

  1. MartY3
    Member
    Posted 7 years ago #

    hell everyone, i would like to customise the login and regester page of my worpress 2.0 blog, is this possible to have graphics here instead of the white page??

    and also, how can i divert my members to go directly to the blog after they login, instead of the dashboard, so i would like for my members to login and then goto blog page and not dashboard?

    i hope someone couls help me out with both these issues for me.. thankyou for reading my post

  2. vavroom
    Member
    Posted 7 years ago #

    Edit wp-login.php and wp-register.php.

    In one file you'll have to modify the html twice (basically there's two html pages in one). In the other, thrice.

    You may want to modify the call to css to reflect your theme's css rather than the admin's css.

    As for redirecting, in wp-login.php, around line 170, find:
    if ( !isset( $_REQUEST['redirect_to'] ) )
    $redirect_to = 'wp-admin/';

    Replace wp-admin with your root folder, and you're away laughing.

  3. MartY3
    Member
    Posted 7 years ago #

    ok thankyou., ive done the diverting bit to homepage and not dashboard, thanks for that ;)

    but could you ecplain the changing or login page and registration pages with some graphics a little better for me please, im new at all this lol

    thankyou for your help

  4. vavroom
    Member
    Posted 7 years ago #

    Search the forum. Search the codex. Fiddle. Look at wp-login.php and wp-register.php. Try to see what's going on.

    I'm NOT going to cook it for you, then chew it and pre-digest it...

  5. MartY3
    Member
    Posted 7 years ago #

    ok, so i need to learn the php code first, any tips as to where to start on learning this?

    thanx

  6. vavroom
    Member
    Posted 7 years ago #

    No, in fact, you do not need to learn php. You need to open the file and look for the HTML in it. It really is NOT difficult.

  7. spencerp
    Member
    Posted 7 years ago #

    From what I gather, if you want to change/edit/modify the imagery on the login page itself, you'd find where and what to edit in the wp-admin/wp-admin.css file.. (Example: font colors, image path's, whatever else..)

    I *think* this is the right file to edit.. could be wrong though..

    spencerp

  8. vavroom
    Member
    Posted 7 years ago #

    Hey spencer, yeah, if you just want to mess with the css, that's the file, but if you want to really make the page fit in with the rest of the site, you'll have to modify the html as well, and that's done through wp-register.php and wp-login.php.

    I guess it comes down to how much customisation one wants to do :)

  9. MartY3
    Member
    Posted 7 years ago #

    ok, i will look into it and have a play around lol, of course i back everything up before hand, as my html knowledge is not brilliant, i know the very basics, so i hope its enough ;)

    thankyou once again for your help guys, muchly gratefull :D

  10. MartY3
    Member
    Posted 7 years ago #

    oh i just looked for wp-admin/wp-admin.css and there is not one there, i only have admin.php in this dir ?? any ideals

  11. vavroom
    Member
    Posted 7 years ago #

    There should be 2 folders, and 60 files, including wp-admin.css in the /wp-admin folder in a standard install.

    If you don't have wp-admin.css in that folder, either you didn't see it, or your install isn't complete. If it was missing, you wouldn't be seeing a nice dashboard or login page...

  12. mannydablogger
    Member
    Posted 7 years ago #

    this is great info guys, i'm going to update my page as well.

    But what if you want to have the text box for their username and password to be right on the front page of your blog instead of being redirected to a log in page?

    any tips would be great! here is my site, its still a work in progress :) http://www.liverpuncher.com

  13. moshu
    Member
    Posted 7 years ago #

  14. MartY3
    Member
    Posted 7 years ago #

    thanx guys, i found the file needed and added a small image to the login page :D im going to play around with it somemore to see if i can make more changes, its a great start..

    ive installed easy php so i can test it all on there and not on my webserver incase i completly screw things up (very possible lol)

    also about the login on the main blog page would be awsem, is this possible to have on the side bar? im using connections theme?

  15. mannydablogger
    Member
    Posted 7 years ago #

    hi guys...i pasted the code to create a text box to log in from the side bar, and it works well except for two things:

    try logging on to my site:
    username: test
    pasword: test
    http://www.liverpuncher.com

    1. when you log in for the first time, it does not show the user name, and seems like you are not logged in, only after you navigate to another page does it show the log in name....

    2. How do i get rid of the bullet point "Login" on top of the log in box?

    here is the code i pasted in the side bar, it works great except for the two issues i mentioned...

    <li id="login">
    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <h2><?php _e('Login'); ?></h2>
    <form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
    <div><label><?php _e('Login') ?>:<input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label>
    <label><?php _e('Password') ?>: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label>
    <input type="hidden" name="rememberme" value="forever" />
    <input type="submit" name="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="9" />
    <?php wp_register('', ''); ?>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
    </form>
    <?php
    else:
    ?>
    <h2><?php echo $user_identity; ?></h2>

    <ul>
    <?php wp_register(); ?>

    <li><a>"><?php _e('Logout'); ?></a></li>
    </ul>
    <?php
    endif;
    ?>

  16. MartY3
    Member
    Posted 7 years ago #

    will this code work in my site too ?? i use connections theme??

    thankyou, and could i have permission to use your code if it will work?? thankyou

  17. mannydablogger
    Member
    Posted 7 years ago #

    yeah it works pretty good...have fun with it.

  18. MartY3
    Member
    Posted 7 years ago #

    i cant make it to work :( where do i put it too ? could you post it using the < code > tags, i think some is missing`

  19. moshu
    Member
    Posted 7 years ago #

    To everybody:
    Read carefully the instructions under the text input area for posting code. The "backtick" is usually on top left of your keyboard, where ~ [tilde] is. No need for <code>. Just one ` before and one after the code.
    Do NOT leave blank lines in the code, it will break the display.

  20. MartY3
    Member
    Posted 7 years ago #

    thankyou moshu

    so can you please post the code again mannydablogger using the code shortcuts ???

  21. MartY3
    Member
    Posted 7 years ago #

    like this please mannydablogger

    or if anyone else has code for this ligin on page code, please post it here using the (`) before and after the code (without the brackets of course)
    please i would be thankfull very much

    thankyou

  22. MartY3
    Member
    Posted 7 years ago #

    Please :(

  23. Chris_K
    Member
    Posted 7 years ago #

    Gave it a shot. Hopefully the editor didn't eat any of it before I cleaned it up.

  24. MartY3
    Member
    Posted 7 years ago #

    ahh thankyou handySolo :D i will try it immediatly :D

    thankyou once again

Topic Closed

This topic has been closed to new replies.

About this Topic