Paul Henderson
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.
Hi Guust,
I tried the near me button and that works. I also tried just using a …/locations/me URL for that page and that does it too.One issue I’m still having, however. It seems that focusing on in the map with the Near Me or /locations/me actually automatically checks the Near Me box in Advanced Search then does the search using the diameter distance pre-set on the advanced search settings page.
This is initially good as it brings the user to their map location with near listings shown, but causes one problem. I want the user to be able to start at their location on the map and see the listings in that near me area. This works. However I then want the user to be able to zoom out and pan to other locations on the map (I also have a preset location menu they can pick from) and see the listings in these new views.
What I’m seeing for behavior in this case seems to be that the map moves to the right pan/zoom/location but the listings don’t show. It seems that the listings that show are based on the original near me query rather than showing all the listings in the the current location and zoom view as usually happens when you pan/zoom around the map and listing in the new view appear. Instead, no new listings appear, only the Near Me listings (now out of the view).
After investigating more, per above, it seems that the Near Me checkbox is automatically checked when using the Near Me button or /locations/me. The user has not check it but it seems that the query has, and it does not automatically get unchecked. So now the subsequent pan/zoom operations are showing the desired map location, but still only showing the near me listings, which of course, are not within the view.
So… assuming this is how it works (please tell me if I’m wrong), is there a way to automatically ‘uncheck’ the Near Me box after every Near Me query, or at least those queries triggered by /locations/me and Near Me button. My thinking is if this is cleared after the Near Me locations are show, then each subsequent pan/zoom or other non-Near-Me query will be independent. If a new zoom/pan location or other mechanism moves the map, it should display the listings in the view rather than be stuck on Near Me listings only.
I was thinking this could potentially be done with an action hook. That is, if the Near Me is set by /locations/me or Near Me button, then after this is displayed, do a clean up by returning the Near Me check to unchecked. I see something in the docs about geodir_search_fields_after action but not sure that’s in the right location to do the job. I’ve not determined how to code this hook yet but wanted to see if this made any sense to you first.
Please let me know your thoughts as to am I understanding correctly what is going on here? Is there a way to solve this as I’m suggesting or something easier? I’d appreciate any pointers. Thanks!
This reply has been marked as private.I’ve tried these various short codes but none works as I’d want. The location switcher seems to only work for displays on the map not lists of listings. The cpt_categories is nice on the surface but very odd that it displays unrelated columns. Countries, Regions, Cities are all listed but not related. If you click through the Countries then reveals relevant Regions and in turn relevant cities but having these all on one page without filtering is confusing to a users.
I think I will need to build out more focused menus using the location URLs. What I want is for a person to pick a country, then be shown available regions, then be show listings in that region or drill down further to cities before showing listings. So far I don’t see any way to set that in these shortcodes.
This reply has been marked as private.This reply has been marked as private.Hi!
It’s been a while. Geodirectory has been working great for me. Thanks for the continued updates.
Regarding caching, yes, a plugin would be great. Can you send?
I’ve moved my hosting to Pagely.com. They use something called PressCache.
https://support.pagely.com/hc/en-us/articles/212827958-What-is-PressCACHE-and-how-does-it-work-They also have a PressCDN which is based in part on MaxCDN
https://pagely.com/tech/Thanks
PaulThis reply has been marked as private. -
AuthorPosts