WordPress.org

Forums

Event Organiser
[resolved] Can not change time (6 posts)

  1. montytx
    Member
    Posted 2 years ago #

    Time change is broken. New install of wordpress and when this active I can not change the time under events.

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Hi montytx - this is probably another plug-in. Try disabling all other plug-ins and re-enabling them to find the culprit plug-in (or theme). Let me know which one and I'll have a look.

  3. montytx
    Member
    Posted 2 years ago #

    It appears to be Facebook AWD...
    Thanks!

  4. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Is it just the time? Because that plug-in seems to break nearly everything javascript on my admin page...

    The problem is the plug-in is enquing jquery UI from its own 'assets' folder, rather than WordPress's jquery-ui. The upshot is that jQuery UI is being loaded twice and that breaks things.

    On their plug-in load page: AWD_facebook.php, line 589 is a method which loads the admin scripts. Line 596 reads:

    wp_enqueue_script($this->plugin_slug.'-jquery-ui');

    Change that to:

    //wp_enqueue_script($this->plugin_slug.'-jquery-ui');
         wp_enqueue_script('jquery-ui-core');
         wp_enqueue_script('jquery-ui-accordion');
         wp_enqueue_script('jquery-ui-tabs');

    And that should work (I've not fully tested their plug-in). If you do have any problems with it, open up your browser console. It will probably give a warning 'Object [object Object] has no method xyz' - the xyz will probably be jquery-ui related. (E.g. if its 'tabs' you would need to add wp_enqueue_script('jquery-ui-tabs'); (which I have :) ). The list of WP provided jQuery ui scripts is available here.

    Another (minor) issue. The time/datepicker won't look great - this is because Facebook AWD is loading a custom jquery-ui theme, that I don't think works well with the WordPress admin theme. Unfortunately, its over-riding the EO-loaded jquery-ui theme.

  5. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    If/when the developers of Facebook AWD - If someone could post that here, it would be much appreciated :)

  6. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Event Organiser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic