vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - Google maps BBCode (https://vborg.vbsupport.ru/showthread.php?t=193760)

MrEyes 10-17-2008 02:30 PM

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

segwayon 10-17-2008 06:34 PM

Quote:

Originally Posted by skcyber (Post 1646990)
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_B VqD495b8b0qyA 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.

safakuygur 10-17-2008 06:51 PM

very nice
good
thanks

segwayon 10-17-2008 07:33 PM

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?

segwayon 10-17-2008 08:03 PM

I'm attaching a "gmap.gif" button which I made for this BB Code, if anyone wishes to use it.

Leo Brazil 10-17-2008 08:36 PM

Quote:

Originally Posted by crkgb (Post 1646594)
It iframes the entire page as I see. Is there a way to display just a map?

I could reproduce this situation here. It gave me the intire page if I use a link that comes for the first page when you open googlemaps, like your country. If you get a close up one it gave me only the map.

Quote:

Originally Posted by skcyber (Post 1646990)
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_B VqD495b8b0qyA from this server. (Client IP address: 82.238.112.139)

I've got the same here. I don't know why but If use a code from anyplace in US it works fine but anything from out side like my country, it gives me the same error.
Any idea what could it be ?

If this problem can be solved this will be one of the best BBCode ever.

Tks

skcyber 10-17-2008 09:40 PM

Quote:

Originally Posted by Leo Brazil (Post 1647287)
If this problem can be solved this will be one of the best BBCode ever.

yeah this would be the best BB code ever lol :up:

I tried with the USA, it's working, but it doesn't store the zoom on the street.

segwayon 10-18-2008 02:40 AM

I compared my HTML source with yours, and noticed that mine contains some extra space characters. Not sure if that matters or not, but here they are, represented by underline characters for ease of viewing:
  • &__amp;t=h
  • &a__mp;ll=38.1 . . .
  • &ou__tput=embed" . . .
  • &__amp;t=h
  • &so__urce=embed" . . .

The URL source from Google didn't contain any of these extra space characters.

On another note, would you mind sharing how you acquired the URL from Google? Did you use the "My Maps" feature? And do just plain driving directions embedd a map, too? Or a whole webpage as it does for me?

Thanks!

segwayon 10-18-2008 02:55 AM

Quote:

Originally Posted by Leo Brazil (Post 1647287)
I could reproduce this situation here. It gave me the intire page if I use a link that comes for the first page when you open googlemaps, like your country. If you get a close up one it gave me only the map.



I've got the same here. I don't know why but If use a code from anyplace in US it works fine but anything from out side like my country, it gives me the same error.
Any idea what could it be ?

If this problem can be solved this will be one of the best BBCode ever.

Tks

I noticed that using a URL of just a town's location returned the forbidden permissions error, but using a URL of driving directions of maybe 80 miles embeds a whole page. Update: Page embeds also for a 1.6 mile drive.

saan 10-18-2008 11:08 AM

Thank you very much for this bb-code, but mostly I got this :confused:

saanAttachment 88262


All times are GMT. The time now is 05:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01658 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete