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 (Contributor) oasi is offline
Developer Last Online: Dec 2008 I like it Show Printable Version Email this Page

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.
Comments
  #2  
Old 16 Oct 2008, 12:55
GreasySpoon GreasySpoon is offline
 
Join Date: Dec 2007
What kind of HTML code can be added? Every?
Reply With Quote
  #3  
Old 16 Oct 2008, 13:43
oasi oasi is offline
 
Join Date: Mar 2008
No, it's to insert google maps references.

The javascript checks you're introducing a valid maps.google URL.

Into the image,the code you must paste is shown....
Reply With Quote
  #4  
Old 16 Oct 2008, 13:47
robbiefritz robbiefritz is offline
 
Join Date: Oct 2008
Real name: Robert
Super!
Reply With Quote
  #5  
Old 16 Oct 2008, 17:34
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Dude, this is awsome !!!

Let's see how it goes (intalling right now) and get back for a feedback.

Good job.
Reply With Quote
  #6  
Old 16 Oct 2008, 18:11
Feign Feign is offline
 
Join Date: Jul 2008
Real name: Tony
Very good. Was looking for this a few weeks ago. This seems to work for all manner of Google Maps, including the "route" type ones which is good for planning weekend cruises!
Reply With Quote
  #7  
Old 16 Oct 2008, 21:38
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
Any demo ? TIA
Reply With Quote
  #8  
Old 16 Oct 2008, 21:53
crkgb crkgb is offline
 
Join Date: Oct 2007
It iframes the entire page as I see. Is there a way to display just a map?
Reply With Quote
  #9  
Old 17 Oct 2008, 07:05
oasi oasi is offline
 
Join Date: Mar 2008
As far as I know, it only iframes the map, if you tested and it appeared all the page, please send how you did it to parse this case....

Here is an example (it's in our local language, but the map is the map XD)

http://forums.tinet.org/showthread.php?t=103
Reply With Quote
  #10  
Old 17 Oct 2008, 14:30
skcyber skcyber is offline
 
Join Date: Nov 2005
hey guys, I got a problem using this wonderful code..

when I paste the html code (iframe...)

I have this message in the post :

Google
Error


Forbidden
Your client does not have permission to get URL /maps?f=q&hl=fr&geocode=&q=tour+eiffel+%20%20paris&ie=UTF8&ll=48.858072,2.294859& sp%20%20n=0.006295,0.006295&output=embed&s=AARTsJr%20%20CvdyoV0AZQw6_BVqD495b8b0 qyA from this server. (Client IP address: 82.238.112.139)
Reply With Quote
  #11  
Old 17 Oct 2008, 16:30
MrEyes MrEyes is offline
 
Join Date: Nov 2004
This is great, thankyou very much for providing this.

I have been looking at doing it myself but could not find a secure solution that would prevent people embedding any link. Looking at the javascript it looks like this solves that problem
Reply With Quote
  #12  
Old 17 Oct 2008, 20:34
segwayon segwayon is offline
 
Join Date: Mar 2008
Originally Posted by skcyber View Post
hey guys, I got a problem using this wonderful code..

when I paste the html code (iframe...)

I have this message in the post :

Google
Error


Forbidden
Your client does not have permission to get URL /maps?f=q&hl=fr&geocode=&q=tour+eiffel+%20%20paris&ie=UTF8&ll=48.858072,2.294859& sp%20%20n=0.006295,0.006295&output=embed&s=AARTsJr%20%20CvdyoV0AZQw6_BVqD495b8b0 qyA from this server. (Client IP address: 82.238.112.139)
Me too.

As I recall, Google requires an API key on a server to dish out their maps. Any leads on this? I know their licensing levels for businesses is really steep.
Reply With Quote
  #13  
Old 17 Oct 2008, 20:51
safakuygur's Avatar
safakuygur safakuygur is offline
 
Join Date: Sep 2007
very nice
good
thanks
__________________
My Site: www.sanalda1numara.org -->Turkish vbullet
Reply With Quote
  #14  
Old 17 Oct 2008, 21:33
segwayon segwayon is offline
 
Join Date: Mar 2008
My first try was with a Google search on my town. It had one pin in the map. That URL got a permissions error from the Google server.

When I tried to paste in a URL with driving directions, it embedded the page, albeit in a small form, and with the driving directions hogging a lot of the IFRAME space. I can alter the scripts' width and height, but are there any pointers for embedding the map alone as showing on the Tinet.org website?
Reply With Quote
  #15  
Old 17 Oct 2008, 22:03
segwayon segwayon is offline
 
Join Date: Mar 2008
I'm attaching a "gmap.gif" button which I made for this BB Code, if anyone wishes to use it.
Attached Images
File Type: gif gmap.gif (1.2 KB, 3516 views)
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:48.

Layout Options | Width: Wide Color: