vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Interactive Google Maps In Post (https://vborg.vbsupport.ru/showthread.php?t=235625)

bulldog51981 12-23-2010 04:24 PM

Ok, so everything looks good with one small exception...only about half of the map shows in about half of the frame. Any ideas?

Here's a link to one of the pages where you can see an example:

http://stlryderz.com/showthread.php?...y-Thur-Dec-9th

Thanks

BirdOPrey5 12-23-2010 04:37 PM

That's a weird one... best guess right now is something in your style is throwing it off... Try it in the default style and see if you have the same problem.

To use the default style make a new style with no parent style:
ACP==>style manager==>add new style==>just choose a name==>save

bulldog51981 12-23-2010 04:45 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2138160)
That's a weird one... best guess right now is something in your style is throwing it off... Try it in the default style and see if you have the same problem.

To use the default style make a new style with no parent style:
ACP==>style manager==>add new style==>just choose a name==>save

Ok, did that and still that same thing. Go to the same link and look at the bottom of the screen on the left and you can change to "test" style there for demo. Could it possibly be that we upgraded to 4.1? Or something completely different? Thanks for such a quick response. BTW, We have had this code running perfectly since Oct when it first went in, just recently I noticed this, but I'm not sure exactly when it started. We upgraded to 4.1PL2 about 2 days ago, but again, not sure if it was ok immediately before and after that.

Thanks again!
:)

BirdOPrey5 12-23-2010 07:51 PM

I see you have since removed the google map from that post... before it was gone I was able to see that whatever is causing it seems to be part of your css.php file... when I removed the css link to this file the map was normal sized, though of course everything else was bad without the css.

I'm not really sure what this means, possibly a mis configured stylevar... I can't really troubleshoot anymore from here.

One more thing to try, in the replacement code for the BB Code get rid of the table tag, the only code you really need is:

Code:

<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe>
See if that gives better results.

OldSchoolDSL 12-23-2010 09:36 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2138273)
I see you have since removed the google map from that post... before it was gone I was able to see that whatever is causing it seems to be part of your css.php file... when I removed the css link to this file the map was normal sized, though of course everything else was bad without the css.

I'm not really sure what this means, possibly a mis configured stylevar... I can't really troubleshoot anymore from here.

One more thing to try, in the replacement code for the BB Code get rid of the table tag, the only code you really need is:

Code:

<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe>
See if that gives better results.


Installed and used this as the final code.

Working on 4.1 PL2

printedgear 12-24-2010 12:26 AM

My apologies for this noob question. This is only the 2nd thing I've added and it works great. I just don't know how to add the map icon. It says to input the URL. NOOB question...how do I do that? Sorry again...

BirdOPrey5 12-24-2010 01:38 AM

You need to upload the icon to your site, usually in your /images/editor/ folder...
Then in the box that asks for path to the image put in the file path, usually something like:
/images/editor/map.gif
(or whatever the file name is)

printedgear 12-24-2010 02:59 AM

Thanks BOP. I had put public_html in the path. I called hostgator just after posting and they told me what to do. Thanks for the Hack and I will love it! Is there a way to change "Wrap [map] tags around selected text" to something like "place street address between [map] and [/map]"?

BirdOPrey5 12-24-2010 04:12 AM

Glad you're up and running... this isn't my mod, it is by benstillman, I just answer questions since he marked it "unsupported."

As for changing the text of the box- unfortunately no, if you changed it, it would change for all BB Codes and it wouldn't make any sense.

Quads 01-21-2011 03:29 AM

Great hack.

When user click the google map (location marker example), they are taken to google maps in the same window are leave my forum. How can I make this so that a new tab is opened if they click the map?


All times are GMT. The time now is 09:26 AM.

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.01177 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
  • (2)bbcode_code_printable
  • (2)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