julieP
Fils de soutien créés au cours des 30 derniers jours : 2
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Enforce strong passwords
Commencé par : julieP
in: Toolset Professional Support
Problem: The issue here is that the customer wanted to enforce a strong password on users who are registering for their site. A feature request to implement these strength meters has been submitted to our developers. |
2 | 5 | Il y a 6 années et 3 mois | ||
Login Form Field Label Text
Commencé par : julieP
in: Toolset Professional Support
Problem: The issue here is that the user created a manual login form <form name="loginform" id="loginform" action="https://mydomain.com/wp-login.php" method="post"> <div class="wp-success"></div> <p class="login-username"> <label for="user_login">Your Email Address</label> <input type="text" name="log" id="user_login" class="input" value="" size="20" /> </p> <p class="login-password"> <label for="user_pass">Your Password</label> <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /> </p> <p class="login-submit"> <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" /> <input type="hidden" name="redirect_to" value="https://mydomain.com/my-account/" /> </p> <input type="hidden" name="wpv_login_form" value="on"/><input type="hidden" name="wpv_login_form_redirect_on_fail" value="https://mydomain.com/incorrect-password/" /> </form> They wanted to know if this code was safe to use. Solution: Yes this is ok, the authentications are handled by the wordpress api itself so the form just serves as an interface to that API. There shouldn't be any security issues. |
2 | 3 | Il y a 6 années et 3 mois | ||
Image Size Validation for Multiple Images on Form
Commencé par : julieP
in: Toolset Professional Support
Problem: The issue here is that the user wanted to Validate the image field sizes. Solution: The correct solution for this can be seen below. add_action('cred_form_ajax_upload_validate', 'toolset_max_img_size_restriction_521_529_528',10,2); function toolset_max_img_size_restriction_521_529_528($error_fields, $form_data) { $forms = array( 521,529,528 ); // Field data are field values and errors list($fields,$errors)=$error_fields; if (in_array($form_data['id'], $forms ) && isset($_FILES['wpcf-image-1']['tmp_name']) ) { $target_max_width = 300; $target_max_height = 300; $check = getimagesize( $_FILES['wpcf-image-1']['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_max_width || $height > $target_max_height ) { $errors['image-1'] = __("Your image exceeds the permissible dimensions. Please resize and try again."); } } } $field_data = array($fields,$errors); //return result return $field_data; } |
2 | 3 | Il y a 6 années et 3 mois | ||
Temporary patch for backslashed quotes (JS content) & Forms version 2.0.2.2?
Commencé par : julieP
in: Toolset Professional Support
Problem: Can the temporary patch for Forms be applied to 2.0.2.2? Solution: Yes, the patch can be applied to Forms 2.0.2.2. |
2 | 4 | Il y a 6 années et 3 mois | ||
How do I populate user field with permalink?
Commencé par : julieP
in: Toolset Professional Support
Problem: I have a Form that is used to create a new post. I also have a custom field on the User's profile that will be used to hold a URL. I would like to take the permalink URL of the new post and save it in the User URL field using the Forms API cred_submit_complete. Solution: Use update_user_meta to set the value of a User custom field. Use get_permalink to get the permalink of the new post that was just created. add_action('cred_submit_complete', 'after_save_data_form_529',10,2); function after_save_data_form_529($post_id, $form_data) { if ($form_data['id']==529) { $user_id = get_current_user_id(); $permalink = get_permalink($post_id); update_user_meta( $user_id, 'wpcf-post-slug', $permalink); } } Relevant Documentation: |
2 | 5 | Il y a 6 années et 3 mois | ||
Which CRED API hooks execute last?
1
2
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: cred_success_redirect Relevant Documentation: |
2 | 21 | Il y a 6 années et 4 mois | ||
Check Logged In Status of other users
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: |
2 | 5 | Il y a 6 années et 4 mois | ||
Customize Maps on Forms
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: |
2 | 7 | Il y a 6 années et 4 mois | ||
Customising toolset-google-map-container class on Post Forms
Commencé par : julieP
in: Toolset Professional Support
Problem: I would like to customize the address custom field display on a Form. I would like to remove the map and hide the "Show / Hide coordinates" and "Use my location" links. Solution: There is no API to turn these items off, so you would have to use custom CSS to hide them. .toolset-google-map-inputs-container { font-size: 0; } .toolset-google-map-inputs-container input { font-size: 12px; } |
2 | 5 | Il y a 6 années et 4 mois | ||
Class 'Litespeed_Cache_ESI' not found errors in log
Commencé par : julieP in: Toolset Professional Support |
2 | 7 | Il y a 6 années et 4 mois | ||
How to customize use my location button text with maps distance filter
Commencé par : julieP
in: Toolset Professional Support
Problem: jQuery(document).ready(function($){ $('.js-toolset-maps-distance-current-location').val('Use my location'); }); Relevant Documentation: |
2 | 5 | Il y a 6 années et 4 mois | ||
How to set default distance and unit using toolset maps distance filter
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: For example: [wpv-control-distance default_distance="20" default_unit="mi" compare_field="town" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit" inputs_placeholder="Within 20 miles of %%CENTER%%"] Relevant Documentation: |
3 | 4 | Il y a 6 années et 4 mois | ||
How do I customise the placeholder text Enter a location inside the toolset-maps-distance-center input field
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: jQuery(document).ready(function(){ $('#toolset-maps-distance-center').attr('placeholder',' add your place holder text'); }); Relevant Documentation: |
2 | 3 | Il y a 6 années et 4 mois | ||
Customising Search Form Using Maps Distance Filter (Q1)
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: #toolset-maps-distance { display: none !important; } Currently there is no native feature available to change the mi option value but as a workaround you can use the following javascript code and add it to JS box and try to resolve your issue. jQuery(document).ready(function($){ $('#toolset-maps-distance option[value=mi]').text('Miles') }); Relevant Documentation: |
2 | 6 | Il y a 6 années et 4 mois | ||
Server Side Google Maps API Key
Commencé par : julieP
in: Toolset Professional Support
Problem: Solution: The intention is that you create the main API key with URL referrer restrictions for your site (for exposed front-end requests) and the second key with no such restrictions which we will use for the unexposed server-based requests. If your site has a fixed IP address you could add IP-based restrictions to the second key. Relevant Documentation: |
2 | 3 | Il y a 6 années et 4 mois |