euro11
Forum Replies Created
-
Well I have no idea how else to explain. password protecting the wp-admin directory to add another layer of security is a common thing:
It’s supposed to protect the wp-admin directory ONLY for admins and not for users but it also protects the login page for users as well and once users try to log in, it pops up. since users don’t have access to that password, it makes no sense to be displayed to users, not to mention that it doesn’t affect the users login page at all and users can simply cancel it and log in as usual without it.
So I was thinking maybe there was a rule for .htaccess or a code snippet to hide it for users.
It’s also worth mentioning that it creates a separate .htaccess file in wp-admin folder when I password protect the wp-admin directory:
AuthType Basic AuthName "Protected 'public_html/wp-admin'" AuthUserFile "/home/user/.htpasswds/public_html/wp-admin/passwd" Require valid-user
Maybe adding a line to hide it for the users page might fix the issue.
- This reply was modified 1 year, 11 months ago by euro11.
- This reply was modified 1 year, 11 months ago by Jan Dembowski.
Forum: Plugins
In reply to: [Database Manager - WP Adminer] Adminer stops working when I rename wp-adminI tried the given code in wp-config.php and it worked perfectly. thanks Chris.
It would be even better if I could add it to Code Snippets as I change wp-admin directory from time to time and it makes it a little bit harder for me to log into cpanel and make changes to wp-config.php. two final questions:
- Is it enough to add the following line in Code Snippets ? shouldn’t it be defined as a function or something ?
define(‘PEXLECHRIS_ADMINER_SLUG’, ‘new_admin_directory’);
2. Which one is safer ? wp-config.php or Code Snippets ?
Forum: Plugins
In reply to: [Database Manager - WP Adminer] Adminer stops working when I rename wp-adminWow. that was so quick Chris. thanks for your response.
Well I’d rather not edit wp-config.php. if it’s not possible through .htaccess file, it would have been great if you could add it as a new feature to your plugin in the future.
Forum: Fixing WordPress
In reply to: Shortcodes Causing PHP WarningsIt was my custom .maintenance file that was causing the issue.
Forum: Plugins
In reply to: [Code Snippets] PHP Header Warnings on ShortcodesIt wasn’t the shortcode or the plugin. I should have triple checked before posting. by checking the line 300 of load.php, I realized it was my custom .maintenance file that was causing the issue. thanks for your help anyway.
Forum: Fixing WordPress
In reply to: Shortcodes Causing PHP WarningsGeorge, unfortunately I have no idea what you mean by that since I’m not a coder. I think what I asked was clear enough. I’m using the
[wpsearch]
shortcode to put the search bar in every post and page with the following snippet:add_shortcode('wpsearch', 'get_search_form');
It works fine but I receive the “Cannot modify header information. headers already sent in /wp-includes/load.php on line 300” PHP warning.
How can I fix it ? is it really necessary to fix it? I’m saying it because it’s just a warning not an error.
- This reply was modified 1 year, 11 months ago by euro11.
Forum: Fixing WordPress
In reply to: Shortcodes Causing PHP WarningsI received a fatal error:
Fatal error: Cannot redeclare get_search_form() (previously declared in \wp-includes\general-template.php:239)
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Submitted URL marked ‘noindex’I guess I realized what the problem was. all of the contents are EDD based and since I had no posts and categories other than EDD’s, I came up with that error.
And the weird thing is, I came to realize this after I reset the plugin. I’m pretty sure that the options weren’t there the first time.
or maybe simply hide the price and extra dash (-) if it’s 0.00$
Thanks Phil,
But the code snippet doesn’t work and the add-on was NOT what I was looking for. (I should ‘ve seen the demo before I purchase it)
Anyway, to put it simply :
All I need is change the 0.00$ (in variable prices mode) to FREE or ORDER. (I mean the price itself not the purchase button) as simple as that !If there is any way or any add-on please let me know.