Email Users v4.8.5-beta-4 available

This afternoon I posted beta-4 of Email Users v4.8.5.  This build adds some additional debug information to help chase down slow database queries.  When in debug mode, Email Users will now report information about the query like this:

<!-- email-users.php::1391 -->
<!-- email-users.php::1410 Query #1 Memory Usage: 15.75M -->
<!-- email-users.php::1415 Query #1 Execution: 0.30101704597473s / 301.01704597473ms -->
<!-- email-users.php::1410 Query #2 Memory Usage: 20M -->
<!-- email-users.php::1415 Query #2 Execution: 0.29001688957214s / 290.01688957214ms -->
<!-- email-users.php::1410 Query #3 Memory Usage: 24.5M -->
<!-- email-users.php::1415 Query #3 Execution: 0.201012134552s / 201.012134552ms -->
<!-- 1282 -->
<!-- email-users.php::1448 -->
Email Users Beta (5722 downloads )

Email User v4.8.5-beta-2

This evening I uploaded another beta (beta-2) build of Email Users v4.8.5.  This build addresses an issue with the user’s email preferences not being respected when using a custom meta filter.  This problem was reported in the WordPress Support Forum a few weeks back.

Email Users Beta (5722 downloads )

Email Users 4.8.5-beta-1 Available

I’ve posted Email Users v4.8.5-beta-1 for testing purposes.  This is a minor update which restores functionality which was removed in 4.7.1.  See this recent thread and this old 4.7.1 thread on the WordPress Support Forum for more details on the change in 4.7.1.

The change in 4.8.5 introduces a new option (Send User Exclude Role) on the Settings page which is enabled by default to retain the current functionality.  When turned off, the user’s current role is also included in the list of roles presented as potential recipients.

Please provide any feedback ASAP as my window to fix this over the holiday break at work is small.

Email Users Beta (5722 downloads )

 

WordPress Google Forms v0.87 released

This morning I released v0.87 of the Google Forms plugin.  This update includes a new check when saving a form definition.  The check scans the HTML from the form to ensure it has the proper HTML structure the plugin expects.

The new version of Google Forms is not supported by the plugin so this check ensures that a user is notified that the form isn’t of the expected format.

2016-10-17_9-07-20

You can find this  updated on your WordPress Dashboard or in the WordPress plugin repository.

wp-SwimTeam v1.45 released

Today I released wp-SwimTeam v1.45 which fixes a possible security problem I was alerted to as well as addresses a number of bugs.  The CSV roster export bug was the primary issue holding up getting this release out, I fixed the security problem last week.

It turns out I had implemented a method in both a parent class and (redundantly) in a child class as well.  The RE1, SDIF, and HY3 exports all (properly) used the method from the parent class but the CSV export was using the child class version.  It took me a while to sort it out as I was staring at the wrong code trying to determine what was wrong. It turns out, nothing was wrong, I was just looking in the wrong place.  Once I removed the redundant method declaration, everything resumed working as it should.

I think I have resolved all of the multi-site issues, please let me know if you run into any more.

This update is available via the WordPress Dashboard or from the WordPress Plugin Repository.

wp-Swimteam v1.45 beta 3 now available

Earlier today I received a report of a security bug in wp-SwimTeam.  While the security flaw is true, I believe the ability to take advantage of the exploit is pretty hard is it would require knowing the value of a WordPress site’s ABSPATH value.  It is certainly possible to guess the value in some cases but without knowing the proper value, the exploit simply fails.

None the less, I have fixed it employing WordPress Nonce Verification.  All downloads now perform a verification before proceeding.

There is still one know bug in this build, the CSV Roster export from the Manage tab doesn’t do anything.  The RE1, HY3, and SDIF Roster Exports all work correctly.

There may also still be some oddities when running on WordPress Multi-Site.  I’ve been chasing them down slowly, if anyone runs into anything please report it.

There is a good chance I’ll release a new version once I fix the CSV export in order to get the security fix out in production release.

wp-SwimTeam Beta (2508 downloads )

Email Users 4.7.2 released

Late last week there was a request on the WordPress Support Forum to add a filter to allow control over the HTML which wraps email content (post/page notifications or email to users/groups).

email_users_html_wrapper

This seemed like a reasonable request so I decided to look into it.  Adding a filter was fairly easy.  If the mailusers_html_wrapper filter exists, the default, and very basic, HTML wrapper is ignored and the filter is expected to properly construct the necessary HTML to wrap around email content.

This is the result of a email using the example filter now supplied as part of the plugin as viewed on my iPhone.

You can find the update in the WordPress plugin repository or an an update on your Dashboard.


/**
* To customize the look of HTML email or to integrate with other
* plugins which enhance wp_mail() (e.g. WP Better Emails), use this
* hook to wrap the email content with whatever HTML is desired - or
* in some cases, none at all if another plugin will be adding the
* necessary HTML.
*
* This example wraps an "Urgent" message and table around the email
* content so the background can be styled. A table is the best way
* to do this because not all mail clients will recognize styling
* elements such as BODY and DIV like a traditional web page.
*
* Drop this code snippet and modify to suit your needs into your
* theme's functions.php file.
*
* @see https://wordpress.org/plugins/wp-better-emails/
* @see https://litmus.com/blog/background-colors-html-email
*
*/
function mailusers_sample_html_wrapper($subject, $message, $footer)
{
// Wrap the HTML in proper header and body tags
// add some CSS styling to make the email look good.

$mailtext = sprintf('
<html>
<head>
<title>%s</title>
<style>
table { border: 1px solid black; width: 800px; background-color: #c5f6c0; }
td { background-color: #c5f6c0 }
</style>
</head>
<body>
<table class="content">
<tr>
<td class="content">
<div class="content">
<h1>This is an Urgent Message from Email Users!</h1>
%s
</div>
<div class="footer">
%s
</div>
</td>
</tr>
</table>
</body>
</html>', $subject, $message, $footer) ;

return $mailtext ;
}

add_filter('mailusers_html_wrapper', 'mailusers_sample_html_wrapper', 10, 3) ;

wp-SwimTeam v1.44 released

This morning I released a minor update to wp-SwimTeam.  Unless you are running under WordPress multi-site, you will not see a difference.  Under Multi-Site there was a bug in the database query that pulls the list of users from the WordPress database.  Because not all users stored in the user table should be visible to a particular site, the list of users needs to be filtered and limited to just those who have access to the site.  It was this filter portion of the query which was wrong.

You can find the update on your Dashboard or in the WordPress plugin repository.

Email Users v4.6.11 is out

Yesterday afternoon I released v4.6.11 of Email Users.  In addition to the additions to Dashboard to report the status of various filters, this release contains a fix to address a problem with using the Post Excerpt as the email content instead of the post itself and more importantly, a duplicate mail header problem.

You can find the update on your Dashboard or in the WordPress plugin repository.