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)

Leo Brazil 10-21-2008 05:00 PM

Quote:

Originally Posted by HCGB (Post 1649791)
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 :)

I've mentioned this on last page.

Quote:

Originally Posted by Leo Brazil (Post 1648854)
Just one small thing, does someone here knows an instrution to include on the code to remove the hyperlinks from Google Maps before the gmap instruction ?

I'll tell you why, on my board I have to use "parse links automaticaly" so when I past the Google Map link it comes with the links and if I use it with the link parsed the BB Code doesn't work, so I have to remove the hyperlink manually. As most my users are hard to teach this sequence I was wondering about this solution to be inside of gmap BBCode it self.

No idea so far. But I'm sure there must to be a way to include a string just at the beginning of this BBCode to unparse the links. I'm just trying to figure out each one. :confused:

mycitylive 10-22-2008 04:28 AM

Hallo please Help me i habe problem the google map

Error Message:

Wrong map URL, edit the post to change it.

Reload the page when finished to check if correct.

MrEyes 10-22-2008 08:33 AM

I have found another quirk that your users need to be aware of....

If they are using the enhanced WYSIWYG post editor this will automatically parse the links in the Google iframe code to include [noparse][URL][/URL][noparse] tags, this breaks the bbcode.

They need to change to the standard editor

mycitylive 10-22-2008 09:37 AM

Unfortunately I do not understand exactly what you mean because I can not so good English would be better for me, you can deuzsch Maybe it somewhat easier to explain.

Would be great thank you

Leo Brazil 10-22-2008 12:57 PM

[QUOTE=MrEyes;1650263]I have found another quirk that your users need to be aware of....

If they are using the enhanced WYSIWYG post editor this will automatically parse the links in the Google iframe code to include [noparse][URL][/URL][noparse] tags, this breaks the bbcode.

They need to change to the standard editor[/QUOTE]

This is exactly what I tried to describe. The point is using the standar editor really sucks and switching from standard do enhanced WYSIWYG also. The only "solution" I've found at this moment is never use quick reply editor, always Go Advanced, past Google link, select it all, click on Remove Links and after that use Google Maps BBcode.

If we had a string before this BBcode to remove the links from it would solve this issue at all.

HCGB 10-22-2008 02:10 PM

Quote:

Originally Posted by Leo Brazil (Post 1650416)
This is exactly what I tried to describe. The point is using the standar editor really sucks and switching from standard do enhanced WYSIWYG also. The only "solution" I've found at this moment is never use quick reply editor, always Go Advanced, past Google link, select it all, click on Remove Links and after that use Google Maps BBcode.

If we had a string before this BBcode to remove the links from it would solve this issue at all.

Vb doesn't just add [url .. etc to the map code, it also re-arranges the parameters inside the <iframe..> block. I'm afraid I've had to give up on this one unless someone knows how to fix it - disabling the WYSIWYG editor or the automatic link parsing isn't an option for our users

Leo Brazil 10-22-2008 03:23 PM

Quote:

Originally Posted by HCGB (Post 1650457)
Vb doesn't just add [url .. etc to the map code, it also re-arranges the parameters inside the <iframe..> block. I'm afraid I've had to give up on this one unless someone knows how to fix it - disabling the WYSIWYG editor or the automatic link parsing isn't an option for our users

That's correct. The editor parses [B] [U] [COLOR] and [URL] in case of Google maps links.

I've been playing here with intructions like stripe_tags and urlrx but I'm not a coder but I'm sure it can be possible. I'm sure someone here will come up with something for this.

mycitylive 10-23-2008 06:32 AM

None has a solution for the problem?

Because one knows another similar addon BBCode?

About an answer I would be very happy!
Thank you in advance for the sometimes painful.

oasi 10-24-2008 06:33 AM

I'm going to test it when I have a time slot...
I'll try to fix it, it seems possible...

Thanks all for testing

Leo Brazil 10-24-2008 11:28 AM

Quote:

Originally Posted by oasi (Post 1651633)
I'm going to test it when I have a time slot...
I'll try to fix it, it seems possible...

Thanks all for testing

Thanks oasi for that. My comments here were given just with good intetions to improve this BBCode. I've been looking for this for so long and never found a easy and good solution as this one. Like I told before with this fix will be one of the best BBCodes ever publish here and will be MOTM for sure. :up:


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.01039 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)pagenav_pagelink
  • (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