We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Image Manager

Development and Programming

Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.
I’m getting this ‘inserting p tags’ problem since upgrading to 1.6.6 and it’s jolly annoying. Any known fix for it yet?

There is a fix for all these ‘p’ tag problems. For custom field extensions, it’s generally in the publish_form_field_unique function.

Below

$r .= "\n</a>" ";

You need to add

$r .= $DSP->input_hidden('field_ft_'.$row['field_id'],$row['field_fmt']);

If your field is already created, you should add this line, then you may have to go in and change your field format to something else (eg XHTML), then check the box to change all existing fields (that should get rid of any NULLs). Then go back into the custom field screen and change back to “none” and/or reselect your custom field type.

       
Andy Harris's avatar
Andy Harris
958 posts
16 years ago
Andy Harris's avatar Andy Harris

Cheers Ryan - this worked perfectly, albeit a little later than I intended.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

There’s also an article about this now at devot:ee: Fix-It-Yourself Extensions, or The Field Formatting Fiasco.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.