Kiran
Forum Replies Created
-
AuthorPosts
-
Hi,
Reviews only duplicated/synchronized if “sync comments” option is ticked. This option available for both duplicate and independent translation on backend edit listing page.
Let us know if you did this and still not working.
Kiran
Glad to hear that it worked.
Thanks
Hi Kevin,
Business hours needs to stored in specific format in database, otherwise it will not work as expected.
Ex: https://github.com/AyeCode/geodirectory/blob/master/includes/admin/dummy-data/standard_places.php#L188
https://github.com/AyeCode/geodirectory/blob/master/includes/admin/dummy-data/standard_places.php#L842Try following PHP snippet to use normal text input for business hours.
function gd_snippet_190802_cfi_business_hours( $html, $cf ) { $label = __( $cf['frontend_title'], 'geodirectory' ); $description = __( $cf['desc'], 'geodirectory' ); $value = geodir_get_cf_value( $cf ); if(isset($cf['validation_pattern']) && $cf['validation_pattern']){ $validation = ' pattern="'.$cf['validation_pattern'].'" '; }else{$validation='';} // validation message if(isset($cf['validation_msg']) && $cf['validation_msg']){ $validation_msg = 'title="'.$cf['validation_msg'].'"'; }else{$validation_msg='';} if ( ! empty( $value ) ) { $value = stripslashes_deep( $value ); } ob_start(); ?> <div id="<?php echo $cf['name'];?>_row" class="<?php if ($cf['is_required']) echo 'required_field';?> geodir_form_row clearfix gd-fieldset-details"> <label for="<?php echo esc_attr( $cf['name'] ); ?>"> <?php echo $label; ?> <?php if ($cf['is_required']) echo '<span>*</span>';?> </label> <input field_type="text" name="<?php echo $cf['name'];?>" id="<?php echo $cf['name'];?>" placeholder="<?php echo esc_attr( '["Mo 09:00-17:00","Tu 09:00-17:00","We 09:00-17:00"],["UTC":"+0"]' ); ?>" value="<?php echo esc_attr( $value ); ?>" type="text" class="geodir_textfield" <?php echo $validation;echo $validation_msg;?> /> <span class="geodir_message_note"><?php echo $description; ?></span> <?php if ($cf['is_required']) { ?> <span class="geodir_message_error"><?php _e($cf['required_msg'], 'geodirectory'); ?></span> <?php } ?> </div> <?php $html = ob_get_clean(); return $html; } add_filter( 'geodir_custom_field_input_business_hours', 'gd_snippet_190802_cfi_business_hours', 20, 2 );Kiran
Hi,
It looks like Google has recently done changes in their API services, so we have updated map key setup for the GeoDirectory plugin. I have applied patch on your site too.
API key is easily viewable in page view source, so some enables HTTP referrer restrictions in API key setup to prevent use of API key on other domains. Now the issue is if HTTP referrer restrictions is enabled then Google API services like Geocode & Timezone are not working. API keys with referer restrictions cannot be used with this Geocode API & Timezone API.
To overcome this issue we decided to provide one more option to use another API key(only for Geocode API & Timezone API) without HTTP referrer restrictions. This key is not accessible in view page source, because it is used in only backend side. If main API key has enabled HTTP referrer restrictions then it must required to use other API key without HTTP referrer restrictions and with services Geocode API & Timezone API.
> Following API Services should be enabled for the MAIN API key(with OR without “HTTP referrer restrictions”).
– Maps JavaScript API
– Places API
– Geocoding API
– Geolocation API
– Directions API
– Distance Matrix API
– Maps Static API
– Street View Static API
– Maps Embed API
– Maps Elevation API> Following API Services must be enabled for the OTHER API key(without HTTP referrer restrictions). No need to use OTHER API key if HTTP referrer restrictions is disabled for the MAIN API key.
– Geocoding API
– Time Zone APIRegards,
KiranWill be happy to assist you more. Just let us know if you need help more in this.
Kiran
Hi Vivek,
I have done changes in following two files.
– \geodir_buddypress\includes\class-geodir-buddypress.php
– \geodir_buddypress\public\class-geodir-buddypress-public.phpThese changes are also included in plugin so don’t worry about future updates.
Kiran
Hi Matthew,
If CPT has review with stars options is enabled then comments submitted without reviews do not included in reviews total.
Use following PHP snippet to achieve what you requested.
/** * Count comment without stars in review total. */ function gd_snippet_190801_get_comments_number( $count, $post_id ) { global $post; if ( ! empty( $post ) && (int) $post->ID == (int) $post_id && geodir_is_gd_post_type( get_post_type( $post_id ) ) && geodir_is_page( 'detail' ) ) { $count = absint( $post->comment_count ); } return $count; } add_filter( 'get_comments_number', 'gd_snippet_190801_get_comments_number' , 20, 2 );Regards,
KiranHi Hui,
Where you put this custom code shown in attachment? In new release we have fixed issue “Jupiter theme GD page sidebars not working”. See https://github.com/AyeCode/geodirectory/commit/44b92e508dd7c50b73e5855b63775699601f3449
Now sidebar is managed from search page layout section from backend. This was a bug that we fixed in new release.To show search form in sidebar of search do:
– Update GeoDirectory addons
– Create Jupiter sidebar or you existing one(widget section to show on search page)
– Assign GD search widget to this sidebar
– go to backend edit search page > select layout to “Left sidebar” & sidebar to “Sidebar created for search page”Let us know how it goes.
Thanks,
KiranHi,
1) How review uploaded images are shown? For each individual review? Or all together in a single location?
Each review shows images(with lightbox popup) which are uploaded for with that review(see attachment).
—
2) How multilanguage works with reviews and ratings? Are all reviews and ratings shown in all languages? Or only in the language of the site when they were entered? What if the listing is still duplicated in all languages by WPML and not yet edited independently?
WPML has setting to duplicate comments(sync comments on duplicates). If this enabled then comments submitted on in one language will also synchronized with other languages. If not enabled then comments will be displayed only in particular language.
Regards,
KiranThis reply has been marked as private.August 1, 2019 at 6:40 am in reply to: How do I synchronize my location search if I enter different languages? #500682Hi Alexander,
We implements feature based on priority if more customers requests similar feature then we will surly implement.
Thanks,
KiranHi,
2) I also tried with “Users have to register and login to post comments” in WP Options. Then a non logged user can not post comments without login, but he can not either view existing ratings neither comments posted by other users. Is there some way to allow non logged users to view ratings and reviews even if they can not post their comments until login in?
It already working as expected. If “Users must be registered and logged in to comment” is ticked the it still shows reviews(see screenshot). Do you have any commented related plugin installed which preventing displaying comments to non logged users? Please provide listing url where reviews tab not showing comments for non logged users.
—
3) Disable review stars without disabling comments also disables loading images in comments although they are enabled in multiratings (screenshot attached). Is this the normal behaviour?
Yes, this is normal behaviour. If “Disable review stars without disabling comments.” is ticked then reviews will treated as a normal comments so no stars & images allowed.
—
4) When setting up a rating categories show in all languages (screenshot attached). Is this the normal behaviour?
Yes, this is normal behaviour as well. Rating style is not translatable, so it provides option to choose languages within all languages.
Regards,
KiranHi Vivek,
Please check and let us know.
Kiran
This reply has been marked as private. -
AuthorPosts