Kor
Forum Replies Created
-
AuthorPosts
-
Hi John,
Unfortunately, this requires customization which falls outside the scope of what we offer for support. I’d suggest that you find a developer that could help with this or with a 3rd party plugin.
You’re welcome.
Hi Aaron,
Do you think you can share temp admin access to your site so we can take a better look? You can post the details here using the private reply option below.
Hi Jimmy,
You can load the “Custom Fields” by selecting the “Show on listing page?” option http://prntscr.com/c3s5l1 in GD > CPT Settings (Default Place Settings) > Custom Fields > Select the field you would like to display on listing page. It should open in “_blank” by default. Could you please give it a try and let us know how it goes?
Thanks!
Hi Jimmy,
Are you looking for a developer to work this out for you? If you are, you can try this link https://wpgeodirectory.com/support/forum/geodirectory-jobs/ . If not, could you tell us a little bit more about the issue and we’ll try our best to help you out.
Thanks!
Hi Ash,
Glad that helped and thanks for sharing.
Hi Jimmy,
Please make sure all licenses are valid and activated. If an auto update doesn’t work, try deactivating the license and activating it again. If it still doesn’t work, could you please share WP temp admin access to your Website?
Thanks!
Hi Roman,
Do you mind sharing the URL of the site in question so we can take a look? Also, please share FTP and WP admin access so we can work this out for you. You can use the private reply option below.
Hi Dotty,
Sorry, I don’t think we have a recommendation for you and I’d suggest that you try searching in WordPress.org for another “Registration” plugin that would work on your Website.
Technically, it could be achieved with some custom modification to the plugin but unfortunately doing that falls outside the scope of what we offer for support. So, I’d suggest that you look for a developer that could help you with this here. https://wpgeodirectory.com/support/forum/geodirectory-jobs/
Thanks!
Hi Matt,
I’ve getting “ERROR: Invalid username.”. Could you please check on it?
Thanks
Hi Ash,
You can start making your modifications following the code below.
add_filter('geodir_custom_infowindow_html' , 'geodir_get_custom_infowindow_html', 10,3) ; function geodir_get_custom_infowindow_html($html , $postinfo_obj, $post_preview = '') { global $preview, $gd_session; $srcharr = array("'", "/", "-", '"', '\'); $replarr = array("′", "⁄", "–", "“", ''); if ($gd_session->get('listing') && isset($post_preview) && $post_preview != '') { $ID = ''; $plink = ''; if (isset($postinfo_obj->pid)) { $ID = $postinfo_obj->pid; $plink = get_permalink($ID); } $title = str_replace($srcharr, $replarr, ($postinfo_obj->post_title)); $lat = $postinfo_obj->post_latitude; $lng = $postinfo_obj->post_longitude; $address = str_replace($srcharr, $replarr, ($postinfo_obj->post_address)); $contact = str_replace($srcharr, $replarr, ($postinfo_obj->geodir_contact)); $timing = str_replace($srcharr, $replarr, ($postinfo_obj->geodir_timing)); } else { $ID = $postinfo_obj->post_id; $title = str_replace($srcharr, $replarr, htmlentities($postinfo_obj->post_title, ENT_COMPAT, 'UTF-8')); // fix by Stiofan $plink = get_permalink($ID); $lat = htmlentities(geodir_get_post_meta($ID, 'post_latitude', true)); $lng = htmlentities(geodir_get_post_meta($ID, 'post_longitude', true)); $address = str_replace($srcharr, $replarr, htmlentities(geodir_get_post_meta($ID, 'post_address', true), ENT_COMPAT, 'UTF-8')); // fix by Stiofan $contact = str_replace($srcharr, $replarr, htmlentities(geodir_get_post_meta($ID, 'geodir_contact', true), ENT_COMPAT, 'UTF-8')); $timing = str_replace($srcharr, $replarr, (geodir_get_post_meta($ID, 'geodir_timing', true))); } // filter field as per price package global $geodir_addon_list; if (isset($geodir_addon_list['geodir_payment_manager']) && $geodir_addon_list['geodir_payment_manager'] == 'yes') { $post_type = get_post_type($ID); $package_id = isset($postinfo_obj->package_id) && $postinfo_obj->package_id ? $postinfo_obj->package_id : NULL; $field_name = 'geodir_contact'; if (!check_field_visibility($package_id, $field_name, $post_type)) { $contact = ''; } $field_name = 'geodir_timing'; if (!check_field_visibility($package_id, $field_name, $post_type)) { $timing = ''; } } if ($lat && $lng) { ob_start(); ?> <div class="gd-bubble" style=""> <div class="gd-bubble-inside"> <?php $comment_count = ''; $rating_star = ''; if ($ID != '') { $rating_star = ''; $comment_count = geodir_get_review_count_total($ID); if (!$preview) { $post_avgratings = geodir_get_post_rating($ID); $rating_star = geodir_get_rating_stars($post_avgratings, $ID, false); /** * Filter to change rating stars * * You can use this filter to change Rating stars. * * @since 1.0.0 * @package GeoDirectory * @param string $rating_star Rating stars. * @param float $post_avgratings Average ratings of the post. * @param int $ID The post ID. */ $rating_star = apply_filters('geodir_review_rating_stars_on_infowindow', $rating_star, $post_avgratings, $ID); } } ?> <div class="geodir-bubble_desc"> <h4> <a href="<?php if ($plink != '') { echo $plink; } else { echo 'javascript:void(0);'; } ?>"><?php echo $title; ?></a> </h4> <?php if ($gd_session->get('listing') && isset($post_preview) && $post_preview != '') { $post_images = array(); if (!empty($postinfo_obj->post_images)) { $post_images = explode(",", $postinfo_obj->post_images); } if (!empty($post_images)) { ?> <div class="geodir-bubble_image"><a href="<?php if ($plink != '') { echo $plink; } else { echo 'javascript:void(0);'; } ?>"><img alt="bubble image" style="max-height:50px;" src="<?php echo $post_images[0]; ?>"/></a></div> <?php }else{ echo '<div class="geodir-bubble_image"></div>'; } } else { if ($image = geodir_show_featured_image($ID, 'widget-thumb', true, false, $postinfo_obj->featured_image)) { ?> <div class="geodir-bubble_image"><a href="<?php echo $plink; ?>"><?php echo $image; ?></a></div> <?php }else{ echo '<div class="geodir-bubble_image"></div>'; } } ?> <div class="geodir-bubble-meta-side"> <?php /** * Fires before the meta info in the map info window. * * This can be used to add more info to the map info window before the normal meta info. * * @since 1.5.4 * @param int $ID The post id. * @param object $postinfo_obj The posts info as an object. * @param bool|string $post_preview True if currently in post preview page. Empty string if not. * */ do_action('geodir_infowindow_meta_before', $ID, $postinfo_obj, $post_preview); ?> <span class="geodir_address"><i class="fa fa-home"></i> <?php echo $address; ?></span> <?php if ($contact) { ?><span class="geodir_contact"><i class="fa fa-phone"></i> <?php $tel_link = apply_filters('geodir_map_bubble_tel_linkable', false); if ($tel_link) { ?> <a href="tel:<?php echo preg_replace('/[^0-9+]/', '', $contact); ?>"><?php echo stripslashes($contact); ?></a> <?php } else { echo $contact; } ?> </span><?php } ?> <?php if ($timing) { ?><span class="geodir_timing"><i class="fa fa-clock-o"></i> <?php echo $timing; ?></span><?php } /** * Fires after the meta info in the map info window. * * This can be used to add more info to the map info window after the normal meta info. * * @since 1.4.2 * @param object $postinfo_obj The posts info as an object. * @param bool|string $post_preview True if currently in post preview page. Empty string if not. * */ do_action('geodir_infowindow_meta_after',$postinfo_obj,$post_preview ); ?> </div> <?php if ($ID) { $post_author = isset($postinfo_obj->post_author) ? $postinfo_obj->post_author : get_post_field('post_author', $ID); ?> <div class="geodir-bubble-meta-fade"></div> <div class="geodir-bubble-meta-bottom"> <span class="geodir-bubble-rating"><?php echo $rating_star;?></span> <span class="geodir-bubble-fav"><?php echo geodir_favourite_html($post_author, $ID);?></span> <span class="geodir-bubble-reviews"><a href="<?php echo get_comments_link($ID); ?>" class="geodir-pcomments"><i class="fa fa-comments"></i> <?php echo get_comments_number($ID); ?> </a></span> </div> <?php } ?> </div> </div> </div> <?php $html = ob_get_clean(); /** * Filter to change infowindow html * * You can use this filter to change infowindow html. * * @since 1.0.0 * @package GeoDirectory * @param string $html Infowindow html. * @param object $postinfo_obj The Post object. * @param bool|string $post_preview Is this a post preview? */ return $html; } }
Hi mstopa,
I’ll try to answer your questions accordingly.
1. I’ll forward this to a developer.
2. Use the custom CSS code below to remove it or set your own background color.
.geodir-bubble_desc h4 { background-color: none; background: transparent; }
3. Use this custom CSS to change the background color
.map-places-listing { background: #000; } .map_category { background: #000; }
4. I don’t think that’s a marker cluster. It should look something like this http://prntscr.com/c3fno9 . Can you share the link to the map marker issue?
Thanks!
Hi Craig,
Could you try using the custom CSS code below and see if it’s what you’re looking for?
.sd .geodir_category_list_view li.gridview_onefourth { margin-right: 0; }
Hi Ron Lenox,
Thanks for sharing the credentials. Our developer just fixed the issue for you. It’s a bug and the fix will be included in the next update.
Thanks!
Hi there,
Let’s just refer to this thread with WP temp admin credentials. https://wpgeodirectory.com/support/topic/map-questions-2/
Thanks!
-
AuthorPosts