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

TinyMCE LG Plugin: PHP error when publishing entries

Development and Programming

elemental's avatar
elemental
77 posts
16 years ago
elemental's avatar elemental

phatphug,

did you manage to tweak the File extension by Mark Huot as well? That one is giving me headache, but I am no good in tracing it in the extension where it could be modified.

Thanks

       
phatphug's avatar
phatphug
31 posts
16 years ago
phatphug's avatar phatphug

hi Elemental,

Yes, I modified my File extension too (v3.1.1)

If you search for the following in ext.mh_file_ext.php: (should be around line 550):

//  =============================================
//  Add Field Data to $_POST
//  =============================================
$r.= '<input type="hidden" name="field_id_'.$row['field_id'].'" value="'.htmlentities($field_data).'" />';

Then insert this line after it:

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

That should do the trick hopefully 😊

       
elemental's avatar
elemental
77 posts
16 years ago
elemental's avatar elemental

Yes phatphug, it did the trick. Thank you so much.

       
notacouch's avatar
notacouch
92 posts
16 years ago
notacouch's avatar notacouch
hi Elemental, Yes, I modified my File extension too (v3.1.1) If you search for the following in ext.mh_file_ext.php: (should be around line 550):
//  =============================================
//  Add Field Data to $_POST
//  =============================================
$r.= '<input type="hidden" name="field_id_'.$row['field_id'].'" value="'.htmlentities($field_data).'" />';
Then insert this line after it:
$r .= $DSP->input_hidden("field_ft_" . $row['field_id'], "none");
That should do the trick hopefully 😊

Thanks! This is perfect. I am still using Mark Huot’s Multi Text extension so I threw the same code in there, too.

//
    //  Publish Tab
    //
    function publish( $row, $field_data )
    {
        global $DB, $DSP, $EXT;
        $r = "";
        $r .= $DSP->input_hidden("field_ft_" . $row['field_id'], "none");
       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

There is an article at devot:ee about the field formatting issue that applies to this.

Any older add-on that creates a custom field type is prone to have these issues.

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse

OMG, this saved my day!!!

I have been banging my head on my keyboard for days now trying to solve this parse_type() publish error.

I am going to post a link to this thread on the FILE thread… Hopefully it will help others.

THANKS!!!!

Micky

       
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.