FelipeP5703
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 |
---|---|---|---|---|---|
Permission Denied on Edit Form
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: Solution: |
2 | 8 | hace 5 años, 6 meses | ||
Php function for limiting size of images uploaded NOT working
1
2
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: I would like to use the Forms API to validate each image that is uploaded in a single or repeating custom field. It doesn't seem to be working, in the logs I see a PHP notice about trying to get property of a non-object. Solution: Make sure the User has permission to publish Media if you are using Toolset Access Control. Make sure the Form's markup structure doesn't include any extra closing div tags. Use the following custom code to validate a repeating image field: add_filter('cred_form_ajax_upload_validate','rep_img_size_validation',10,2); function rep_img_size_validation($error_fields, $form_data) { error_log(' validation script is invoked '); $forms = array( 29, 49 ); $size = 1024000; $field_slug = 'your-repeating-image-slug'; $error_msg = 'Maximum size is 1MB, please try again.'; //field data are field values and errors list($fields,$errors)=$error_fields; //validate if specific form if (in_array( $form_data['id'], $forms ) && isset($fields['wpcf-' . $field_slug]['field_data']['size'])) { //check if this field instance img is bigger than $size (bytes) $instance_size = array_pop($fields['wpcf-' . $field_slug]['field_data']['size']); if ( $instance_size > $size ) { //display error message for this field instance $errors['wpcf-' . $field_slug] = $error_msg; } } //return result return array($fields,$errors); } To validate a single field, copy the code above and make the following adjustments: // for repeating images // $instance_size = array_pop($fields['wpcf-' . $field_slug]['field_data']['size']); // for single images $instance_size = $fields['wpcf-' . $field_slug]['field_data']['size']; Relevant Documentation: |
2 | 20 | hace 5 años, 6 meses | ||
Automatically logout user when changing password or email
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 3 | hace 5 años, 6 meses | ||
Custom post not assigned to User (Author) automatically
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 7 | hace 5 años, 6 meses | ||
Permission denied for editing forms
1
2
Iniciado por: FelipeP5703 en: Toolset Professional Support |
4 | 31 | hace 5 años, 6 meses | ||
Logout Link with Toolset
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: Solution: Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-logout-link |
2 | 3 | hace 5 años, 6 meses | ||
Conditional Output for custom search is not working
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: I have conditional HTML in place in a custom search View's filter area, but it doesn't seem to be working as expected. Solution: Conditional HTML is designed to respond to the properties of posts, not selected search filters. Using conditional HTML to respond to selected filters is not going to work consistently, even if you find certain edge cases where it appears to be working briefly. If you'd like to see more filter dependency features built into the system, I encourage you to submit your request here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/ |
2 | 9 | hace 5 años, 6 meses | ||
Custom Search Result not working properly
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 9 | hace 5 años, 6 meses | ||
Multiple Views doesn’t work properly
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: I created two views. One only shows the results, and the other is for search and show results. When I add both of them to the same page, the custom search doesn't work and the site breaks. The button doesn't work either. Solution: It is a compatibility problem with custom theme: You can locate the problem by this: Relevant Documentation: |
2 | 15 | hace 5 años, 6 meses | ||
Apply conditions in Toolset Forms
Iniciado por: FelipeP5703
en: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | hace 5 años, 7 meses | ||
Split: set default select option for custom search filter
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 6 | hace 5 años, 7 meses | ||
Repeatable fields are not showing on search parameters
Iniciado por: FelipeP5703 en: Toolset Professional Support |
3 | 11 | hace 5 años, 7 meses | ||
Conditional Display in front-end when option selected
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 13 | hace 5 años, 7 meses | ||
Split: Whatsapp link (Click to chat) shortcode – hide empty elementor widget content
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 6 | hace 5 años, 7 meses | ||
Whatsapp link (Click to chat) shortcode
1
2
Iniciado por: FelipeP5703 en: Toolset Professional Support |
2 | 17 | hace 5 años, 8 meses |