WordPress.org

Forums

Contact Form 7 Datepicker
No calendar pops up when field is clicked (21 posts)

  1. gavinwebb
    Member
    Posted 4 years ago #

    Hi

    When I click the field as per the instructions, no calendar pops up. I've created a [date yourdate] using the Generate Tag function, it displays a field in my contact form, but when I click it no calendar pops up.

    Thanks.

  2. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Hello, can you please post a link to your website so I can see exactly why isn't it working? I'm sure we can find a solution :)

  3. gamesbond
    Member
    Posted 4 years ago #

    Hi I just installed your plugin and I'm also having the same problem. The link to my website is http://www.bellalliancestudios.com/bas/test

  4. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Hello gamesbond!

    I visited your page and it seems that you've configured the calendar for useMode 1. Change that to 2 in your admin panel and see if it helps. Also, I see there is no value for limiToToday option. Please change that setting to anything and let me know if it works.

  5. Petrus006
    Member
    Posted 4 years ago #

    I've got the same problem. Follow this link to see please:

    http://www.likettraining.nl/cursus/test

    FF Web developer addon comes with this error:

    Fout: invalid assignment left-hand side
    Bronbestand: http://www.likettraining.nl/cursus/test
    Regel: 192, Kolom: 24
    Broncode:
    DatePicker_date-275 = new JsDatePick({

    I tried the settings you mentioned and even tested it with all other plugins disabled but without succes.

    Also tried it on two different servers: same problem.

    Any ideas? I would really like to use this plugin.

    Regards,
    Petrus

  6. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Hello, Petrus006

    This is my fault. If you look at the assignment you'll notice that DatePicker_date-275 is an invalid JavaScript variable name because it contains the '-' (dash) char, wich is an aritmetical operation and is illegal. I will correct this error in the next release, but till then, just change your date field's name from date-275 to date275 (for instance).

    Have a nice day and sorry for this bug! :D

  7. Petrus006
    Member
    Posted 4 years ago #

    Thanks for your quick reply. Problem solved ;-)

  8. jhned
    Member
    Posted 4 years ago #

    I've got an interesting problem: I installed this plugin through WordPress' automatic installer, but when I pull it up on the page, Firebug is giving me an error, saying "JsDatePick is not defined
    [Break On This Error] DatePicker_date275 = new JsDatePick({"

    What's going on? Do I need to edit the Javascript in order for this to work?

    Thanks!

  9. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Hello, jhned

    Can you give me a link to the page where you have your contact form? If not, can you please tell me if modified any of the options the plugin offers and what wordpress version are you using.

    Thanks!

  10. shamburg
    Member
    Posted 4 years ago #

    I have installed version .71. I have made sure the use mode is 2, yet no pop up appears when the field is selected.

    Please advise
    http://hc4cr.com/contact-us

  11. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Hello!

    It seems you are using the [datepicker] shortcode in CF7. The [datepicker] shortcode is meant for use outside of CF7.

    In CF7 you have to use the [date] shortcode. Please try:
    [date date]

  12. shamburg
    Member
    Posted 4 years ago #

    you actually looked while I was testing. I have put in the correct code now. It still doesnt work.

  13. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    What version of PHP and WordPress are you running?

    It's strange, the CSS gets loaded in the header as it should but the JS that has to load in the footer doesn't. Does your theme have a footer.php file that contains a <?php wp_footer(); ?> call? That might be the problem!

  14. shamburg
    Member
    Posted 4 years ago #

    Running WP 3.2.1
    Dont know what version of PHP I am running, whatever the default is ( i am a noob to WP)
    my footer.php is here:
    ?><div id=footernav style='text-align:left;'><?php /* A sidebar in the footer? Yep. You can can customize * your footer with four columns of widgets. */ get_sidebar( 'footer' );?></div><div class="cleared"></div><div class="Footer"> <div class="Footer-inner"> <a href="<?php bloginfo('rss2_url'); ?>" class="rss-tag-icon" title="RSS"></a> <div class="Footer-text"><p><div id=hidden style='display:none;'><?php global $encDn;if($encDn != ''){ $encDomain = strrev(gzinflate(base64_decode($encDn))); $alloweddomain = $encDomain; $currServerName = str_replace("www.","",$_SERVER['SERVER_NAME']); if($currServerName == $alloweddomain){ remove_action('wp_footer','lcmp_theme_options_end'); } } ?></div> <?php global $themeFooter;if($themeFooter==''){echo $footerHtml; }else{echo html_entity_decode($themeFooter);}?> <br> Copyright © 2010-2011 Health Care for Camps & Recreation, LLC. All Rights Reserved.</p></div> </div> <div class="Footer-background"> </div></div></div></div><!-- <?php printf(__('%d queries. %s seconds.', 'kubrick'), get_num_queries(), timer_stop(0, 3)); ?> --></div></body></html>

  15. shamburg
    Member
    Posted 4 years ago #

    Just checked with my hosting company..PHP 5.1

  16. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Heh, I'm sure it's because of this line right here:

    if($currServerName == $alloweddomain){ remove_action('wp_footer','lcmp_theme_options_end'); } }

    Can you comment out or remove that line from your footer.php file and see if it works?

    The thing is that wp_footer() is a WP action call that should not ever be ommited in any theme out there because it will break many plugins that hook actions into the footer.

  17. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Oh, no! I'm sorry, I'm really sleepy at this time! It's not because that line. You just need to include wp_footer(); inside your footer.php file.

    Inser <?php wp_footer(); ?> just before the </body> tag and all will be fine!

  18. shamburg
    Member
    Posted 4 years ago #

    that broke my footer and didnt solve the problem :(

    Parse error: syntax error, unexpected $end in D:\Hosting\5125925\html\wp-content\themes\hospital_health_services_bue095\footer.php on line 12

  19. shamburg
    Member
    Posted 4 years ago #

    that did it!!!

    thank you!! your help has been invaluable and your plug-in is awesome!

  20. Aurel Canciu
    Member
    Plugin Author

    Posted 4 years ago #

    Thank you very much! I'm glad I could help you!

  21. Ryan Cowles
    Member
    Posted 3 years ago #

    I just wanted to say thank you for the support! I was trying to figure out why this wasn't working, and it looks like the theme I was working on was missing the <?php wp_footer(); ?> call in footer.php.

    Thanks for a great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Datepicker
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic