alexpike
Member
Posted 1 year 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/
alexpike
Member
Posted 1 year ago #
i found the reason:the name of folder pluging include "-"
emiecs_viphp
Member
Posted 1 year 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.
emiecs_viphp
Member
Posted 1 year ago #
Hello :)
You can now download the latest version of this plugin.
alexpike
Member
Posted 1 year ago #
emiecs_viphp
Member
Posted 1 year ago #
Hello :)
I just fixed everything :) and make sure the functionality will works Everything is okay now.
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.
emiecs_viphp
Member
Posted 12 months 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 :)