zacharyL
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Need Help Implementing WooCommerce Price Range Filters to Views Archive
Iniciado por: zacharyL en: Toolset Professional Support |
|
2 | 6 | hace 6 años, 6 meses | |
Toolset Maps Presenting White Page with Errors in a Toolset Single Post Layout
Iniciado por: zacharyL
en: Toolset Professional Support
Problem: The issue here is that Toolset Maps was creating errors on the customer's site. Solution: In this user's case they were using an outdated version of our maps plugin and the recommendation was to update to the latest available version. |
|
2 | 9 | hace 6 años, 6 meses | |
What’s up with .et-boc and .et_builder_inner_content?
Iniciado por: zacharyL
en: Toolset Professional Support
Problem: Solution: After many user complaints about side-effects it is expected to be removed in subsequent Divi versions. |
|
2 | 7 | hace 6 años, 6 meses | |
Having Problem with Restricting File Types on File Upload CRED Field
Iniciado por: zacharyL
en: Toolset Professional Support
Problem: I would like to enforce file type restrictions on a file upload field in a Form, but the cred_form_validate hook does not provide any information about the file uploads. Solution: Use the cred_file_upload_disable_progress_bar hook to inspect AJAX file uploads. Inspect the $_FILES superglobal to retrieve file metadata. //*Validate for PDF on File Upload add_filter('cred_form_ajax_upload_validate','cred_filetype_validation',10,2); function cred_filetype_validation($error_fields, $form_data) { $file_types = array('application/pdf','image/jpeg','image/png','image/tiff','image/gif'); // Field data are field values and errors list($fields,$errors)=$error_fields; //Run the rest of code for this CRED ONLY and IF the file is upload type and size are set. if (in_array($form_data['id'], [654,836,848]) && (isset($_FILES['wpcf-pedigree']['type']))) { //Retrieve file type $file_type_uploaded=$_FILES['wpcf-pedigree']['type']; //Validate files uploaded, make sure its PDF file type if (!in_array($file_type_uploaded, $file_types) ) { //Validation failed, // set error message per field //Remove wpcf - prefix here! $errors['pedigree']='Sorry the file you have uploaded is not of the correct type. Accepted file types: pdf, jpg, gif, png, tiff'; } } //return result return array($fields,$errors); } Relevant Documentation: |
|
2 | 6 | hace 6 años, 7 meses | |
toolset overriding divi javascript on pages using toolset layout
Iniciado por: zacharyL en: Toolset Professional Support |
2 | 2 | hace 6 años, 7 meses |