relu / contact-form-7-datepicker

Datepicker for Contact Form 7 Wordpress Plugin based on JQueryUI's datepicker (NO LONGER MAINTAINED)
http://wordpress.org/plugins/contact-form-7-datepicker/
29 stars 34 forks source link

WPCF7_Shortcode depreciated since Contact Form 7 ver. 4.6 #178

Open PeterAtFulcrum opened 7 years ago

PeterAtFulcrum commented 7 years ago

Hi,

As heading said, as of Contact Form 7 ver. 4.6 WPCF7_Shortcode and of course wpcf7_add_shortcode are deprecated. I was able to fix this issue by updating modules/date.php file on line 32 replaced $tag = new WPCF7_Shortcode($tag); with $tag = new WPCF7_FormTag( $tag ); and on lines 148,149 replaced wpcf7_remove_shortcode('date'); wpcf7_remove_shortcode('date'); with wpcf7_remove_form_tag('date'); wpcf7_remove_form_tag('date');

benclintz commented 7 years ago

Hi Peter Updated to the above code but my date picker is still not working. Could you have edited another file? Regards, Ben

PeterAtFulcrum commented 7 years ago

Hi Ben, Definitely was wp-content/plugins/contact-form-7-datepicker/modules/date.php. I'm attaching my copy of the file so you can compare with yours. Of course it could be something else that causing problem.

date.php.zip

DavidReyesGerman commented 7 years ago

Thank you so much!!

tyrann0us commented 6 years ago

@relu, do you mind taking a look at this? Thanks!

dregad commented 5 years ago

I'm facing the same issue as well. @relu, any chance you could fix this ?