• Resolved husimon91

    (@husimon91)


    Hi Patrick,

    Great plugin, my maps work great so far. However, the only place the map is not showing is when users try to create events using front-end event submission form. The map is not displaying. Any ideas what could be happening here?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Yes, I do ??
    No map is being called on the front-end submission form. That is because I have never used that myself. So it is completely unknown territory for me. LOL.
    I didn’t even realise the front-end submission form even showed a map. LOL.

    Could you share a link so I can have a look, please?
    I will try to implement it asap.

    Thread Starter husimon91

    (@husimon91)

    Sure, have a look: https://www.hp-md.com

    Login with Username: test Password: test

    And if you click For Hosts and then add event, normally when you type in the address of location you can see the map generated on the right hand side. However nothing is being displayed currently.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Version 1.5 should now show the map. Please update the plugin ??

    Thread Starter husimon91

    (@husimon91)

    I updated it to version 1.5.1, but on the front-end user event submission form; when I type in the address or previously created location there is still no map

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The address field do not search anything. EM automatically creates a page with all your existing locations. You can set that in the EM Settings.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Oh.. Event submission. No have not touched that yet. Location editing should work.

    Thread Starter husimon91

    (@husimon91)

    Also, I’ve noticed that when creating an event on front-end event submission form. Once the address and location details are put in and event published; the actual event page says coordinates unavailable.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Yes, I noticed that as well.
    Turns out EM uses an additional api call to fetch the coordinates.

    Looks like I will have to completely re-write that section – not being able to use anything native to em.

    Thread Starter husimon91

    (@husimon91)

    Interesting, do you know where this additional api call takes place in EM?

    Also, thank you for all your help. Hope to see the new version soon!

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I have been looking into the map on the event submission, but I am afraid that will not be possible for the time being.

    It may sound rather easy, but it turns out that EM’s javascript is laced with Google and therefore ending up giving all kinds or errors. It has to do with the Ajax call EM makes when you search for an existing event.

    The only way I could get a map working, would be by completely deleting their javaScript file and replace it with a custom made one. Well, I think we can all agree that that is not a wise choice. ??

    I will be looking into other solutions, but please do not expect any within the next few days…

    Ups, 90% of my events are created via the EM-event-submission form by my users directly. That’s an essential part, and @husimon91 is right, those event-locations are not displayed at all because the coordinates are missing. That’s really a pity. I will have to wait for a solution for this one.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Update to version 1.6.0 to solve this.

    I think the solution in 1.6.0 is now fine for small websites with only a few dedicated users who enter event information and can be “trained” how to use it.
    When I got it right, the location is only stored by searching via the map search bar. This is not how the normal community users will work. When I only type in an address in he normal address fields, the map does not recognize the correct location. I will not be able to use this implementation, because my website has several hundred users who enter events on their own via the event submission form (without any chance to train them). And when they key in the address in the address fields, the map does not recognize the correct location and therefore will not display a correct map.
    I think I will keep google maps for that part and only continue to use OSM for the display of single events as I have it now on the live website.
    Thanks for your fast responses and fast work, Patrick!

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Using the search on the map is a deliberate choice, because then you get multiple results. EM Google does not do that. Google only returns one single result.

    When I currently enter a new address directly in the address fields of an event with your plugin acivated (1.6.0), the address is not found by the map. Is there still something wrong or is it expected to only use the marker/map search to enter a location?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Front-end Event submission form not showing maps’ is closed to new replies.