Kiran
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.September 27, 2019 at 12:19 pm in reply to: Marker Cluster does not work with OpenStreetMap? #510543
Hi Alexander,
Sorry for late reply. I checked but can’t replicate any issue.
Please provide us screenshot or video capture so it can help us to replicate issue.
Regards,
KiranHi There,
Issue has been fixed.
There are two things found that causing issue.
– There are some invalid menu setup found at Appearance > Menus. One menu has invalid menu item saved which does not exists. Another menu does not have any menu items selected to show.
– In Listimia theme file wp-content\themes\listimia\inc\setup.php line no. 206 it has used$title = __( 'Post Type Archives: ', 'listimia' ) . '<span>' . post_type_archive_title() . '</span>';to get the title which is incorrect. Correct sentence is
$title = __( 'Post Type Archives: ', 'listimia' ) . '<span>' . post_type_archive_title( '', false ) . '</span>';Let us know.
Thanks,
KiranHi Rodney,
We just pass data to json just like WordPress default posts do. Do you see similar issue with WordPress posts API. Please try that and let us know how it goes.
Kiran
Hi Peter,
Please send us login url to your site to check more.
Kiran
Hi,
Please try again after clearing your browser cache.
There are two calendars on page, i have fixed this conflict of unique calendar element.
Kiran
September 27, 2019 at 8:09 am in reply to: Keep Address Fields but Not Limit Search Results by Distance #510506Hi N,
At the moment it is not possible to use address fields and disable filter by location.
Here are few options that you can achieve what you asked:
– Create new custom fields(Address, Country, Region, City, Zip etc) with different field keys.
– If you are using only one CPT then you can increase distance radius to larger value ex: 10000 so it will cover all the results.
– Filter SQL query and increase distance value applied in SQL query where clause.Let us know.
Kiran
September 27, 2019 at 7:57 am in reply to: Imported languages via csv are not automatically linked to original language. #510505Hi Mark,
Are you using WPML plugin or any other plugin for multi languages? This happened with importing new listings or with edit the existing listings via import?
Please provide site link & admin credentials to look there.
Let us know.
Thanks,
KiranSeptember 27, 2019 at 7:51 am in reply to: Script tags in custom field not working after update #510503Hi Scott,
Please try listing re-save again with script tags. The listing which saved after current release may have stripped tags, so those listings needs to re-save again with script tags.
Let us know.
Kiran
Hi David,
Issue has been fixed and patch applied on your site.
Please check & let us know.
Regards,
KiranSeptember 26, 2019 at 12:42 pm in reply to: Script tags in custom field not working after update #510337Hi Scott,
Please use following PHP code snippet, it will skip field value sensitization.
/** * Skip sanitize field values. * * Skipping sanitize values may result in cross-site scripting (XSS) attack. */ function gd_snippet_skip_sanitize_field( $value, $gd_post, $custom_field, $post_id, $post, $update ) { $value = $gd_post[ $custom_field->htmlvar_name ]; if ( isset( $custom_field->data_type ) && ( $custom_field->data_type == 'DECIMAL' || $custom_field->data_type == 'INT' ) && $value === '' ) { $value = null; } return $value; } add_filter( 'geodir_custom_field_value_email', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_html', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_phone', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_text', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_textarea', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_url', 'gd_snippet_skip_sanitize_field', 11, 6 );Let us know how it goes.
Regards,
KiranSeptember 26, 2019 at 12:39 pm in reply to: Can't put iframe in HTML fields in latest update #510336Hi D K,
In recent version we have escaped custom field values to prevent XSS (Cross-site scripting) attacks on website.
Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications. XSS enables attackers to inject client-side scripts into web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same-origin policy.
See https://developer.wordpress.org/plugins/security/securing-input/ & https://developer.wordpress.org/plugins/security/securing-output/
If you still want to you unrestricted tags in fields then you can use following PHP snippet. It will skip field value sensitization.
/** * Skip sanitize field values. * * Skipping sanitize values may result in cross-site scripting (XSS) attack. */ function gd_snippet_skip_sanitize_field( $value, $gd_post, $custom_field, $post_id, $post, $update ) { $value = $gd_post[ $custom_field->htmlvar_name ]; if ( isset( $custom_field->data_type ) && ( $custom_field->data_type == 'DECIMAL' || $custom_field->data_type == 'INT' ) && $value === '' ) { $value = null; } return $value; } add_filter( 'geodir_custom_field_value_email', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_html', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_phone', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_text', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_textarea', 'gd_snippet_skip_sanitize_field', 11, 6 ); add_filter( 'geodir_custom_field_value_url', 'gd_snippet_skip_sanitize_field', 11, 6 );Let us know.
Best Regards,
KiranHi Scott,
The issue has been fixed.
There was a bug in your child theme. In /wp-content/themes/listimia-child/shortcodes/tabs_header.php it has used following code to show that “Save Shop” button.
<a class="geodir-addtofav-icon" href="javascript:void(0);" onclick="if (!window.__cfRLUnblockHandlers) return false; javascript:gd_fav_save(<?php echo $post->ID; ?>)" title="Add to Favorites"><i class="fas fa-heart"></i> <span class="geodir-fav-text">Save Shop</span></a>In this code you have used
if (!window.__cfRLUnblockHandlers) return false;which preventing to execute button action.
I have removed that line and now favorite/unfavorite is working fine.
Let us know.
Regards,
KiranThis reply has been marked as private.Hi Rodney,
This is an android code error.
Please try one of following solutions which has similar issue:
– https://stackoverflow.com/questions/10267910/jsonexception-value-of-type-java-lang-string-cannot-be-converted-to-jsonobject
– https://stackoverflow.com/questions/12384717/how-to-get-facebook-user-photo-albums-using-graph-api/12385652
– https://www.e-learn.cn/en/node/108880Let us know.
Thanks,
Kiran -
AuthorPosts