WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Problem with datepicker (47 posts)

  1. jiu
    Member
    Posted 2 years ago #

    Hello,

    I encounter some problem to insert new event, the datepicker is missing so i can enter a correct date. I search on the web for a solution but don't find. It seems to be a jquery conflict.

    I used the theme "sterling" from themeforest.
    Do you have any solution to correct that?

    Thanks in advance.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    Did you also try to temporarily deactivate other plugins or revert back to default theme? also, please check if your theme is loading a different jquery version or if it's using wp_head() ?

  3. pollybean
    Member
    Posted 2 years ago #

    I'm having the same problem, no datepicker. Nothing has been updated or changed in my theme - however I have updated Event Manager to 5.1.7

    I have deactivated all plugins - which makes no difference, but when I change to the default theme then the date picker works!

    Not sure why this should suddenly happen - I've used the same theme successfully for 12 months with no problem.

    Would love a solution or some tips to find one! Thank you!

  4. Jay Collier
    Member
    Posted 2 years ago #

    FWIW, the datepicker is working fine with the BuddyPress default theme.

  5. jiu
    Member
    Posted 2 years ago #

    All plugin are deactivated. It working when i use wordpress default theme but not with the themeforest one...

  6. Jay Collier
    Member
    Posted 2 years ago #

    Does your Themeforest theme use jquery-ui datepicker? If so, there may be a namespace conflict. Worth checking with the theme developers.

  7. coxine
    Member
    Posted 2 years ago #

    Hello I have the same problem with date picker on search form !
    My theme is a theme forest one using jquery

    /* add javascript */
    	wp_enqueue_script( 'jquery' );
    	wp_enqueue_script( 'avia-default' );
    	wp_enqueue_script( 'avia-prettyPhoto' );
    	wp_enqueue_script( 'avia-html5-video' );
    	wp_enqueue_script( 'avia_fade_slider' );
    	wp_enqueue_script( 'avia-slider' );
    	wp_enqueue_script( 'aviacordion' );

    Any idea ?
    Thank's !

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    in theory that bit will work, it should use the WP jquery library. check other bits for e.g. wp_register_script or stuff like that.

  9. coxine
    Member
    Posted 2 years ago #

    Thank's a lot Marcus
    I've found this in functions.php theme

    wp_register_script( 'avia-default', AVIA_BASE_URL.'js/avia.js', array('jquery','avia-html5-video'), 1, false );
    	wp_register_script( 'avia-prettyPhoto',  AVIA_BASE_URL.'js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.0.1", true);
    	wp_register_script( 'avia-html5-video',  AVIA_BASE_URL.'js/projekktor/projekktor.min.js', 'jquery', "1", true);
    	wp_register_script( 'avia-slider',  AVIA_BASE_URL.'js/aviaslider-dev.js', 'jquery', "2.5.2", true);
    	wp_register_script( 'aviacordion',  AVIA_BASE_URL.'js/aviacordion-dev.js', 'jquery', "1.0.0", true);
    	wp_register_script( 'avia_fade_slider',  AVIA_BASE_URL.'js/avia_fade_slider-dev.js', 'jquery', "1.0.0", true);

    What am I supposed to do ?
    Thank's a lot !
    Isabelle

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you probably want to remove a bit like

    wp_deregister_script('jquery');
    wp_register_script('jquery'....);
  11. coxine
    Member
    Posted 2 years ago #

    thank's for your reply but I'm not a developer and don't know what do to.
    It would be nice if the plugin doesn't conflict with templates and other stuff !

  12. jiu
    Member
    Posted 2 years ago #

    The problem is resolved with the update (5.1.7) for me, now event manager used the jquery library from wordpress.

  13. achisholm@rogers.com
    Member
    Posted 2 years ago #

    I am also using the Sterling theme and have deactivated all other plugins and am using 5.1.7, but it doesn't work. Did this ever get resolved?

  14. jiu
    Member
    Posted 2 years ago #

    It works durung 4 days and now it suddenly don't show the date picker again, during my client presentation. Don't know why, nothing change on my installation. It sure i never install this plugin again!!!

  15. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    In my experience, ThemeForest provides some very badly written themes. I'm finding more and more that many of these incompatible themes come from there. I'm close to for the first time recommending AGAINST using a service like this.

    We're now using all the WP jQuery and UI libraries exclusively, so if your theme doesn't preload those correctly, or tries to do something fancy like load from the Google CDN and loads version 1.4 then there's bound to be problems.

  16. jiu
    Member
    Posted 2 years ago #

    Okay maybe the theme isn't good written. But how can be possible that the plugin work during some days and and it doesn't. Nothing new on my installation, any update, any new thing... :(

  17. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    maybe your browser cache....

  18. coxine
    Member
    Posted 2 years ago #

    Hi !
    I've an answer from theme support.

    I'm not aware of any custom core scripts (eg jquery ui scripts or jquery libary scripts) which are "hardcoded" into the theme source. This means that all scripts are loaded by using the standard wp_enqueue_script function: http://codex.wordpress.org/Function_Reference/wp_enqueue_script and Kriesi uses only bundled core scripts.

    So, what about this. I don't know what to do and I would be very embarassing for us to have to change the theme now !

  19. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    coxine, if I remember correctly, I saw an oudated jquery script, which means if it's stil happening when you disable your other themes, they must be loading it either by hard-coding or using wp_register_script functiosn to replace the default jquery js.

    lots of theme makers do it, but it's wrong.

  20. coxine
    Member
    Posted 2 years ago #

    thank for this way...but where ?
    I'm going to try to change theme an look if this 1.7 js file is still there

  21. coxine
    Member
    Posted 2 years ago #

    yes it's still there.
    Maybe French WordPress version which is in cause ?
    :-?
    <script type='text/javascript' src='http://site.com/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
    <script type='text/javascript' src='http://site.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.8.20'></script>

  22. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    Those are ok, that's jquery and the UI library.

    Have you tried another theme?

  23. christianstt
    Member
    Posted 2 years ago #

    I'm having a problem with Events Manager. Everything's working except when you submit an event using the form, you get the error "Dates must have correct formatting. Please use the date picker provided." It's a theme error as it doesn't occur with the default theme. I'm using the Modernize theme by Themeforest!

  24. agelonwl
    Member
    Posted 2 years ago #

    @christianstt

    do you have a sample link and are you using wp 3.4?

  25. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    The latest versions of WP/EM should work, but if you upgraded WP or EM in between, try refreshing your page as it may be related to browser caching your old JS files.

    I'm noticing more and more Themeforest themes are causing issues, and in all cases (so far) it's the theme at fault.

  26. christianstt
    Member
    Posted 2 years ago #

    Tried all of the above. Eventually I gave up and created a separate WP site just for the calendar with a different theme. That's working good so far!.

  27. jadi
    Member
    Posted 2 years ago #

    event calandar jQuery conflict for ajax base next previous button if not working. if you download the blank theme in the function.php remove included jquery.
    in the header file use the wp_head();

  28. jlac839
    Member
    Posted 2 years ago #

    The datepicker stopped working for me when I updated to the latest revision of the Bug Library plug-in. I will email the author to inform him about this.

  29. llb027
    Member
    Posted 2 years ago #

    I use the Askit template from Elegant themes and the date picker did not displayed.
    I solved this by modifying the ui.lightness.css file.
    (events-manager->include->css)

    Line 14, I have suppressed the two clip attributes and it's perfectly working.
    Original :
    .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
    Modified :
    .ui-helper-hidden-accessible { position: absolute !important; }

    Hope this will work for you.

  30. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    @llb027, thanks for spoting that. You may want to post this on the ET forum too as it looks like they may be needing to correct their CSS.

    otherwise, you could try something like this in your custom CSS:

    .ui-datepicker .ui-helper-hidden-accessible { position: absolute !important; }

    that way, no hacking needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic