Fearless_Shultz
Forum Replies Created
-
AuthorPosts
-
Hi Paolo,
Just wondering if this has been released yet and in particular the fix for multi day events causing duplicate listings. Also, do you have a direct url to an example showing how they are now handled as couldn’t see one on your example given above.
Kind Regards
Mike
Hi Do you have a likely date when a stable version of the events that incorporates multi-day events into a single listing is likely to be available as my client is quite desperate for this and don’t want to go trying to bodge a quick fix or get the rest of the site to work with an alternate events management plugin if you have a release imminent.
If it is still in testing, you have a link to example of it working that I can show them along with likely release date?
January 28, 2015 at 10:21 am in reply to: Random Large Images or Icons Appearing on Top of Map #29027Doh, sorry Stiofan and thanks. It was actually the customer the site was built for who added those categories but I was looking at the individual listings rather than there for the problem.
Thanks for your assistance and you can mark this as resolved.
Many thanks
Mike
December 10, 2014 at 5:39 pm in reply to: Footer Width Cropped but Only on Search Results Page #24027This reply has been marked as private.December 10, 2014 at 3:34 pm in reply to: Footer Width Cropped but Only on Search Results Page #24010I copied all of the template files over a geodirectory folder within my child theme when I first started customizing. I understood that this is the safest way to work?
This does bring me to another question actually. I have made some modifications to geodirectory_template_actions.php to change the text that is displayed when a search is completed. At the moment this is still in the plugin folder. Should that file also be moved to avoid issues when updating the plugin?
December 10, 2014 at 1:35 pm in reply to: Footer Width Cropped but Only on Search Results Page #24003Adding echo “</div>”; at the end of the geodir-search.php file right before get_footer() seems to have resolved it.
Thanks again for looking at the problem 🙂
December 9, 2014 at 11:29 pm in reply to: Footer Width Cropped but Only on Search Results Page #23970Hi Again Guust,
After doing some more testing it is obviously an unclosed div somewhere which obviously I will need to find myself as I don’t want to waste anyones time looking for silly mistakes in my code Thanks again for your help! 🙂
Kind Regards
Mike
December 9, 2014 at 10:39 pm in reply to: Footer Width Cropped but Only on Search Results Page #23968This reply has been marked as private.December 9, 2014 at 7:27 pm in reply to: Footer Width Cropped but Only on Search Results Page #23958This reply has been marked as private.Hi,
Just a quick update as I have now resolved this issue which was, as I suggested in my original post related in the end to having multiple instances of the Google Maps API loading and not the code that I was using.
This was being caused by the wpmegamenu plugin and once I set that not to load use the maps API everything worked ok with the original code that I posted
Hi Paolo,
Many thanks for the reply. When I followed the instructions that you provided the result was actually the same as with the original code. I excluded the maps tab within the Geodirectory interface and used the following to make sure the map was removed:
remove_action( ‘geodir_details_main_content’, ‘geodir_show_detail_page_tabs’,60);
Something I have noticed is that if I change $map_args[‘enable_jason_on_load’] to false, then the map actually loads but doesn’t have any markers for the listings on and is not zoomed to the relevant place on the map for the listing. Does this give any further indication as to what the problem might be?
Kind Regards
Mike
Hi Guust,
I have merged the locations. Please let me know if they look ok now.
The problem still exists though, even if I remove the custom action to add the map below the tabs box. So can you see anything else that is wrong?
Also, just to confirm, I don’t want two maps on the page, I just want one that appears outside of the tabbed area which I have partly done but as mentioned, neither that nor the map in the tabbed area are fully loading. Also for some reason, the map in the tabbed area is zoomed out to show a much larger area than just the intended one.
Hi Guust, this was one of the points I was going to ask about next although I didn’t think it would be related to this and more the fact that there are two map instances on the page.
The locations have gotten into a bit of a mess as we have had an external data entry person adding listings. I will go and merge the locations and see if that makes a difference.
I just want to confirm that I won’t be at risk of deleting any listings by doing this?
Many thanks
Mike
This reply has been marked as private.Hi There, I am trying to do something quite similar but rather than replace the slider, I am wanting to move the map to a different area as I don’t want to use the tabs. I have implemented the code code above with the slight modification of trying to remove map in tabs and wrapping the new map in a div.
The new map is showing in the position that I want it to, but with a grey overlay and a loading icon which never finishes. The map is still showing in the tabs area but in the same state.
Looking in Chrome developer tools, I get the following errors related to the map:
You have included the Google Maps API multiple times on this page. This may cause unexpected errors
Uncaught InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama
These would make sense as there are two versions of the map on the page, but I am not too sure how to target removing the one in tabs.
Below is the code I am using in functions.php
remove_action( 'geodir_details_main_content', 'geodir_action_details_map',30); function geodir_action_details_map_replace_slider(){ global $post,$post_images,$video,$special_offers, $related_listing,$geodir_post_detail_fields; $map_args = array(); $map_args['map_canvas_name'] = 'detail_page_map_canvas2' ; $map_args['width'] = '100%'; $map_args['height'] = '300'; if($post->post_mapzoom){$map_args['zoom'] = ''.$post->post_mapzoom.'';} $map_args['autozoom'] = false; $map_args['child_collapse'] = '0'; $map_args['enable_cat_filters'] = false; $map_args['enable_text_search'] = false; $map_args['enable_post_type_filters'] = false; $map_args['enable_location_filters'] = false; $map_args['enable_jason_on_load'] = true; $map_args['enable_map_direction'] = true; echo '<div id="detailMapContainer">'; geodir_draw_map($map_args); echo '</div>'; } add_action( 'geodir_details_main_content', 'geodir_action_details_map_replace_slider',30);
-
AuthorPosts