kolucciy
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: MM Forms] Form submission hangs (possibly after wpmu-2.9 update)As of jQuery 1.4, if the JSON file contains a syntax error, the request will usually fail silently. So, just fix this function: ajax_json_echo (line 162 to 187) from mm-forms.php to make the plugin compatible with the latest version of jQuery.
To do so, just enclose all the generated JSON properties in double-quotes.
Example:
Replace:
echo '{mailSent: 0, message: "' . js_escape($this->message('mail_data_saved')) . '", into: "#' . $unit_tag . '", captcha: ' . $captcha . ' }';With:
echo '{"mailSent": 0, "message": "' . js_escape($this->message('mail_data_saved')) . '", "into": "#' . $unit_tag . '", "captcha": ' . $captcha . ' }';Hope it helps 😉
Forum: Plugins
In reply to: [Plugin: MM Forms] Form submission hangs (possibly after wpmu-2.9 update)Sorry, forgot to mention the table name: wp_contactform_submit
Forum: Plugins
In reply to: [Plugin: MM Forms] Form submission hangs (possibly after wpmu-2.9 update)I found out what was the problem. There is a field client_browser which has type VARCHAR with up to 200 chars limit. In my case $_SERVER[‘HTTP_USER_AGENT’] was more then 200 chars and it was causing problems. I’ve just increased the limit for this field and it solved my problem, now data is saving correctly in all browsers.
Forum: Plugins
In reply to: [Plugin: MM Forms] Form submission hangs (possibly after wpmu-2.9 update)I have the same problem. However I found out that in Firefox it works just fine, but in IE8 data is not being saved to DB.
Forum: Plugins
In reply to: wp_delete_post change TO post_status_updateTry this out:
foreach ($result as $a) { //wp_delete_post ($a->post_id); $my_post = array(); $my_post['ID'] = $a->post_id; $my_post['post_status'] = 'draft'; // Update the post into the database wp_update_post( $my_post ); }