WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] Prompt to Install Message on Dashboard (7 posts)

  1. novacode7
    Member
    Posted 1 year ago #

    After upgrading OptionTree, the prompt message appears in my dashboard despite the fact that OptionTree is obviously installed and updated:

    "The OptionTree plugin is required for this theme to function properly. Install now."

    I'm using WP University theme from the Molitor via Themeforest.

    http://crusaders.ourladyofhope.net

    http://wordpress.org/extend/plugins/option-tree/

  2. novacode7
    Member
    Posted 1 year ago #

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

  3. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

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

  4. novacode7
    Member
    Posted 1 year ago #

    //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
    }
  5. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

    <?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>';
      }
    
    }
  6. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. stephen2
    Member
    Posted 1 year ago #

    Hello,

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

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags