Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Google maps BBCode Details »
Google maps BBCode
Mod Version: 1.1, by oasi (Member) oasi is offline
Developer Last Online: Dec 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (16 votes - 4.88 average) Installs: 85
Released: 16 Oct 2008 Last Update: Never Downloads: 4
Not Supported Re-usable Code Translations Is in Beta Stage  

Hi all

I've made a Custom BBcode to be able to insert any kind of google map into the forum posts, so the Plugins I tried were'nt working as we expected.

I post the code, I hope it can be useful for anyone.

Security problems, improvements and tunning will be apreciated...

I used the tag [gmap], and inside you have to copy the code for the HTML inclusion you can copy when you click the link icon in the map:




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The others settings for the BBCode are:

Use {option}: -> No
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

Please, mark as installed if it worked and you are using it.

Hope it helps!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #136  
Old 24 Jun 2012, 13:38
Panosz Panosz is offline
 
Join Date: May 2011
It seems like something changed from the Google side of things and the map doesnt work anymore.

The old links (already posted ones) still works fine but if i request a new link from Google , it won't work.
Reply With Quote
  #137  
Old 04 Jul 2012, 13:23
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
You have to edit the link from:
[Gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f

to

[Gmap]<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f

and it will work, not sure what changes the BB code needs to work.
Reply With Quote
  #138  
Old 04 Jul 2012, 16:06
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
I tried messing with the javascript but I'm far from an expert and didn't understand what some of it was doing. Someone w/more experience should be able to fix this for the current way Google is doing this and maybe even add an OR to support the previous way it was done.
Reply With Quote
  #139  
Old 04 Jul 2012, 16:20
Mellow's Avatar
Mellow Mellow is offline
 
Join Date: Nov 2003
Simply removing the 1st 's' from the 1st 'https' will allow the script to work albeit not the best looking code. I just don't know how to do that so any help is appreciated.
Reply With Quote
  #140  
Old 07 Jul 2012, 12:13
Sunka Sunka is offline
 
Join Date: Mar 2008
Yep, that is only temporary solution.
I put this problem on my forum if some user have skill in Javascript coding to find solution that code works with http and https protocol.

Any help here is welcome.
Reply With Quote
  #141  
Old 10 Aug 2012, 22:42
JetLee JetLee is offline
 
Join Date: Mar 2012
Real name: Lee
Seeing as the developer hasn't been online since 2008, I'll post how I do Google maps...

AdminCP > Custom BB Codes > Add New BB Code

Title: Google Maps
BB Code Tag Name: map
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use {option}: No
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
Disable Automatic Link Parsing Within This BB Code: Yes

Use would be:
[map]Sacramento, CA[/map]
[map]Sacramento, CA to San Diego, CA[/map]
[map]pig trail harley davidson[/map]

It works great for us. I also did a [chatmap] version that limits the size to 200px for use in the chatbox.

You can add "&iwloc=near" to the end of the src= code to disable the name bubble in the map. This is very helpful in my [chatmap] version due to its smaller iframe size.

Last edited by JetLee; 10 Aug 2012 at 23:00.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:36.

Layout Options | Width: Wide Color: