Steve
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
add cred field to uploaded file name
Started by: Steve
in: Toolset Professional Support
Problem: We do employ several views so the jurors can view the application information as well as the uploaded information. Where the pre-pending of the name idea came up is for two situations #1 often the jurors request a zip file of all the images so they can view them locally. Alot of people will view them in Adobe bridge so they can assign star ratings to them and or sort them into folders #2 after the selections are made we attempt to clear the files out of the uploads folder- and so it would be easy to look at a folder and select files starting with a name as a way to sort them from other files uploaded during that period. There could be several hundred such applications for an average call X all the various sizes of images wordpress creates. So theres a lot of files to find. Also if it helps we'd get the name from the cred form itsself- not from the wordpress user record. Solution: There isn't such a built-in feature within Toolset plugins. it needs custom codes, for example: https://toolset.com/forums/topic/add-cred-field-to-uploaded-file-name/#post-958679 Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
3 | 6 | 6 years, 4 months ago | ||
taxonomy filter
Started by: Steve in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago | ||
Enlarge middle item of a carousel slider View
Started by: Steve
in: Toolset Professional Support
Problem: I would like to create a carousel-style slider View that includes 3 posts per page. I would like to add a specific class to the middle item to make it appear larger than the other 2 items on the page. Solution: Create a View with pagination, that shows 3 posts per page. You'll be able to use the Loop attributes item, index, wrap, pad, and pad-last to apply different styles to each of the 3 posts in a single page. Something like this, where the class is "middle-element": [wpv-layout-start] [wpv-items-found] <wpv-loop wrap="3" pad="true"> [wpv-item index=2] <div class="middle-element">Post content here</div> [wpv-item index=other] <div>Post content here</div> [wpv-item index=pad] <div class="middle-element">Post content here</div> [wpv-item index=pad-last] <div></div> </wpv-loop> [/wpv-items-found] [wpv-no-items-found][wpml-string context="wpv-views"]<strong>Nothing to display</strong>[/wpml-string][/wpv-no-items-found] [wpv-layout-end] Relevant Documentation: |
2 | 6 | 6 years, 7 months ago | ||
Image uploaded via cred has invalid url
Started by: Steve
in: Toolset Professional Support
Problem: The URLs without https/http protocol + domain name in custom image field Logo Please enter a valid URL address pointing to the image file. Solution: In custom image field created with Types plugin, it accepts only the complete URL format as the field value, for example: https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png With the https/http protocol + domain name + path + file name, but in your screenshot: https://cdn.toolset.com/wp-content/uploads/2018/03/629256-2018_03_28_10_27_39.png?x93925 The https/http protocol + domain name are missing, so it will trigger the warning message you mentioned above: Logo Please enter a valid URL address pointing to the image file. And if you are using CRED form to create the post and setup the image field values, CRED form should not produce such kind of URLs you mentioned above, if the problem still persists, please check the compatibility problem: Deactivate other plugins and switch to wordpress default theme, and test again Relevant Documentation: |
3 | 8 | 6 years, 8 months ago | ||
CRED Commerce workflow – only purchase if checkbox is checked
Started by: Steve
in: Toolset Professional Support
Problem: I have a CRED Commerce form that allows Users to pay a fee and create a post. In some cases, the fee is not required. I would like to use a checkbox in the form to indicate whether or not the fee should be charged. If the checkbox is not checked, the User should not be charged, but the post should still be created. If the checkbox is checked, the User should have the fee product added to their cart with CRED Commerce, and the payment workflow in CRED Commerce should be followed normally. Solution: [cred_generic_field field='addfee' type='checkbox' class='' urlparam=''] { "required":0, "validate_format":0, "checked":0, "default":"1", "label":"Add Handling Fee" } [/cred_generic_field] - Add the following custom code to your child theme's functions.php file: add_action( 'cred_commerce_before_add_to_cart', 'ts_only_buy_if_checked', 10, 2 ); function ts_only_buy_if_checked( $form_id, $post_id ) { $forms = array( 123, 456 ); if( in_array( $form_id, $forms) ) { if( !isset( $_POST['addfee'] ) || $_POST['addfee'] != 1 ) { wp_redirect( 'http://yoursite.com/somepage' ); exit(); } } } Replace 123, 456 with a comma-separated list of any CRED form IDs where you want to apply this modification. Change the URL to redirect the User to some other destination on your site. You have access to the ID of the post that was added or edited in the $post_id variable. Now if the checkbox is not checked, the User will be redirected without placing the item in their cart. You can call get_permalink using the $post_id parameter in your callback to redirect to the post that was created by CRED. Here is the updated redirect code: ... wp_redirect( get_permalink( $post_id ) ); ... Relevant Documentation: |
3 | 8 | 6 years, 10 months ago | ||
Cred commerce
Started by: Steve
in: Toolset Professional Support
Problem: The issue here is that the user wanted too use a multi select field to offer different membership levels With CRED commerce. Solution: Unfortunately only a simple select field will work with CRED Commerce and users can only select one option. |
2 | 9 | 6 years, 10 months ago | ||
Views conflict with woocommerce ?
Started by: Steve
in: Toolset Professional Support
Problem: This site as of a couple of days ago displays this error where ever a view is inserted Warning: Missing argument 2 for WC_Template_Loader::unsupported_theme_title_filter() in /home/content/15/2144315/html/wp/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php on line 380 I've disabled themes and plugins and it comes and goes as views is activated Can you be of any help in resolving this Solution: I can duplicate same problem with the Genesis theme, it seems to be a bug of Views plugin $out .= apply_filters('the_title', $post->post_title); More help: https://developer.wordpress.org/reference/hooks/the_title/ The filter hook "the_title" requires two parameter: Relevant Documentation: |
4 | 15 | 6 years, 10 months ago |