Yiannis Christodoulou
Forum Replies Created
-
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login asTo investigate the issue further, could you please share the Site Health data from your WordPress dashboard? You can find it under Tools > Site Health and use the “Copy site info to clipboard” option to send me the details.
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login asHave you tried to permanently uninstall the plugin and then try to install it again?
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login asIt seems that there is a <?php die(“here”); ?> somewhere in the code.
If you disable the plugin and try to login as a new fake user with the same role, do you see the same “here” message?
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login as@p3john could you send me a screenshot with the place where the “here” is displayed?
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login asHave you set any redirection url in the plugin settings?
Forum: Plugins
In reply to: [Login as User] Page displays “here” after clicking a user to login asHi @p3john,
Thanks for your message.
What is this “here”? Could you, please, provide me a screenshot?
Forum: Plugins
In reply to: [Login as User] 502 Gateway errorHi @stephenr85
Correct! Glad you find the solution.
Also I have the solution here https://docs.web357.com/article/105-502-bad-gateway-messages-after-clicking-the-login-as-a-user-button
Forum: Plugins
In reply to: [Login as User] web375 website has critical errorHi @rmiller3000,
Thanks for letting me know. ??
The issue has been resolved
- This reply was modified 3 weeks, 4 days ago by Marius L. J..
- This reply was modified 3 weeks, 4 days ago by Marius L. J.. Reason: Removed topic creators domain from public posting
Forum: Plugins
In reply to: [Login as User] Editors can log in as adminHi @dylandawg, ??
Thanks for your feedback. This is not the normal behavior, only Admins should be able to login as users.
Do you have the latest version installed, right?
Also, please take a look in the instructions here https://docs.web357.com/article/68-restrict-the-login-as-a-user-functionality-to-certain-user-roles
Thanks ??
Forum: Plugins
In reply to: [Login as User] login_as_user_options undefined in v1.5.4Hi @morepix
Thanks for your feedback. We’re working on this bug.
A new version will be released in a few minutes. Stay tuned!
Forum: Plugins
In reply to: [Login as User] Remove frontend JS and CSS if user is not logged inHi @ss88_uk,
Thanks for your suggestion ??
https://www.web357.com/blog/releases/login-as-user-wordpress-plugin-v1-5-4-released
02-Oct-2024 : v1.5.4 =
* Optimized Asset Loading: Prevent CSS and JavaScript files from being enqueued when no user is logged into the site, improving performance. (Thanks to "ss88_uk" for the suggestion!)
* Update: Removed the includes/plugin-update-checker folder from the free version.
* Fully compatible with WooCommerce v9.3.x.
* Role-Based Login Management: Added functionality to define which user roles have the ability to log in as users of other roles. For example, Administrators can be configured to log in as any user with the roles of Customer or Shop Manager, while Office Managers can log in as users with the Author role. [Pro version]
* Minor stability and performance improvements.Thank you, @yordansoares
Ok, I’ve finally found it. There is a parameter for this in the plugin settings.
Check the “Document link access type” under the “Advanced” tab.
Forum: Plugins
In reply to: [Login as User] Remove frontend JS and CSS if user is not logged inHey @ss88_uk ????
Thank you so much for your kind words and the suggestion.
Good point! ?? I will include this in the upcoming release. But can you try this first?
Please, edit the file /wp-content/plugins/login-as-user/includes/class-w357-login-as-user.php (line 468), and replace the function enqueue_styles() with the code below, and let me know if that worked, please.
public function enqueue_styles() {
$options = get_option('login_as_user_options', array());
$message_display_position_option = (!empty($options['message_display_position'])) ? $options['message_display_position'] : 'top';
$show_admin_link_in_topbar_option = (!empty($options['show_admin_link_in_topbar'])) ? $options['show_admin_link_in_topbar'] : 'yes';
// do not proceed if user is not logged in
$old_user = $this->get_old_user();
if ($old_user instanceof WP_User && ($message_display_position_option !== 'none' || $show_admin_link_in_topbar_option === 'yes')) {
wp_enqueue_style('login-as-user', plugin_dir_url(dirname(__FILE__)) . 'public/css/public.min.css', array(), LOGINASUSER_VERSION, 'all');
wp_enqueue_script('login-as-user', plugin_dir_url(dirname(__FILE__)) . 'public/js/public.min.js', array('jquery'), LOGINASUSER_VERSION, false);
wp_register_style('login-as-user-inline-style', false);
wp_enqueue_style('login-as-user-inline-style');
}
}Thanks ??
Forum: Plugins
In reply to: [Login as User] Unable to Login as UserThanks for letting me know, @mhmmdsufyan
It seems that it’s a caching issue on your laptop. Clear browser’s cache and try again, please.