/* Copyright 2006-2007 Oliver Seidel (email : oliver.seidel@deliciousdays.com) /* cforms II - v5.3 *) bugfix: admin HTML with non auto conf. TXT email would cause flawed HTML CC email *) bugfix: fixed mailer error messsages for ajax (they would not show) *) other: improved/simplified UI *) other: lots of clean up and making UI around email messaging more obvious, hopefully cforms II - v5.2 *) feature: support for alternative SMTP server !! Note: Due to a obvious WP bug, class-smtp.php needs to be renamed to class.smtp.php *) feature: post processing of submitted data (see documentation) *) enhancement: simplified, and this made non-HTML (=TXT) emails more robust *) enhancement: improved layout of textarea data (HTML) in admin emails *) bugfix: stopped leaking HTML in TXT part of message *) bugfix: fixed CC: feature for non-Ajax submissions *) other: re-implemented ajax support now utilizing POST to avoid any input limitations (# of characters) *) other: more robust email address/name processing cforms II - v5.1 *) re-introduced feature: FROM: address can again be changed via UI, BE CAREFUL! *) feature: added hook for outside processing/manipulation of form data *) bugfix: Outlook (especially 2007) requires special HTML formatting *) other: bit of code clean up here and there cforms II - v5.0 *) NOTE: The extra settings for form ID's (in email messages) are obsolete, this feature is now available via the default variable {ID} - see Help! *) NOTE: The special input field "Email subject" is now obsolete, since both message body and SUBJECT fully support default and custom variables *) feature: added a couple of CSS Themes *) feature: multiple upload fields in the same form now supported *) feature: 3rd party email tracking support, e.g. readnotify & didtheyreadit *) feature: basic widget support (make sure to double check Theme CSS!) *) feature: alternative form action supported (please read config info!) *) feature: BCC to copy additional admin(s) *) feature: additional themes: blue & green *) feature: full [additional] HTML formatting support for email messages *) bugfix: BACKUP & RESTORE fixed (not all fields were backed-up prev.) *) bugfix: "spacing between labels & data" error when number < than length(field name) *) bugfix: more CSS corrections *) bugfix: the use of single & double quotes fixed in FIELDSETS *) bugfix: one more single quote bug remedied in form labels *) bugfix: DB tracking of user verification input now consistent w/ and w/o Ajax mode *) bugfix: critical CAPTCHA issue resolved when more than one CAPTCHA fields are displayed on the same page *) bugfix: a mail server error would cause a bogus redirect and on top "hide" the actual error making any troubleshooting virtually impossible *) bugfix: critical javascript error when using more than 9 forms *) bugfix: regexp in non-ajax mode cause an error when using a slash '/' *) other: layout enhancements for all CSS Themes *) other: default variables fixed for auto confirmation message (subject & message) *) other: code clean up & major admin usability/accessibility improvements *) other: fixed leading _ in form object ID's *) other: now validates for XHTML 1.0 "Strict", too v4.8 (bugfixes mostly) *) other: added optional credit text - if you're happy with cforms you may want to leave it enabled *) feature: added a configurable SPACE between labels & data in the form email *) feature: file uploads (form attachments) can now optionally be exlcuded from the email they can be downloaded via "Tracking" (if enabled!) or accessed directly on the server *) bugfix: properly escaped subject lines (when using visitor defined subject) *) bugfix: fixed single quotes in field names *) bugfix: text-only fields would falsely be added to the Tracking Tables *) bugfix: non Ajax method: possible formatting issues with 1st fieldset in email *) bugfix: non Ajax method: DB tracking of check boxes corrupted *) bugfix: Ajax method: fixed possible "Multi-Recipients" bug *) bugfix: non Ajax method: added a missing error message for failed attempts email forms *) bugfix: DB Tracking: multi-line fields are now consistently stored (no extra
) *) other: a few more form themes (wide & big, no border) *) other: slightly enhanced email formatting *) other: added seperate USER CAPability for tracking only! (use w/ Role Manager plugin!) v4.7 (bugfixes only) *) bugfix: field names would not show correctly when upgrading from 3.x to 4.6+ *) bugfix: simple CSS changes to support Opera Browsers (tested on 9+) *) other: made some captcha mods for better readability v4.6 (bugfixes & features) *) new feature: page redirect on successful form submission *) new feature: customizable admin form email (header, subject) *) new feature: customizable auto confirmation message (input field reference) & pre-defined variables *) bugfix: multiple, sequentially arranged check box groups would "collapse" *) bugfix: fixed adding/duplicating new forms with WP2.2 (WP caching issue) *) bugfix: db tracking in non-Ajax mode showed inconsistent input field names *) other: made the DB tracking tables creation process more flexible, hopefully avoiding "CURRENT_TIMESTAMP" err msgs in the future! v4.5 (maintenance, bug fixes and enhancements) *) NOTE: the format for check box groups has been enhanced, see HELP! *) feature: (optional) ID's for labels for even greater level of customization! *) bugfix: "Subject for Email" could not be saved "Is Required" *) other: "Subject for Email", user definable subject is now appended *) other: "Subject for Email" is now part of the email form submission body *) other: form structure re-done! XHTML'fied; much more robust now *) other: streamlined CSS *) other: added a warning msg re: "Show messages" settings v4.1 (features) *) feature: support for shown but disabled form element *) feature: "user message" positioning, now optionally at the bottom of the form *) feature: "multi-select" via check boxes, grouped check boxes *) feature: new special field: subject field *) other: revised and cleaned up Help! section v4 (feature & bugfix) *) feature: captcha support for additional SPAM protection *) feature: select & configure stylesheets via admin UI *) bugfix: IE margin-bottom hover bug *) bugfix: deleting form fields (on the general form config page) was broken due a new bug that was introduced as part of the localization effort *) other: change the INSERT queries using LAST_INSERT_ID() due to overly sensitive SQL servers. v3.5 (mostly maintenance) *) feature: slightly enhanced Tracking page ("delete" now also removes attachments) tracking data view now permits selective deletion of submission entries *) feature: text fields can optionally be auto cleared on focus (if browser is JS enabled) *) feature: attachments (uploads) are now stored on the server and can be accessed via the "Tracking" page *) feature: added optional ID tracking to forms (& emails sent out) *) bugfix: editor button wouldn't show due to wrong image path *) bugfix: order of fields on the "Tracking" page fixed, to ensure an absolute order NOTE: as part of the install/update either deactivate/reactive the plugin or delete the existing Tracking tables, to make use of the new table structure) *) bugfix: due to a WP bug, the use of plugin_basename had to be adjusted *) bugfix: fixed support for non-utf8 blogs ( mb_convert_encoding etc.) *) other: code cleanup (big thanks to Sven!) to allow proper localization current languages supported: English, default German, provided by Sven Wappler *) other: changed data counter (column 1) on the Tracking page to reflect unique form submission ID, that a visitor could possibly reference. v3.4 *) feature: multi-select fields *) feature: dynamic forms (on the fly form creation) *) bugfix: minor display bug on admin page: "add new field" button *) bugfix: fixed a CSS bug to better support 3 column WP themes (w/ middle column not floated) v3.3 *) feature: "file upload field" can now be mandatory *) feature: additional select box for more intuitive form selection *) drop down "-" option for multi recipients *) bugfix: select (drop down) boxes did not save values for non ajax method *) bugfix: when using "multi-recipients" field & first entry used, email would still go out to everyone *) bugfix: charsets other than UTF-8 caused issues with special characters in emails *) other: added form name as hover text for form buttons v3.2.2 *) feature: most attachment types (images, docs etc) are now recognized *) bugfix: not really a bug, but no "extra" attachments anymore *) bugfix: more special characters in response messages v3.2 *) feature: file upload; only works with non-ajax send method (chosen autoamtically) due to HTML constraints. ajax support does NOT need to be explicitly disabled *) feature: select boxes (drop downs) now can be "required" -> to support situations, where you don't want a default value to kick in, but want the visito to make a choice! see HELP! section for more info on how to use this new feature *) feature: checkboxes : now can be "required" -> for "I have read the above" type scenarious, where the user has to comply/agree to a statement *) feature: radio buttons, you can now click on the labels to toggle the selection *) feature: radio & select boxes (drop down): now accept a "display value" & a "submit value" see HELP! section for more info *) feature: "submit button" is now disabled after sending to prevent multiple submissions in case the web servers response is delayed (Ajax!) *) feature: download supports both CSV and TXT (tab delimited) *) bugfix: time correction in email (now considers blog time/date configuration) *) bugfix: failure and success msgs would not show special characters properly *) bugfix: “database tables found msg” would always show when settings were saved *) bugfix: labels (left of an input field) would not display special chars correctly *) other: renamed a few functions to avoid conflicts with other plugins *) other: modified checkboxes: text to the right is by default "clickable" *) other: W3C XHTML compliance now fully supported even when using REG EXPRESSIONS! v3 *) bugfix: changed the priority of the plugin: fixes layout issues due to wpautop *) bugfix: fixed ajax (email) issues with CC: and Visitor verification fields *) bugfix: fixed a few minor layout issues *) UI: new admin uinterface *) feature: full support for for role-manager support, see here for a current release: http://www.im-web-gefunden.de/wordpress-plugins/role-manager/ *) feature: database tracking of form input & download as a CSV file *) feature: backup and restore individual form settings (doesn't affect plugin-wide settings) *) feature: erase all cforms data before deactivating/uninstalling the plugin *) feature: added a new special field: "textonly" to add fully customizable paragraphs to your forms *) feature: verification question to counteract spam *) feature: custom regular expressions for single line input fields usage: separate regexp via pipe '|' symbol: fieldname|defaultval|regexp e.g. Phone|+49|^\+?[0-9- \(\)]+$ *) new menu structure (now top level menu!) *) admin code clean up *) verification codes accept answers case insensitive v2.5 *) feature: multiple email recipients ("form admins"): mass sending & selective sending by (visitor) *) CFORMS.CSS includes custom settings for form #2 (to see it in action, create a second form (#2) with one FIELDSET and a few input fields) *) feature: order of fields; fields can now be sorted via drag & drop *) feature: forms can be duplicated *) Fully integrated with TinyMCE & code editor. FF: hover over form placeholder and form object will be displayed. IE: select form placeholder and click on the cforms editor button *) feature: default values for line & multi line input fields: use a "|" as a delimiter *) UI: "Update Settings" returns directly to config section *) bugfix: quotes and single quotes in input fields fixed *) bugfix: adding/deleting fields will respect (=save) other changes made *) UI: all form fields can now be deleted up until the last field *) feature: CC optional for visitor / if CC'ed not auto confirmatin will be sent add'l *) feature: enhanced email layout - supporting defined fieldset *) feature: REPLY-TO set for emails to both form admins & visitors (CC'ed) *) non ajax form submisssion: page reloads and now jumps directly to form (& success msg) *) code clean up and a handful of minor big fixes v2.1.1 *) bugfix: IE not showing AJAX / popup message stati *) bugfix: send button jumping to the left after submitting *) check boxes: text can now be displayed both to the left and right v2.1 *) fieldsets are now supported: CSS: .cformfieldsets addresses all sets, cformfieldsetX (with X=1,2,3...) individual ones. *) form code clean-up: more standardized with a minimum on necessary elements and got rid of all the legacy DIVs *) javascript has been "outsourced" making your html so much nicer :) v2 !!) when upgrading to v2: !) please edit each form on your plugins config page to verify that the email field is checked with "Is Email" to ensure email verification *) additional form fields: checkboxes, radio buttons and select fields *) please note the expected "Field Name" entry format, separating input field items form the field name: i.e. radio buttons: field-name#button1#button2#button3#... *) ajax support can be optionally turned off *) a form can now have as few input fields as two *) more flexibilty in choosing email entry field. NOTE: if you have multiple email fields in your form, only the first will be used for sending the auto confirmation to *) "valid email required" placeholder added to indicate required input format for email fields *) optional popup window for user messages (may be helpful for very long forms) *) code cleanup v1.90 *) email header correction: "From:" doesn't claim to be visitor's email address anymore this should fix most paranoid mail server v1.81 *) form name added for either email filtering or simply better differentiation *) admin email: can now be just "xx@yy.zz" or "abc " (from name removed) *) changes to email header: simplified and "WP compliant" *) added to cforms.css: success and failure styles *) bug fix related to the use of a single forms (#2 and up) and insertion of ajax code *) FINALLY fixed "CR"s for multi-line response messages (success & failure fields) v1.71 *) HTML bug resolved & localization for "waiting message" *) default value for email recipient is now the blog admins' email address *) added a function call to insert form anywhere on your blog *) added new version support v1.6 *) bug fixes: email/form functionality w/ standard send mechanism v1.5 *) clean up, external css, multiple forms support & user auto confirmation