Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter novacode7

    (@novacode7)

    I see now that my theme had a function checking for the OptionTree plugin, which does not recognize the updated version of OptionTree.

    Plugin Author Derek Herman

    (@valendesigns)

    That is correct! Paste the nag message code here and I’ll alter it so it will again recognizes OptionTree exists.

    Thread Starter novacode7

    (@novacode7)

    //OPTIONS PLUGIN CHECK
    wpaid_check();
    function wpaid_check()
    {
      if ( !function_exists('option_tree_css_save') )
      {
        add_thickbox(); // Required for the plugin install dialog.
        add_action('admin_notices', 'wpaid_check_notice');
      }
    }
    add_theme_support('automatic-feed-links' );
    
    // The Admin Notice if OptionTree not installed.
    function wpaid_check_notice()
    {
    ?>
      <div class='updated fade'>
        <p>The OptionTree plugin is required for this theme to function properly. <a href="<?php echo admin_url('plugin-install.php?tab=plugin-information&plugin=option-tree&TB_iframe=true&width=640&height=517'); ?>" class="thickbox onclick">Install now</a>.</p>
      </div>
    <?php
    }
    Plugin Author Derek Herman

    (@valendesigns)

    <?php
    /* check for OT_Loader class. */
    if ( ! class_exists( 'OT_Loader' ) ) {
    
      /* add thickbox */
      add_thickbox();
    
      /* send notice to screen */
      add_action( 'admin_notices', 'ot_notice_check' );
    
      /* notice message */
      function ot_notice_check() {
        echo '
        <div class="updated fade">
          <p>The OptionTree plugin is required for this theme to function properly. <a href="' . admin_url('plugin-install.php?tab=plugin-information&plugin=option-tree&TB_iframe=true&width=640&height=517') . '">Install now</a>.</p>
        </div>';
      }
    
    }
    Plugin Author Derek Herman

    (@valendesigns)

    Had I know theme authors were using a certain thing to test for I would have at least left the function in the compat file and it would just return empty but the function would existed.

    Hello,

    I’m having the same problem. I’m using the Eleganza theme from themeforest and I’m new to WordPress.

    https://themeforest.net/item/eleganza-corporate-business-wordpress-theme/418386

    Derek-Where do I paste the code you you posted above?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: OptionTree] Prompt to Install Message on Dashboard’ is closed to new replies.