Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Date picker and autocomplete problem

Viewing 15 replies - 16 through 30 (of 33 total)
  • Thread Starter Balders

    (@balders)

    Hi Marcus,

    I updated EM with your last date picker fix, still the same problem.

    I can’t find the JavaScript to comment, not in header.php

    I think I’m loosing it.

    Heeelp please

    Clemens

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    forgot to mention, but this recent update wouldn’t fix your problem, you’d need to track down the offending js in your theme and fix it.

    not much more we can do, given it’s theme specific, if your theme developer can’t help, consider hiring someone to debug it – http://jobs.wordpress.net

    Thread Starter Balders

    (@balders)

    Thanks Marcus,

    and there isn’t a possibility to disable date picker and autocomplete just for the event form?

    Cheers

    Clemens

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Datepicker is required, but as I mentioned, the autocomplete can be replaced with a dropdown.

    if you need the datepicker just on that page (assuming it works admin-side), try add a conditional in your header and not load your theme JS on the submission page?

    e.g.

    <?php if( get_query_var('pagename') != 'veranstaltungen-melden' ): ?>
    your js here
    <?php endif; ?>
    Thread Starter Balders

    (@balders)

    Hi Marcus,

    I know I must be a pain in the back but I’m really no wordpress coder.

    Do you mean I should put above code in the wp header.php like this:

    <?php if( get_query_var(‘pagename’) != ‘veranstaltungen-melden’ ): ?>

    <script type=’text/javascript’ src=’http://www.der-backnanger.de/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.8.20′></script&gt;
    <script type=’text/javascript’ src=’http://www.der-backnanger.de/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.8.20′></script&gt;

    <?php endif; ?>

    Cheers again

    yes, you can put the snippet in your theme header e.g. header.php

    Thread Starter Balders

    (@balders)

    Hi again,

    I disabled in EM General Options “Accept bookings” (after Enable recurrence?) and here we go: The date picker works well. So there is obviously a conflict in your plugin. I don’t need booking yet, but I want to upgrade to Pro Version, what does that mean for me in terms of booking facility?

    But problem still: Autocomplete doesn’t work (backend okay, problem just in front end on the submission form).

    I think we are getting there

    Cheers

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    It definitely works 🙂 Look at our demo site, there’s even a datepicker in the booking form itself using the Pro booking form editor – http://demo.wp-events-plugin.com/events/neil-young-main/

    Autocomplete won’t work unless you fix your theme. We can’t help you with that (even in Pro), your theme is at fault here so you need to either fix the JS, or ditch the JS your theme uses and figure a way around whatever it was trying to do acheive. Ideally, your theme maker should correct this problem because I can say with 100% certainty it is your theme doing this.

    The reason disabling bookings made it work is because the bug (if i remember correctly) was with the jQuery dialog UI plugin and some conflict with that. However, given your theme doesn’t work with the jQuery autocomplete UI (both a WP native script) it’s hard to say, esp. since I cant’ see the page above anymore – 404

    Thread Starter Balders

    (@balders)

    Hi Marcus,

    Thanks for your detailed answer.

    I’ll try to disable some javascript.

    Here ist the link to the submission form: http://www.der-backnanger.de/veranstaltung-melden-2/

    I can’t see any error warning in Firebug anymore though.

    Cheers

    Clemens

    hi,

    I found this error on your site using chrome -> error console

    Uncaught TypeError: Cannot read property 'PAGE_UP' of undefined jquery.ui.autocomplete.min.js:5
    element.addClass.attr.attr.bind.bind.d jquery.ui.autocomplete.min.js:5
    f.event.dispatch jquery.js:3
    h.handle.i jquery.js:3

    Thread Starter Balders

    (@balders)

    Hi aglonwl,

    Any idea what that could mean for “normal people”?

    Cheers

    Clemens

    Is this the theme that you are using http://themeforest.net/item/swagger-responsive-wordpress-theme/930581?ref=themeblvd ? because if this is your theme I tried to install it and everything seems to be working fine?

    Thread Starter Balders

    (@balders)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I think I know why this is happening….

    Your theme (looking at the live preview on TF) is loading the jQuery library from the Google CDN, which (although it’s wrong, one day it’ll be outdated) at the moment is ok because it’s 1.8.1 but WP uses 1.7.2 so what may be happening is the js code in there is using something in 1.8.1 that’s new and breaking the rest of the script.

    Given you paid for this theme, you should ask this on their support forum, because we’re using the normal WP jQuery UI and not doing anything particularly special there. Otherwise, the solutions above are my suggestions, can’t give much more.

    Thread Starter Balders

    (@balders)

    Hi Marcus,

    here is the comment from the theme developer :

    “Swagger uses the built-in jquery library in WP, not the google CDN jquery library. You can see so yourself by looking at the Swagger page source and search for the text “jquery” and the first result shows you it’s coming from the WordPress wp-includes folder and NOT the google CDN.”

    Cheers again

    Clemens

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Date picker and autocomplete problem’ is closed to new replies.