J S
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Integrating WooCommerce Name Your Price Extenstion into CRED
Commencé par : J S
in: Toolset Professional Support
Problem: The issue here is that the user wanted to use the Name your Price plugin with our Toolset forms when users submit their own customised payment. Solution: The solution for this can be seen below. |
2 | 4 | Il y a 6 années et 3 mois | ||
Unable to insert CRED Edit Form Button into View
Commencé par : J S in: Toolset Professional Support |
2 | 6 | Il y a 6 années et 3 mois | ||
How to make post fields required?
Commencé par : J S
in: Toolset Professional Support
Problem: The issue here is that the user wanted to make their post fields required in Toolset Forms. Solution: We actually have a hook for this and you can set the field to be required by using out validation hook to ensure that its not being submitted empty. |
2 | 2 | Il y a 6 années et 4 mois | ||
Featured Image Size Validation in Form
Commencé par : J S
in: Toolset Professional Support
Problem: I would like to validate the dimensions of the Featured Image uploaded in Forms. Solution: add_action('cred_form_ajax_upload_validate', 'toolset_min_img_size_restriction',10,2); function toolset_min_img_size_restriction($error_fields, $form_data) { $forms = array( 123 ); // Field data are field values and errors list($fields,$errors)=$error_fields; if (in_array($form_data['id'], $forms ) && isset($_FILES['wpcf-single-img']['tmp_name']) ) { $target_min_width = 300; $target_min_height = 200; $check = getimagesize( $_FILES['wpcf-single-img']['tmp_name'] ); if ( $check !== false ) { // check the dimensions only, independent of the orientation. // if the height is greater than the width, switch the values for comparison. $width = ($check[0] >= $check[1]) ? $check[0] : $check[1]; $height = ($check[1] < $check[0]) ? $check[1] : $check[0]; if ( $width < $target_min_width || $height < $target_min_height ) { $errors['single-img'] = __("Image too small", "your-theme-domain"); } } } $field_data = array($fields,$errors); //return result return $field_data; } Replace "single-img" with the slug of your custom field in all 3 places. Notice that the first two use the "wpcf-" prefix but the third does not. You should maintain this format. Replace 123 with the numeric ID of this Form, or a comma-separated list of Form IDs. Replace 300 and 200 with the desired minimum dimensions. You can modify the error message "Image too small" as well as the theme domain context for translations. Relevant Documentation: |
2 | 4 | Il y a 6 années et 4 mois | ||
Full Width Background using Generate Press Theme
Commencé par : J S
in: Toolset Professional Support
Problem: Solution: There is a minor conflict between Generate Press's CSS and the Bootstrap rules for the .container class, and you need to add a little custom CSS to fix that, as described below: https://toolset.com/forums/topic/full-width-background-using-generate-press-theme/#post-954314 |
2 | 3 | Il y a 6 années et 4 mois | ||
Limiting custom field length to display
Commencé par : J S
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply Relevant Documentation: |
2 | 3 | Il y a 6 années et 4 mois | ||
Conditional Display of Row for Gallery if More than Just Featured Image?
Commencé par : J S in: Toolset Professional Support |
2 | 4 | Il y a 6 années et 4 mois | ||
Styling the Distance Filter
Commencé par : J S
in: Toolset Professional Support
Problem: I would like to apply custom styles to the distance filter elements. Solution: Use custom CSS to apply any custom styles you want to the distance filter elements. Add the CSS to the Search and Pagination editor's JS panel. Relevant Documentation: |
2 | 4 | Il y a 6 années et 4 mois | ||
Can't install reference site as plugins are outdated…
Commencé par : J S in: Toolset Professional Support |
1 | 2 | Il y a 6 années et 5 mois | ||
Conditional Fields in CRED form based on Selected Taxonomy
Commencé par : J S
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 7 | Il y a 6 années et 8 mois | ||
File upload field not working properly on CRED form
Commencé par : J S in: Toolset Professional Support |
1 | 3 | Il y a 6 années et 8 mois | ||
How to set a new location for uploaded files/documents?
Commencé par : J S
in: Toolset Professional Support
Problem: Solution: Unfortunately this is not possible, as you know we use the default upload location for wordpress to store the uploaded files. This might be possible with some custom coding but i'm unable to provide a custom coded solution for this. What I recommend is that you contact one of our certified consultants for further assistance on a custom solution for this. |
2 | 3 | Il y a 6 années et 8 mois | ||
Initial Post Type Setup & CRED Form Options
Commencé par : J S in: Toolset Professional Support |
2 | 7 | Il y a 6 années et 8 mois | ||
Conditional Fields in form based on Selected Taxonomy
Commencé par : J S in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 8 mois | ||
Displaying uploaded files as icons with file name instead of url link
Commencé par : J S in: Toolset Professional Support |
2 | 2 | Il y a 6 années et 8 mois |