WordPress.org

Ready to get started?Download WordPress

Forums

StatPress Visitors
[resolved] Newest version disables javascript in plugin page (5 posts)

  1. Eckstein
    Member
    Posted 1 year ago #

    I have a few plugins that use javascript in the admin plugins page for their settings, so that the user doesn't have to leave that page to change them.

    It seems since I updated to the new StatPress V it for some reason kills this functionality.

    Everything else seems to be working fine (better actually!) it's just this little issue that I've found.

    One plugin, specifically, that this is affecting is WP Maintenance Mode

    http://wordpress.org/extend/plugins/statpress-visitors/

  2. Eckstein
    Member
    Posted 1 year ago #

    OK, after further using on the admin area, it seems like the plugin is also disabling the fly-out menus on the back end. That's a bigger problem.

    Thanks for listening!

  3. Bob33
    Member
    Posted 1 year ago #

    Yep, its also affecting some functions on post edit pages - word count not working, can't add new category etc.

    Great looking update to this plugin - thanks - but be good to see a fix for this.

  4. holospirit
    Member
    Posted 1 year ago #

    Error: TypeError: jQuery(".datepicker").datepicker is not a function

    possible reason:
    wp_enqueue_script('jquery-ui-datepicker', STATPRESS_V_PLUGIN_URL . '/js/jquery.ui.datepicker.min.js', array ('jquery', 'jquery-ui-core'));

    -> jquery.ui.datepicker.min.js is only enqued in stats-vis - but the function is called always

    solution:
    add line ~177 admin/lic_admin.php:
    if (isset($_GET['page']) && strpos($_GET['page'], "statpress-visitors") !== false) {
    and a closing } after the script call

  5. Eckstein
    Member
    Posted 1 year ago #

    Thank you for the update today! This seems to have fixed the issue. This is a great plugin, thanks for all your hard work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.