WordPress.org

Ready to get started?Download WordPress

Forums

Admin Login As Different User
[resolved] Some trouble (8 posts)

  1. alexpike
    Member
    Posted 3 years ago #

    Tried to login - choose the User and clicked the login button, but when i redirect on this page: "www.mysite.com/wp-content/plugins/adminlogindifferentuser/wp-userlogin.php" and got this message:
    Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.

    Any advices?
    Thanks

    http://wordpress.org/extend/plugins/admin-login-as-different-user/

  2. alexpike
    Member
    Posted 3 years ago #

    i found the reason:the name of folder pluging include "-"

  3. emiecs_viphp
    Member
    Plugin Author

    Posted 3 years ago #

    Hello :)

    Just open the file adminlogindifferentuser.php and change this code

    <form method="post" action="<?php bloginfo('wpurl'); ?>/wp-content/plugins/adminlogindifferentuser/wp-userlogin.php">

    to

    <form method="post" action="<?php bloginfo('wpurl'); ?>/wp-content/plugins/admin-login-as-different-user/wp-userlogin.php">

    on line 28 and it should work now.

  4. emiecs_viphp
    Member
    Plugin Author

    Posted 3 years ago #

    Hello :)

    You can now download the latest version of this plugin.

  5. alexpike
    Member
    Posted 3 years ago #

    what is the change?

  6. emiecs_viphp
    Member
    Plugin Author

    Posted 3 years ago #

    Hello :)

    I just fixed everything :) and make sure the functionality will works Everything is okay now.

  7. archon810
    Member
    Posted 3 years ago #

    You should never be hardcoding the plugin directory in your code. Users may choose their own directory names, which will break the plugin.

    See http://codex.wordpress.org/Function_Reference/plugin_basename for the right way to do it.

  8. emiecs_viphp
    Member
    Plugin Author

    Posted 3 years ago #

    Hey :),

    Thanks for the brilliant idea... I just updated the code and its really cool.... it's better to used that one since we can sure this plugin will work wherever this plugin is installed..... thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic