Things are finally settling down and I am able to spend some time on my WordPress plugins. I updated Email-Users this week and am now focusing on WordPress Google Form.
Shortly before I went out on vacation I learned from one of the people who has been testing beta releases that the CAPTCHA functionality was no longer working. I took a quick look at it and sure enough, somewhere between Beta 5 and Beta 10 I broke something and the CAPTCHA was not working but oddly enough, it was only broken on some browsers (e.g. Chrome) but worked on others (e.g. Firefox). These sort of bugs are a pain to chase down and with work being very busy and my family and I getting ready to go on a week long trip to Ireland, I decided to wait until I came back to figure out what was wrong.
It turns out I had introduced a very subtle syntax error in the jQuery script which defines which form fields are validated. I am still surprised it works in Firefox but not in Chrome. Regardless, it is fixed in Beta 11.
This bug affected me quite a bit as I have the beta version running on my site for Help and Support Requests and I had a slew of spam responses while I was out on vacation. Hopefully in my clean up I didn’t delete any real requests!
There are a lot of new features in v0.46, please refer to this post from about a month ago which shows how to request an email address from a user as part of the submission. This post explains how the new Google Form Custom Post Type (CPT) works.
This morning I released an update to Email-Users (4.4.4). This update fixes problems with the meta filter functionality preventing sending email to specific users and an odd situation which could result in duplicate email to some users. You can find the update in the WordPress plugin repository or via an update on your WordPress Dashboard.
I made a mistake tagging the release so WordPress would recognize it which is why the version number jumped from 4.4.2 to 4.4.4.
I have posted a beta release of Email-Users v4.4.3 for testing purposes. This build addresses a problem with using the new Meta Filter functionality with a set of users and also fixes a situation which can result in duplicate emails when Notifications (Page or Post) are sent by selecting both Roles and Users.
The user had a test server I was allowed to access and I was able to narrow the problem down to a call to preg_match_all(), a standard PHP function.
The plugin settings page scrapes some content from the WordPress plugin repository and puts it on a tab within the Plugin Settings Page. The call to preg_match_all() involved a fairly complex regular expression to extract just the content I wanted.
It turns out there is an undocumented WordPress Plugin API which makes extracting this same date extremely simple. This beta release incorporates the API and eliminates the call to preg_match_all(). The solution is much cleaner, wish I would have known about this sooner!
Download the beta release and please let me know if you run into any issues.
Yesterday I released an update to Email-Users which addressed a problem when using the Email to Groups function. Too many users were incorrectly being selected as part of the group due to an initialization bug which has been fixed.
You can find the update in the WordPress Plugin Repository or via an update on your WordPress Dashboard.
This morning I incorporated the updated French language files and released Email-Users 4.4.1. This release fixes a number of issues people were having and introduces new functionality (via filters) to target specific groups of users based on their User Meta Data.
Here is a list of the key changes for this release:
Added German translation files (thank you Tobias Bechtold).
Fixed bug in Send to Groups where number of users receiving email was wrong.
Added internationalization support to Send to Group status messages.
Added support for sending email to users based on a custom meta filter.
Added support for sending email to groups based on a custom meta filter.
Added suppport for providing a bounce email address.
Fixed bug in Options form which prevented translation of strings.
Added support for defining email group meta filters based on meta key.
Implemented solution from @maximinime to fix lost Email-Users settings.
Removed invalid references to Marvin Labs.
Fixed bug where Post Excerpt wasn’t being used in email when present.
Updated French and Spanish language files.
Thanks to all of the people who have tested the various beta releases and provided the language file updates. The WordPress Plugin Repository has been updated and the update should appear on your WordPress Dashboard soon.
This morning I updated the beta version of Email Users 4.4.1 to beta-6. This version incorporates updated Spanish and German language files and fixes a few remaining links within the plugin which referred to the old plugin home page on <a href=”http://www.marvinlabs.com”>MarvinLabs.com</a>.
I had hoped beta-5 would be the final beta release however I am still waiting for updated French language files before 4.4.1 is released. Updates to other languages are welcome too however I no longer have the contact information for the Russian and Persian support files.
This morning I updated the beta version of Email Users 4.4.1 to beta-5. This version updates a number of the links within the plugin which referred to the old plugin home page on MarvinLabs.com which are no longer in existance.
I hope this is the final beta release before 4.4.1 goes out. All I am waiting for is some updates to language translation files.
This afternoon I updated the beta version of Email Users 4.4.1 to beta-3. This version improves the Custom Group filter options by introducing a new Custom Group Meta Key filter. It builds on the Custom Group Meta Filter but eliminates a lot of the work required if a filter on a Meta Key is desired instead of a Meta Key and Value pair.
For example the following code will yield a Send to Group Form with selections based on any possible value of a User Meta Key by the name of ‘department’:
The only required argument is the first one, which is the name of the Meta Key. The second argument is an optional Meta Value and the third argument is an optional callback which accepts two strings, Meta Key and Meta Value, and returns a string which is used as the selection text on the form.
I have updated the example plugin again to create the filter which results in the image above, the examples I have done previously are still in the file however are commented out. You can download it and drop it into your plugins directory to see menus like shown in the beta-1 post.
I’ve had a couple questions about the next version of WordPress Google Form. I have had a beta version of the next release of WordPress Google Form available for a number of weeks. So what is holding up the release? This is a pretty busy time of year for me at work (my real job) and combined with the holidays, I just haven’t had a lot of time to work on it.
This next update really changes how I recommend using the plugin and I want to make sure my Help and Support form can support it and right now it doesn’t. So until I can find a few minutes to update the Help and Support form, I am going to hold off on the release.