julio75
Forum Replies Created
-
O.k. thank you didn’t see the other post.
Worked with downgrade. Hope they will fix the issue soon.
No, even with
WP_DEBUG=
trueNo errors on live site
Thank you very much ! Works very good.
o.k. I was hoping that it could be possible with a function.
I’m also wondering that when I try:
#_ATT{Field Label}{Default Value}
?– Text event attribute, with a default value if not defined
It shows absolutely nothing in the text fieldYes, but there is no placeholder text in the field like in the “name of the event” field for example where you have a placeholder text “name of the event”.
I would like to have a placeholder text in #_ATT fields. Not just an empty field
Get the same error but only in the test version on my local computer.
The online version of my site doesn’t show this error. Strange!
GREAT ! Works fine now. Thank you very much.
Thak you joneiseman for the fast answer.
Unfortunately, when I add the function, I can now submit events even when address and city fields are not filled out.
There might be a little mistake which disables the original validate function.
Can’t find out where the problem is
For the moment I have this function which works fine.
add_filter( 'em_event_validate', 'my_em_event_validate', 10, 2 ); function my_em_event_validate( $is_valid, $EM_Event ) { if ( $is_valid ) { if( empty($EM_Event->post_content ) ){ $is_valid = false; $EM_Event->add_error( sprintf(__("%s are mandatory.", 'events-manager'), __('details (descriptions) of the event','events-manager') ) ); } if( strlen($EM_Event->post_content) >=1 && str_word_count($EM_Event->post_content) <= 30 ){ $is_valid = false; $EM_Event->add_error( sprintf(__("%s are too short (minimum 30 words).", 'events-manager'), __('etails (descriptions) of the event','events-manager') ) ); } } return $is_valid; }
As the post code field is not mandatory in the original version. When I add something like
if( empty($EM_Event->location_postcodet ) ){ $is_valid = false; $EM_Event->add_error( sprintf(__("%s are mandatory.", 'events-manager'), __('post code','events-manager') ) );
it shows all the time “post code are mandatory”
what ever is filled out or empty in the fieldFor the moment I have this function which works fine.
add_filter( 'em_event_validate', 'my_em_event_validate', 10, 2 );
function my_em_event_validate( $is_valid, $EM_Event ) {
if ( $is_valid ) {
if( empty($EM_Event->post_content ) ){
$is_valid = false;
$EM_Event->add_error( sprintf(("%s are mandatory.", 'events-manager'), ('details (descriptions) of the event','events-manager') ) );
}
if( strlen($EM_Event->post_content) >=1 && str_word_count($EM_Event->post_content) <= 30 ){ $is_valid = false; $EM_Event->add_error( sprintf(("%s are too short (minimum 30 words).", 'events-manager'), ('etails (descriptions) of the event','events-manager') ) );
}
}
return $is_valid;
}Already when I add something like:
if( empty($EM_Event->location_postcode ) ){
$is_valid = false;
$EM_Event->add_error( sprintf(("%s are mandatory.", 'events-manager'), ('post code','events-manager') ) );it shows all the time “post code are mandatory”
what ever is filled in the fieldThank you very much joneiseman your snipplet works very fine
Nobody any idea ?
This would me interest too. Specially for a additional #ATT text input field
Forum: Plugins
In reply to: [Realtyna Organic IDX plugin + WPL Real Estate] Conflict with DiviHad a new update of DIVI this morning (3.0.60) seems to work again together with WPL Real Estate
Forum: Plugins
In reply to: [Realtyna Organic IDX plugin + WPL Real Estate] Conflict with DiviI have installed WPL on a test site since some weeks together with DIVI. Since updating to WPL 3.5.0 it is impossible to get work both together. When plugin WPL is activated on every page it is impossible to use Visual builder in the back office. On front all Javascripts of DIVI d’ont work anymore. Hope you will fix the bug soon