XF 2.0 Google Map API

BrianC

Active member
Does anyone know how to add a custom field for Google Maps Place ID Finder? I would like to have an available field that if an address is entered will create a Google Maps window with that location.

Adding sample code from Google in the Xenforo Value display HTML field in custom fields creates a static map but I'm lost after that. Oh how I wish I had spent some time learning how to code instead of some other things learned in life :unsure:
 
How/where would you want to display the map? If I'm reading your post correctly you want to use a custom field but those are associated to individual users so even if you did get that to embed your Google Maps code you'd end up with a BB Code that would be usable only to the person using using it. e.g.: "Jim" puts an address in his custom field and when he uses the code his Map Place would be displayed but if "Bob" puts an address in his custom field and when he uses it then his Map Place would be displayed but neither of them could put in a different place, they'd be locked into using just the value in their respective custom fields and Bob couldn't embed Jim's place and Jim couldn't embed Bob's place.

Are you really after just a generic BB Code where anybody could put in an address, sort of like [googleplace]Jim's Cheesesteaks, Philadelphia, PA[/googleplace] that could be used by anybody with any place?

Knowing your intent on how you're thinking it'd be used will help point you in the right direction.


On a related note, do you have a Google Maps API key or are you going to try to do embedding without a key?
 
Hi Kevin,

I have a key that I have created with Google. You have articulated more clearly than I did. I am going to be using on a Pet Adoption site so want each individual user to be able to enter an address or town when they are creating a forum post for the animal they have available for adoption. Visitors who are viewing this post should see an embedded Google Map with the location that was entered by the person who posted the message. This field should not be editable by visitors or other members. Hopefully the poster could edit the address or remove by editing the original post. So, this is not a generic address for visitors but for a specific purpose of showing the location where the animal is available from.

Thanks for the assistance.
 
Back
Top Bottom