Giri
Forum Replies Created
-
AuthorPosts
-
Andi, can you post the listing page url?
You are welcome
Please check last two settings in that screenshot
Profile Visibility tab is added by BuddyPress, not whoop. So if you open a thread in buddypress forum, you might get solutions.
https://buddypress.org/support/
Thanks
Ok, Let me know how that goes 🙂
Thanks
Andi, Have you tried this setting?
I have added the code. However this is the error i’m getting.
The Google Maps API server rejected your request. This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/static_maps_backend?project=_
Please follow these steps and the map will work
https://wpgeodirectory.com/support/topic/maps-not-showing-on-detail-page/#post-223302
Jimmy, I’m off Saturday and Sunday. So sorry for the late reply.
You are having that error because I believe you are using an outdated PHP version.
Please contact your hosting support and ask your PHP version number.
If possible ask them to upgrade PHP to 5.6. WordPress recommends PHP 5.6
https://wordpress.org/about/requirements/
P.S: if you still face problem after upgrading PHP, please post your FTP, I’ll work on your problem on monday morning.
Thanks
@king, Make sure you have installed the latest whoop version 1.0.6.
By the way, If you can do it yourself here are the steps
Edit this file
/wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
Around line number 100 you will see the following code
// author page if (get_option('geodir_show_author_right_section', true)) { add_action('geodir_author_sidebar_right_inside', 'sd_map_show'); remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10); } else { add_action('geodir_author_sidebar_left_inside', 'sd_map_show'); remove_action('geodir_author_sidebar_right', 'geodir_action_author_sidebar_right', 10); }
Replace that with this code
// author page if (get_option('geodir_show_author_right_section', true)) { //add_action('geodir_author_sidebar_right_inside', 'sd_map_show'); remove_action('geodir_author_sidebar_left', 'geodir_action_author_sidebar_left', 10); } else { // add_action('geodir_author_sidebar_left_inside', 'sd_map_show'); remove_action('geodir_author_sidebar_right', 'geodir_action_author_sidebar_right', 10); }
Basically you are commenting out two lines.
Let me know if you need any further assistance
Ahh, forgot to mention that. Thanks paolo 🙂
Hello King, Paolo created a new thread for your messages. Please post your ftp details.
I’ll take a look
Thanks
Ok this is what you should do.
Edit this file:
/wp-content/themes/geodirectory_whoop/functions/general.php
Around line number 393 you will see an If block something like this
<?php if (!$hide_map) { ?>
and that if block ends BEFORE this line
<div class="geodir-listing-slider-div">
What you need to do is just replace that if block with this code
<?php if (!$hide_map) { ?> <div class="geodir-listing-map-inner-div"> <div class="geodir-listing-map-box-div"> <?php $img_map_args = array(); $address_latitude = isset($post->post_latitude) ? $post->post_latitude : ''; $address_longitude = isset($post->post_longitude) ? $post->post_longitude : ''; $mapview = isset($post->post_mapview) ? $post->post_mapview : 'ROADMAP'; $mapzoom = isset($post->post_mapzoom) ? $post->post_mapzoom : ''; if (!$mapzoom) { $mapzoom = 12; } $data = isset($post->marker_json) ? $post->marker_json : ''; $map_json = json_decode($data); $img_map_args['center'] = $address_latitude . ',' . $address_longitude; $img_map_args['zoom'] = $mapzoom; $img_map_args['maptype'] = $mapview; $img_map_args['size'] = '300x150'; $img_map_args['format'] = 'JPEG'; $img_map_args['sensor'] = false; $img_map_args['markers'] = $address_latitude . ',' . $address_longitude; $google_key = geodir_get_map_api_key(); if ($google_key) { $img_map_args['key'] = $google_key; } $img_old_url = 'http://maps.googleapis.com/maps/api/staticmap'; $img_url = esc_url(add_query_arg($img_map_args, $img_old_url)); ?> <img src="<?php echo $img_url; ?>" alt=""/> <?php $display_info = apply_filters('whoop_display_info_below_map_image', true); if ($display_info) { $html = whoop_get_address_html( $post ); if ( $post->geodir_contact ) { $html .= '<span><i class="fa fa-phone"></i><a href="tel:' . $post->geodir_contact . '" target="_blank" rel="nofollow"> ' . $post->geodir_contact . '</a></span><br>'; } if ( $post->geodir_website ) { $html .= '<span><i class="fa fa-link"></i><a href="' . $post->geodir_website . '" target="_blank" rel="nofollow">' . __( ' Website', GEODIRECTORY_FRAMEWORK ) . '</a></span><br>'; } echo $html; } ?> </div> </div> <?php } ?>
Please use FTP to replace the code. If you use wp-admin editor and if something goes wrong you will be locked out.
Let me know how that goes
Paolo said it could be IP Geo block.
So I think you need whitelist my country for a while.
Thanks
Hey Hennie,
url not working. Can you give us the correct url?
-
AuthorPosts