This started as a quick update to the CookieMonster WordPress plugin to allow default values.
It has morphed into a nearly complete re-write to add more functionality than the original.
CookieMonster-plus takes incoming parameters like http://mercs.net/cookiemonster-plus/?example=NotDefault and puts the values in a cookie so that WordPress can then replace [example] with the value passed (and cookied) within any page or post they may visit.
You can change the value of the example parameter as passed to this page and watch this page update here: ([example] = DefaultValue).
CM+ will also let you specify a default value in the control panel rather than just leaving it blank if example isn’t set in the URL or cookie.
This was inspired by a call for competency from Paul Myers in his Talkbiz News email newsletter. He mentioned how nicely CM would complement his new product “The Email Affiliate System” and suggested a nice twist possible for affiliates if the plugin allowed a default value. So, here it is.
Oh, and if you pick up Paul’s Email Affiliate System from one of these links, let me know and I’ll share the affiliate tactic made possible with this plugin (with Paul’s permission) and a Firefox browser add-on that makes debugging the whole process easier — with CookieMonster-plus or without!
20110530: v.1.3.6 Added CF7 shortcodes text+,text*+,email+,email*+ to pull values from cookies or get values [TODO: do the same with hidden fields module?] 20110310: v.1.3.5 Added cookie duration to config options 20101201: v.1.3.4 Found and squashed that pesky "Invalid argument supplied for foreach()" bug Made shortcodes show up on templated pages that didn't use get_header() 20101004: v.1.3.3 *** All parameter/cookie names will need to be re-entered if you upgrade from 1.2.X *** *** (This should be the last time that is needed barring another major re-write.) *** Added option prefix CMp_ to avoid option name space collisions 20101001: v.1.3.2 Added function name prefix CMp_ to avoid name space collisions 20100930: v.1.3.1 Unbroke cookie setting code from refactoring (Oops) 20100929: v.1.3 !! Not backward compatible with 1.2.X !! *** All parameter/cookie names will need to be re-entered if you upgrade from 1.2.X *** Changed options format to allow blank options to just disappear 20100928: v1.2.2 Verboten list -- avoid WP reserved names that may break the page (404, etc) Turn on shortcodes in widgets [and titles?] Wrap short codes in <p> tags with wpautop() 20100927: v1.2.1 Encode HTML special characters in variables before displaying (to deter malicious code injection) 20100926: v1.2 Added default values Cleaned up original CookieMonster code Now allows for more than 4 parameters Added "Settings" link to plugin admin screen
Thanks for downloading!
If you’d like to be notified of updates to
this plugin and hear about other projects
please enter your name and email and
click “Send Me Updates”.