WordPress.org

Ready to get started?Download WordPress

Forums

Made a loginform (11 posts)

  1. davey579
    Member
    Posted 7 years ago #

    Hi, i made a loginform for in your sidebar, with a logged-in-as function. You can find a demo here:
    http://www.dakzoekje.nl/
    Username: testuser
    Password: testuser

    Download: http://www.dakzoekje.nl/download/Loginform.zip

    Install:
    Upload loginform.php to your theme map.
    Copy and paste the code in putthisinyoursidebar.txt in your sidebar.php.

  2. spencerp
    Member
    Posted 7 years ago #

    Nice, thanks for sharing. ;) I'm sure it works just as close as this one does though right? =P

    spencerp

  3. davey579
    Member
    Posted 7 years ago #

    Don't know, i tried that one, but it didn't work for me. So i made one by myself :)

  4. spencerp
    Member
    Posted 7 years ago #

    Oh ok. Well.. thanks for sharing this though. ;) I'll bookmark it for future reference purposes. ;)

    spencerp

  5. Jauhari
    Member
    Posted 7 years ago #

    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?

  6. LostInNetwork
    Member
    Posted 7 years ago #

    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.

  7. sfong15
    Member
    Posted 7 years ago #

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

  8. davey579
    Member
    Posted 6 years ago #

    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: http://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).

  9. renet
    Member
    Posted 6 years ago #

    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

  10. renet
    Member
    Posted 6 years ago #

    another thing is... if you're using the permalinks this way: http://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

  11. davey579
    Member
    Posted 6 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.