Inline Attachments
Hide Thickbox Buttons option resetting (4 posts)

  1. Corinne
    Posted 3 years ago #

    Hi, first of all thanks for this plugin, as it's made life a lot easier for me.

    However, the 'Hide Thickbox Buttons' option resets to checked every time I visit the options page. It's fine if I uncheck it and save, but it will reset back to checked and my thickbox buttons disappear the next time I go to change options. The main reason I need the buttons visible is because I have other plugins which have added icons there to insert forms, etc.

    Not a big problem, but would be great if you fixed this in a future version!


  2. TheFluffyDoneky
    Posted 2 years ago #

    Lovely Plugin, thanks!

    However, update_option() on line 544 in inline-attachments.php 'fails' when new value is false. Doesn't seem to like your 'booleans'.

    Got it 'fixed' with some quick and dirty hackery. In inline-attachments.php you may want to adjust the following lines to:

    Line 77:

    if (!in_array($abd, $active_plugins) && $enabled === 'true'){

    Line 377:

    if(get_option("ia_hide_thickbox_buttons") === 'true'){

    Line 543:

    $enabled = $_POST["features"][$count] == true ? $_POST["features"][$count] : 'false';

    Line 674:

    $enabled = get_option($feature[1]) === 'true' ? true : false;

    Hope this helps. Cheers!

  3. gn.ozdemir
    Posted 2 years ago #

    Worked for me. Thank you dude.

  4. janubande007
    Posted 2 years ago #

    I'm seeing this problem and I don't have the ability to change code. Just a dumb user here. Can we get a Fix?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Inline Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic