CookieMonster-plus update (1.3.12) — WP 4.3 compatibility

The CookieMonster-plus plugin has had another big update. This supersedes the last update that dealt with the WP 4.2.3 security update that broke how and where certain shortcodes work. It also has a more general, if slightly more complicated, solution to the new behavior of WP core.

Cookie Image

C is for Conversion, that’s good enough for me!

WordPress core changed up the shortcode behavior for security reasons and I understand their reasoning, but it broke plugins like CM+ that already had taken into consideration the dangers of user input being “injected” into your web page. What changed is that now they ignore any short codes that are a part of an HTML tag, but not all the parameters. So, for those who used a CM+ shortcode to fill in a form field’s value, it stopped doing that with the WP 4.2.3 update.

For example

<input type=’text’ name=’email’ value='[email]’>

used to do the right thing. As of WP 4.2.3, it just left the value blank.

The way around this, as validated by WP core developers, is to have the shortcode generate the whole HTML tag. In order to do that in a robust way, I added a new [cmp_tag] shortcode to CM+ that you feed three unnamed parameters: before, cookie, and after.

[cmp_tag “type=’text’ name=’email’ value='” email “‘”]

This allows for mechanical translation from a tag with an embedded [cookie_name] shortcode to the new format. There are instructions for this, as well as a web-based translation tool, available from the download page.

The good news is that any other customization you’re doing on WordPress pages with [firstname] or other CM+ cookie shortcodes should work as always — as long as it isn’t embedded in a parameter of an HTML tag. The even better news is that the latest version of the CM+ plugin gives us a way to use the shortcodes in the old way as well. The best news is that this means the upgrades to Paul Myers’s Email Affiliate System that CM+ turned into The BEAST (Blog and Email Affiliate SysTem) should all still be viable with the security of the latest version of WordPress.

As always, feel compelled to download CookieMonster-plus and sign up for my plugin announcement list on that download page.

CookieMonster-plus update (1.3.6) — CF7 integration

Just a quick announcement that I updated the CookieMonster-plus plugin (since I realized I hadn’t announced the last minor update).

The new features include a config option for setting the cookie duration (default is 30 days) and integration with Contact Form 7 to allow pre-filling text and email fields based on cookied values. I’m considering the same feature for hidden fields, but I ran out of steam just getting the visible fields to work properly.

In case you missed the significance, you can use CM+ to pre-fill people’s name and email address in contact forms so you can pass them from, say, a squeeze page to a survey page. CF7 has lots of flexibility in configuring forms and can be easily setup for surveys. When combined with the Contact Form 7 to Database Extension you can get something akin to the Ask Database survey functionality but self contained within WordPress.

CM+ 1.3.6 added CF7 shortcodes text+, text*+, email+, and email*+ to pull values from cookies or other parameter string values. They behave just like the non-plus versions, they just check the cookies and parameter string for default values to pre-fill the form.

As always, feel compelled to download CookieMonster-plus and sign up for my plugin announcement list below.

Updated CookieMonster-plus to 1.3.4

Just a quick note to let you know that CookieMonster-plus has been updated to allow use on all pages (even ones using a template that doesn’t include a call to get_header!) and I found and squashed the pesky foreach() bug I couldn’t seem to replicate until today.

Grab the CookieMonster-plus plugin directly or check out the main CookieMonster-plus post for more details.

BTW, the reason I found these bugs is because I was putting up a new freebie for a giveaway event. I’m also working on a report that explains more of what CM+ can do. If you’ve got questions, comments, or suggestions to share let me know!