halwp
Forum Replies Created
-
Note: the above declarations are required in order for WP to work properly.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] HTML Validation ErrorsOK, there must have been a change in one of the Contact Form 7 upgrades that escapes quotes used in the form configuration. Hence, now I can change <label for=\”your-name\”> to <label for=”your-name”> and it works without problems.
Thanks for this!
HalForum: Plugins
In reply to: [Plugin: NextGEN Gallery] Minor errors in logsAlex
I just wanted to caution you about substituting the function “__ngettext” with “_n” – are you aware that this may make NextGen incompatible with some earlier versions of WordPress. I am afraid I cannot tell you which versions it will affect.
In contrast, the other changes that I suggested, which fix the PHP “Undefined index” notices, are good practice for all versions, and so I would still encourage you implement them.
Thank you again
HalForum: Plugins
In reply to: [Plugin: Really Simple CAPTCHA] How to make this work in your Comments.phpI would also really like to know how to protect my comments with Really Simple CAPTCHA – is there anyone out there who knows how to do it?
Thank you in advance
HalForum: Fixing WordPress
In reply to: [Plugin: Really Simple CAPTCHA] Captcha not working on commentsI also would like to know how to use CAPTCHA with comments. Is there really no way to do it?
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Minor Errors in Log filesThat’s OK. I’ll just look out for it, then. Thank you, and good luck with your work.
Best wishes
HalBy the way, I believe the solution to this is:
if (array_key_exists(s, $_GET) && $_GET[‘s’] && strpos($_SERVER[‘HTTP_REFERER’], get_bloginfo(‘url’)) === false) {
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Minor Errors in Log filesdonncha – I was concerned that you would think that I was making a criticism, which was not my intention, so it is fantastic that you have responded with such a positive attitude.
Thank you – and I will let you know if my installation logs any more.Do you know when the next update will be available, so that I can give you further feedback?
Kind wishes
HalForum: Plugins
In reply to: [Plugin: NextGEN Gallery] Minor errors in logsThanks for that, alex!
The solution to the warning notice is simply to test that a variable exists before using it. For example,
if ($options['allfeeds'] || $options['commentfeeds'])
would be changed to:
if (array_key_exists('allfeeds', $options) && $options['allfeeds'] || array_key_exists('commentfeeds', $options) && $options['commentfeeds'])
While some may argue that isset is better for testing arrays, because it performs slightly better, you need to bear in mind that if the array key does indeed exist but it has been set to null, isset will return false, whereas array_key_exists returns the result that you would expect.
With scalars, you would simply use isset.
Hope this is all useful to you (although I imagine that you know all this already) ??
Cheers
HalForum: Plugins
In reply to: [Plugin: NextGEN Gallery] Minor errors in logsThat’s great, alex, well done!
Do you think you can resolve the warning too (PHP Notice: Undefined index)? I know how to resolve these warnings but, funnily enough, I can’t actually find galAjaxNav in nggallery.php on line 316, which is strange.