publicForm not submitting

0

I have a problem whereby the publicform is not submitting. It looks like something (my theme?) is adding extra characters in the javascript for nicedit...so i see things like this:

var active_file;</p> <p>jQuery(function() {

a bunch of p tags all over the place...is there a way to disable nicedit from publicForms and have simple textareas? Or does anyone have a hunch what is created them p tags in the javascript?

i use the latest pods (1.12) with the latest WP (3.2) with a Pagelines theme (Platform Pro)

any help is appreciated...

regards, raza

asked Dec 12 '11 at 7:20

raza

5

add comment
enter at least 15 characters

6 Answers

0

If you're including that within a page, it's likely WP that's taking over the format of the output. It looks like it's an issue with Exec-PHP and the WP the_content filters. Try running the code directly in a theme template instead, maybe setup a child theme?

answered Dec 13 '11 at 7:34

sc0ttkclark

2936

add comment
enter at least 15 characters
1

Try setting your field to a "Code" field in the field editor. That should do it for that, but what I'm seeing from your actual issue is that you're embedding the form within a post or page. Is that right? If so, you may want to disable the WP Auto P for that specific use, or try customizing a child theme to pull the form in manually through a template.

answered Dec 12 '11 at 7:57

sc0ttkclark

2936

add comment
enter at least 15 characters
0

Thanks for the recommendations. I changed the field to Code and I installed the PS Auto Disable formatting plugin that I found on wordpress.

Now, I get only one error in Firebug Console in ui/input_form.php

I see

else if (typeof(tinyMCE) == 'object' &#038;&#038; "desc_tinymce" == classname[1]) {

where it should (obviously) be:

else if (typeof(tinyMCE) == 'object' && "desc_tinymce" == classname[1]) {

i am not sure what is doing this (the disable auto formatting script, i presume) but not sure how to fix... argh

no way to disable tinyMCE?

thanks again, raza

answered Dec 12 '11 at 6:11

raza

5

add comment
enter at least 15 characters
0

Not exactly sure how to fix, how are you outputting your form on this page?

answered Dec 12 '11 at 11:49

sc0ttkclark

2936

based on some googling around and reading threads of others who have had this problem, i "resolved" it by editing wp-includes/formatting.php ...i had to comment out two lines: $curl = preg_replace('/&([^#])(?![a-zA-Z1-4]{1,8};)/', '&#038;$1', $curl); $content = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/i', '&#038;$1', $content); form works now...who knows if anything else will break though...i'll report back if i find anything...thanks again, raza – raza Dec 13 '11 at 6:51
add comment
enter at least 15 characters
0

Nothing particularly special in the code...this is the page:

http://www.wahakamezcal.com/recipe-submission/

this is the code... <h2>Cocktail Recipe Submission</h2> <h3>Submit your favorite cocktail (fields with * are required):</h3> <?php $fields = array('name', 'summary' => array('input_helper' => 'small_textarea'), 'ingredients' => array('comment' => 'Use the following format: Value Type Ingredient. For example, 3 oz. Wahaka Mezcal or 2 large limes'), 'instructions' => array('comment' => 'Be as descriptive as you can'), 'yield', 'duration', 'author'); $Record = new Pod('recipes'); echo $Record->publicForm($fields, 'Submit Recipe', 'http://www.wahakamezcal.com/recipesub/'); ?>

but, as you mention, the code in the page and I use Exec-PHP...and some other plugins as well as the PlatformPro theme ...so the WP configuration is a bit complex..

regards, raza

answered Dec 13 '11 at 6:20

raza

5

add comment
enter at least 15 characters
0

ok...will try that...it's just that the pagelines themes are a bit gnarly...not sure yet how to create a child theme with them...but i'll figure it out eventually...thanks, raza

answered Dec 13 '11 at 7:45

raza

5

add comment
enter at least 15 characters