• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Google map bbcode

fxwoody

New member
Ok, i'ved been messing around a lot with this one with no good results.
There is lots of plugins that mods did for this in order to add a button in the editor for members to post a link from google map but the darn link seems to have changed and i can't figure this one out properly.
This is the code in question :
Code:
Admin CP --> Custom BB Codes --> Add New BB Code
Title: Map
BB Code Tag Name: map

Replacement: <div align="center" style="margin: 5px 5px 5px 5px;">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr>
<td class="thead" style="text-align:center"><iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe></td>
</tr>
</table>
</div>

Example: [map]201 S. Grant Avenue, Columbus, Ohio[/map]
Description: This will insert a Google map of the location you input
Use {option}: No
Button Image (Optional): whatever 20x20 image you want, attached is the one we use
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

Obviously this is the easy example for the bbcode but from where i am, the input code of google map is different and i had to modify it to match my "region" ...kind of :wacko:
My code:
Code:
<div align="center" style="margin: 5px 5px 5px 5px;"><iframe width="95%%" height="500" scrolling="no" src="http://google.com/maps/?q={param}&output=embed" style="border:4px inset grey;"></iframe><br />
<a href="https://www.google.ca/maps?q={param}" target="_blank">Lien Google Map</a>
</div>

Problem i have is that if i want to past the link from a travel route (my forum is for bikers so lots of road to do) that we made on the map .....

EX:
Code:
https://www.google.ca/maps/dir/Baie-Saint-Paul,+QC/Saint-Joseph-de-la-Rive,+QC/Les+%C3%89boulements,+QC/Saint-Ir%C3%A9n%C3%A9e,+QC/La+Malbaie,+QC/@47.545605,-70.32357,11z/data=!4m32!4m31!1m5!1m1!1s0x4cbf11355f4ddb17:0x88c1ed172b087ea8!2m2!1d-70.504084!2d47.4424059!1m5!1m1!1s0x4cbf1af9e1465c9d:0x77ee4f71d34a7764!2m2!1d-70.3497365!2d47.4502926!1m5!1m1!1s0x4cbf04c2d92fb985:0x70bfda8fd646135a!2m2!1d-70.2876196!2d47.5054854!1m5!1m1!1s0x4cbf06bb79c0b0a9:0xbe9e9ab4cc307d85!2m2!1d-70.205346!2d47.566198!1m5!1m1!1s0x4cbfaea85b495bf1:0x49d51409f4933cb5!2m2!1d-70.152187!2d47.6569684!3e0?hl=fr

This link will only show the north america map and not the displayed route:(
I know that there is an <iframe> that google provide on their page and if i set HTML "on" for the forums that can use that it seems to work but i would prefer the members to simply use the button because iframes are a bit touchy on forums :smokin:

Tks for the help

Any clue how to solve this one ???
 
Back
Top