Viewing 10 replies - 1 through 10 (of 10 total)
  • Nice, thanks for sharing. ?? I’m sure it works just as close as this one does though right? =P

    spencerp

    Thread Starter davey579

    (@davey579)

    Don’t know, i tried that one, but it didn’t work for me. So i made one by myself ??

    Oh ok. Well.. thanks for sharing this though. ?? I’ll bookmark it for future reference purposes. ??

    spencerp

    Why this doesn’t work on WordPress 2.1

    Everytime click login the page go to wp-login.php but after that nothing happen, the page doesn’t back to where I coming form.

    What should I do?

    It just needs a dynamic dashboard/site selector, that lets one to switch from blog to admin dashboard and back. With that feature (and OpenID support) added, it would be perfect.

    Try this one if you don’t mind and let me have comments please.

    Thread Starter davey579

    (@davey579)

    It seems that the logged-in-as function didn’t work for everybody so I made a new version with a working logged-in-as function. (Thanks to Otto42)

    Still available here: https://www.dakzoekje.nl/download/Loginform.zip

    Install:
    Upload loginform.php to your theme map.
    Copy and paste the code in LoginformCode.txt anywhere on your page.

    Demo not available (yet).

    thanks for this nice hack.

    it didn’t quite work for me, because i experienced the same problems as jauhari. but i fixed it by replacing the following code:

    loginform.php, line 22:
    <?php echo wp_specialchars($redirect_to); ?>

    replace with:
    <?php echo $_SERVER['REQUEST_URI']; ?>

    LoginformCode, line 7:
    '/wp-login.php?action=logout">Logout</a>'

    replace with:
    '/wp-login.php?&action=logout&redirect_to=' . $_SERVER['REQUEST_URI'] . '">Logout</a>'

    now everything works fine for me. i’m using wordpress 2.2.3.

    regards
    renet

    another thing is… if you’re using the permalinks this way: https://www.yoursite.com/2007/09/16/sample-post/

    you also should replace loginform.php, line 7:
    action="wp-login.php"

    with this:
    action="<?php echo bloginfo('wpurl').'/wp-login.php'; ?>"

    works only with wordpress 1.5 and above

    Thread Starter davey579

    (@davey579)

    Ah, thanks! I uploaded a version with your changes:

    https://www.dakzoekje.nl/download/Loginform.zip

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Made a loginform’ is closed to new replies.