Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 01-09-2012, 06:05 PM
L2Insomnia L2Insomnia is offline
 
Join Date: Mar 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with google map in article

I am making a contact page for my site and trying to add a google map to the article but it only shows a thin strip of the map.

See here http://www.mtlcustomcomputers.com/co...ontact-us.html

I am using the CODE tags anything else and it comes up blank also HTML is allowed for that article. I could get it to work using a static html page but would rather be able to put it in a article as it is a bit more convenient.

How can i fix it so it shows the whole map?

Thanks
Insomnia
Reply With Quote
  #2  
Old 01-09-2012, 06:43 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...maybe add to the iframe tag style="min-height:480px;"
Reply With Quote
  #3  
Old 01-09-2012, 06:52 PM
L2Insomnia L2Insomnia is offline
 
Join Date: Mar 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I break it whenever I add that. Where should I put it here is the code I am using

<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp ;q=128+a+smith+lasalle+qc&amp; aq=&amp;sll=37.0625,-95.677068&amp;sspn=50.823846,105.556641&amp;vpsrc= 0&amp;ie=UTF8&amp;hq=&amp;hnea r=128+Rue+Smith,+LaSalle,+Québec+H8R+3H9,+Canada& amp;t=m&amp;ll=45.43478,-73.643589&amp;spn=0.02891,0.054932&amp;z=14&amp;iw loc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&a mp;q=128+a+smith+lasalle+qc&am p;aq=&amp;sll=37.0625,-95.677068&amp;sspn=50.823846,105.556641&amp;vpsrc= 0&amp;ie=UTF8&amp;hq=&amp;hnea r=128+Rue+Smith,+LaSalle,+Québec+H8R+3H9,+Canada& amp;t=m&amp;ll=45.43478,-73.643589&amp;spn=0.02891,0.054932&amp;z=14&amp;iw loc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>
Reply With Quote
  #4  
Old 01-09-2012, 06:58 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, that was a guess - it could be that an iframe can't have a style. Anyway, I made a bbcode with the code you posted and it worked in a post (but I know that doesn't help you). Sorry - maybe someone else will know.
Reply With Quote
  #5  
Old 01-09-2012, 07:01 PM
L2Insomnia L2Insomnia is offline
 
Join Date: Mar 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What was the bbcode to make it work in a post? As far as I have seen anything that works in a forum post will work in a article.
Reply With Quote
  #6  
Old 01-09-2012, 07:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just made a 'map' bbcode and put your code, unchanged, in the replacement text area. I had to click the "No" for "Remove if Empty", but other than that i used the default settings. Then in my post I put [map][/map].

But I also went back and tried the style thing, and that also worked - so you *can* have a style in an iframe tag, and setting the min-height seems to work. So to answer your previous question, it would go something like this:

Code:
<iframe style="min-height:480px;" width="640" height="480"   ....etc.

Edit: Unfortunately, I see that it didn't work...maybe try taking it out of the CODE tag?
Reply With Quote
Благодарность от:
L2Insomnia
  #7  
Old 01-09-2012, 08:44 PM
L2Insomnia L2Insomnia is offline
 
Join Date: Mar 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep needed to take it out of the CODE tags. Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03978 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete