brunonar
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Fail on use accents in wpcf7_form_tag_data_option filterTakayuki, thank you very much for your quicky response!
I figure out what was happening. My problem was the file’s codification. My bad.
Again, thank you very much.joybuc, could you paste the shortcode that your are using on the posts? Try to create a new post with all useful information that you can provide in order to help us to help you to solve this problem.
Forum: Plugins
In reply to: [Crelly Slider] Crelly Slider adding youtube iframe even when it's not in useYep, I’m sure that it’s caused by “s.ytimg.com” on about 30-40% of time. Maybe it’s something of the region where I live. But the fact is that there are this delay (the browser says that when loading and when I use the developer tools. Tried on Firefox and Chrome in two PCs of different places).
Anyway, I’d like to thank you by the response. I’ll have to change the code. It’s easy.
I finally found out how to do it. I just wouldn’t know how to return to the plugin that the post was invalidated. So I just did a
wp_die
with a message for my client and it worked fine.
I would like to thank you again very much, Joe, for show me the path…function my_calendar_30_days( $post, $action, $i ) { if (!is_user_logged_in()){ wp_die(); } if ( $action == 'add' || $action == 'edit' || $action == 'copy' ) { $begin = strtotime(trim( $post['event_begin'][ $i ] )); $end = strtotime(trim( $post['event_end'][ $i ] )); $now = time(); $begindiff = abs($now - $begin); $enddiff = abs($now - $end); $beginInDays= floor($begindiff/(60*60*24)); if ($end==''){ $endInDays = 0; } else { $endInDays = floor($enddiff/(60*60*24)); } if($beinInDays > 30 || $endInDays > 30){ //More than 30 days. cancel the event. wp_die("<h3>It's not <b>alloewd</b> insert events with more than 30 days from now.</h3>"); } else { //Everything it's ok, return to plugin for other validations return $post; } } else { //Maybe there's a 'delete' operation? return $post; } } add_filter( 'mc_pre_checkdata', 'my_calendar_30_days', 10, 3 );
Thank you very much for the tips! I’ll check it up and return with a code in case of I find an answer!
I wish you a nice trip, Joe!
I found a great way to check out all the filters attached to validation.
https://wordpress.stackexchange.com/questions/17394/how-to-know-what-functions-are-hooked-to-an-action-filterI’ll debug the functions with it and return with the results later.
Thanks for the support, Saravana.
Thank you very much for the quick reply!
I tried your suggestions but I had no success at all. The “add to cart button” still ignores my function.
I also tried to solve it by changing the line 261 to “return $passed”, but it failed too.
I was not able to imagine another plugin that could be handling the filter as well. You know a way to get all the filters applied to it?
Thanks again.