I have been running this mod for a few days and not found any of the issues that other people are describing. So here is some information that may or may not help other mod users:
1) The Google Maps API key is irrelevant to this mod and is a red herring
2) You have to get the code to embed from:
http://maps.google.com
Looking at the bbcode it seems that other Google domains (i.e. .es may work but I have not try this)
3) For my users I have created an FAQ that details exactly how to use the mod, see here for that:
http://www.therevcounter.com/faq/241...ads-posts.html
4) This is how I have the bbcode configured:
Title:
Google Map
BB Code Tag Name:
gmap
Replacement Code:
Code:
<script type="text/javascript">
function checkURL()
{
if ((url.indexOf("http://")!=url.lastIndexOf("http://"))||url.lastIndexOf("http://")!=0){return false;}
if (url.indexOf('"')>=0) {return false;}
if (url.indexOf("http://maps.google")!=0){return false;}
return true
}
tot='{param}';
tot=tot.substr(tot.indexOf("src="")+10,tot.length);
url=tot.substr(0,tot.indexOf("""));
urlp=url.replace(/;amp;/g,';');
url=urlp;
if (checkURL())
{
document.write('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+url+'"></iframe>');
}
else
{
document.write("<p><b>Wrong map URL, edit the post to change it.</b></p>Reload the page when finished to check if correct.");
}
</script>
Example
[gmap]iframe code[/gmap]
Description:
Embeds Google maps into posts. To use this find the map you want on Google Maps, click the link icon and select all text that is in the "Paste HTML to embed in website" section. Then paste into the post surround by [gmap][/gmap]
Use {option}:
No
Button Image (Optional)
I didn't define one, you can if you want
Remove Tag If Empty
Disable BB Code Within This BB Code
Disable Smilies Within This BB Code
Disable Word Wrapping Within This BB Code
All yes