selmoK
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 |
---|---|---|---|---|---|
[wpv-post-link] not showing
Started by: selmoK in: Toolset Professional Support |
2 | 2 | 6 years, 5 months ago | ||
View Search listing all results
Started by: selmoK in: Toolset Professional Support |
2 | 12 | 6 years, 6 months ago | ||
Translate “Use my location” message on cred form
Started by: selmoK
in: Toolset Professional Support
Problem: I need to translate "Use my location" message on cred form, when i use an address field with google map. I don´t use WPML. Can i use a code in functions.php to translate Solution: You can translate the "Use my location" message with WordPress built-in filter hook gettext, for example, add below codes into your theme file functions.php: add_filter( 'gettext', 'my_text_func', 20, 3 ); /** * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function my_text_func( $translated_text, $text, $domain ) { if($text == 'Use my location' && $domain = 'toolset-maps'){ $translated_text = "Use my location in your language"; } return $translated_text; } Relevant Documentation: https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext |
2 | 3 | 6 years, 6 months ago | ||
Image update after CRED editing
Started by: selmoK
in: Toolset Professional Support
Problem: Flush post cache, after submit CRED form for editing post. Solution: Workaround from the client: Put wp_cache_flush() in the cred_form_validate action hook and it worked, clearing the cache before submitting the new images. Relevant Documentation: https://developer.wordpress.org/reference/functions/wp_cache_flush/ |
2 | 6 | 6 years, 7 months ago | ||
I need help with limitting posts from a user role
Started by: selmoK
in: Toolset Professional Support
Problem: Create a custom function to count user's posts, and use it in the [wpv-conditional] shortcode. Solution: 1) Edit the file functions.php, add below codes: function my_u_post_content() { $user_post_count = count( get_posts( array( 'post_type' => 'anuncio-gratuito', 'author' => get_current_user_id(), ) ) ); return $user_post_count; } 2) Dashboard-> Toolset-> Settings-> Conteúdo de front-end 3) Create a page to test the result: [wpv-conditional if="( my_u_post_content() lt '20' )" ] <label> test </label> [/wpv-conditional] [wpv-conditional if="( my_u_post_content() gt '20')" ] <label> test 2</label> [/wpv-conditional] Relevant Documentation: |
2 | 9 | 6 years, 7 months ago | ||
Using slider
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: I managed to create a flexslider plugin that should be able to help your. Download and install the plugin in the link below. https://drive.google.com/file/d/1CFU2_oBqe9PJBks8cT1VqMND8-ytDdVE/view?usp=sharing Then create a content template for your post and add the following. <div class="flexslider"> <ul class="slides"> [wpv-for-each field="wpcf-image_1"] <li>[types field="image_1" size="medium" align="none" resize="pad" padding_color="#FFF"][/types]</li> [/wpv-for-each] </ul> </div> After doing this then you will need to add the script for it to work. Add this to the js section of the content template. jQuery(window).load(function() { jQuery('.flexslider').flexslider(); }); Relevant Documentation: |
2 | 4 | 6 years, 7 months ago | ||
Fill a CRED email field with an email from another post
Started by: selmoK in: Toolset Professional Support |
2 | 3 | 6 years, 7 months ago | ||
Login form not appearing
Started by: selmoK
in: Toolset Professional Support
Problem: I am trying to implement a login form on my site. I followed the link When i configured the login form layout to show for not logged users it doesn´t appear. I tried also create a page with the only shortcode in it: [wpv-login-form] and, when i show the page even if i am disconnected, it stays blank. Solution: It might be a cache problem, I did below modification in your website: a) Open above URL, b) click button "Edit with Layouts" c) Edit the "Visual Editor cell", did not change anything, click tab "HTML", save Then logout, and test the page in front-end: Relevant Documentation: |
2 | 11 | 6 years, 8 months ago | ||
User group field is not showing
Started by: selmoK in: Toolset Professional Support |
2 | 3 | 6 years, 8 months ago | ||
Force unique field on CRED post
Started by: selmoK
in: Toolset Professional Support
Problem: When user submits the CRED form for creating post, I need the field wpcf-anuncio-gratuito to be unique. Solution: You can get the field "my_field" value submitted by user: Then use it to query database, check if there is any existed item If there is existed item, return an error Relevant Documentation: |
2 | 10 | 6 years, 8 months ago | ||
Include text field from a select box field on Relevanssi search
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Displaying images on a slider
Started by: selmoK
in: Toolset Professional Support
Problem: I need the same as described on https://toolset.com/forums/topic/how-to-display-the-pics-i-uploaded-as-a-slider/ to show an image repeatable field on slides on a custom layout. But i am using wordpress.com and i can´t upload files directly, i need to install a plugin instead. Solution: As you can see, it is not built-in feature of Views plugin, it needs custom codes. Code Snippets For those Flex slider JS files and CSS files, you can use files from other plugins, for example: https://wordpress.org/plugins/search/flex+slider/ Or you can copy the code of the two files directly to the CSS and JS sections of layouts. Relevant Documentation: |
2 | 4 | 6 years, 9 months ago | ||
Translate address field
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: |
2 | 5 | 6 years, 9 months ago | ||
How to translate CRED button without using WPML
Started by: selmoK
in: Toolset Professional Support
Problem: Solution: This simple code snippet (added to the theme's functions.php file or using a plugin such as Code Snippets) can be used to translate the text: add_filter( 'gettext', 'tssupp_custom_translate', 20, 3 ); /** * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function tssupp_custom_translate( $translated_text, $text, $domain ) { if ( $text == 'Add new' && $domain = 'wpv-views' ){ $translated_text = "translation"; } return $translated_text; } |
2 | 5 | 6 years, 9 months ago | ||
jQuery.mask() on a CRED field
Started by: selmoK
in: Toolset Professional Support
Problem: I would like to apply masking to a CRED form field using jQuery.mask(), but it doesn't seem to do anything. Solution: - You must use the 'jQuery' namespace instead of '$' in any JavaScript code. Replace '$' with 'jQuery' everywhere in your JavaScript. - You must wrap your JavaScript code in an event listener callback so it is executed after jQuery and CRED have both been initialized. - The attribute "id" is not a valid attribute on a cred_field shortcode, so the ID "tel" selector is not going to work. You can use a class instead, something like 'js-cred-tel', and then modify your jQuery code to use that selector. Example: jQuery(window).bind('load', function(){ jQuery(".js-cred-tel").mask("(99) 9999?9-9999"); jQuery(".js-cred-tel").on("blur", function() { var last = jQuery(this).val().substr( jQuery(this).val().indexOf("-") + 1 ); if( last.length == 3 ) { var move = jQuery(this).val().substr( jQuery(this).val().indexOf("-") - 1, 1 ); var lastfour = move + last; var first = jQuery(this).val().substr( 0, 9 ); jQuery(this).val( first + '-' + lastfour ); } }); }); Relevant Documentation: |
2 | 3 | 6 years, 9 months ago |