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)

HCGB 10-21-2008 09:14 AM

Quote:

Originally Posted by oasi (Post 1648799)
It works for me... :confused:

I'm gone here:

http://maps.google.com/maps/ms?hl=en...dc31d40e5d&t=h

Clicked on the link button, and copied the content from the field: Paste HTML to embed in website

then I've pasted the content inside the

Please enter the BBCode definition for gmap and check these values are like here:

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

If public, let me see your test page...

I've set up a simple page that has the gmap code embedded with the Google map code HERE - sorry, my web programming skills aren't up to working out why it isn't recognising the URL :confused:

oasi 10-21-2008 09:28 AM

And you have edited the BBCode to set the values as I said??
Please, verify it, and tell me, I think that there could be a workaround, but I think the solution is on setting those values right.

AndyA 10-21-2008 10:09 AM

It works great, shame it can't embed a route too. Thanks for the code. :)

oasi 10-21-2008 10:27 AM

Who said no routes??

Check it: http://forums.tinet.org/showthread.php?t=103

Create your route and store it, and then click on the Link button and paste as in the examples...

AndyA 10-21-2008 10:29 AM

Whoops, error on my behalf. It does show routes . . . I must have done something wrong. :)

AndyA 10-21-2008 10:45 AM

Edit, answer found.

Leo Brazil 10-21-2008 12:08 PM

Quote:

Originally Posted by HCGB (Post 1649571)
I've set up a simple page that has the gmap code embedded with the Google map code HERE - sorry, my web programming skills aren't up to working out why it isn't recognising the URL :confused:

Just a tip, this BB Code doesn't work with Google Maps URL, it does work only with the HTML links with the Iframe instruction.

segwayon 10-21-2008 01:49 PM

Quote:

Originally Posted by oasi (Post 1649599)
Who said no routes??

Check it: http://forums.tinet.org/showthread.php?t=103

Create your route and store it, and then click on the Link button and paste as in the examples...

Any pointers on how to create a route in Google Maps? Great mod, oasi!

HCGB 10-21-2008 04:19 PM

Quote:

Originally Posted by oasi (Post 1649578)
And you have edited the BBCode to set the values as I said??
Please, verify it, and tell me, I think that there could be a workaround, but I think the solution is on setting those values right.

Yes, it is set up absolutely correctly. I have discovered some stuff that might shed light on my (and other's) problems:

The "Automatically parse links in text" option ALWAYS screws up the HTML code on the map page whenever the post edit box is loaded (it's too late even if you turn it off before saving the edit). You can either disable the function in the Vb Admin (not very convenient for users) or re-paste the Google map code into a post during editing.

If I use your code exactly as is it returns "Wrong Map URL..." every time. I've placed the code on a this page with the correct Google map code so you can view and debug the source (it doesn't seem to recognise the first search string?). Out of desperation, I modified the code to simplify it and tested it on this other page with exactly the same Google code and it seems to work OK (I've removed a couple of tests and avoided using ") It's probably full of security holes as I'm no programmer :)

Another little vBulletin quirk is that any HTML code added to a post stays there even if your turn off "Allow HTML" in the forum properties. Handy if you want to add an HTML content post to a normally non-HTML forum!

saan 10-21-2008 04:34 PM

Many Thanks for your additional BB-Code-Info!

It works!!! :)


All times are GMT. The time now is 09:30 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.01442 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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