Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Interactive Google Maps In Post Details »»
Interactive Google Maps In Post
Version: 1.00, by benstillman benstillman is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.0.x Rating:
Released: 02-10-2010 Last Update: Never Installs: 224
 
No support by the author.

No Google Maps API key, no mod install, no template edits, etc. This is based off YBMF's mod for 4.0, but a bit easier for the end user. Instead of the user having to input the full Google Maps link, just the address, name of business, etc is acceptable.

Admin CP --> Custom BB Codes --> Add New BB Code


Title: Map

BB Code Tag Name: map

Replacement: <div align="center" style="margin: 5px 5px 5px 5px;">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr>
<td class="thead" style="text-align:center"><iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe></td>
</tr>
</table>
</div>

Example: [map]201 S. Grant Avenue, Columbus, Ohio[/map]

Description: This will insert a Google map of the location you input

Use {option}: No

Button Image (Optional): whatever 20x20 image you want, attached is the one we use

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

Screenshots

File Type: jpg mapscreenshot.jpg (173.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
iiioroh

Comments
  #122  
Old 08-20-2012, 04:02 AM
Arrogant-One's Avatar
Arrogant-One Arrogant-One is offline
 
Join Date: Jul 2007
Location: Brisbane
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
Check BB Code Manager...is BB Code and HTML both
Code:
[map]Brisbane, Queensland, Australia[/map]
I don't know what you mean. Here is a screen shot.
Attached Images
File Type: jpg scrnsht.jpg (52.7 KB, 0 views)
Reply With Quote
  #123  
Old 08-20-2012, 04:05 AM
Arrogant-One's Avatar
Arrogant-One Arrogant-One is offline
 
Join Date: Jul 2007
Location: Brisbane
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
with the exception of Use {option} which is to be set to No.
Seems this was the problemo. Mod working perfectly now, thanks.
Reply With Quote
Благодарность от:
Mr_Running
  #124  
Old 10-08-2012, 05:46 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on vB 3.8.7.?

Edit: sorry. Found: https://vborg.vbsupport.ru/showthread.php?t=235621
Reply With Quote
  #125  
Old 10-31-2012, 02:48 PM
byker_tr byker_tr is offline
 
Join Date: Sep 2008
Location: Turkiye
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
Try this...

Example:
Code:
[map]Brisbane, Queensland, Australia[/map]

Replacement:
Code:
<iframe width="75%" height="400" frameborder="0" scrolling="no" marginheight="" marginwidth="" src="http://maps.google.com/maps?q={param}&output=embed"></iframe>
original code did not work for me, but this one works.. thanks :up:
Reply With Quote
  #126  
Old 11-04-2012, 02:11 AM
Fongool Fongool is offline
 
Join Date: Jan 2011
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on VB 4.2?
This would be perfect for my forum.

F
Reply With Quote
  #127  
Old 11-04-2012, 08:18 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes
Reply With Quote
  #128  
Old 11-05-2012, 10:26 AM
Fongool Fongool is offline
 
Join Date: Jan 2011
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you..

F
Reply With Quote
  #129  
Old 11-05-2012, 11:08 AM
Fongool Fongool is offline
 
Join Date: Jan 2011
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I uploaded the button and even re-sized it to 16X16 and I have the path correct but the button will not show...I am using Twisted Dark as my skin (theme) and I added the button to both the Twisted Dark editor and the public html editor and I tried both path's but it still will not load...any idea's?....it has the button there, (blank) and when I hover the cursor over it it says" wrap MAP tags around text) but even after I put the path in (and I tried both paths for the default skin editor and the Twisted Dark editor) and it just shows the image of the separator in the ACP under "Button Image"....I re-sized the images from 20X20 to 16X16 like it said in the ACP, but still no image...see attached thumbnails...Other than that, the map works great!...I just need to get the button to show up...

F

EDIT:
Nevermind...I solved it...I had /public html in the path...I took it out and now all is good...Thanks

F
Attached Images
File Type: png map1.PNG (20.6 KB, 0 views)
File Type: png map2.PNG (25.3 KB, 0 views)
Reply With Quote
  #130  
Old 02-13-2013, 04:37 PM
OhP OhP is offline
 
Join Date: Feb 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the mod/bbcode, it is very cool.

I am having an issue with my site that affects this mod that I just cannot get to the bottom of.

For some reason my maps are only sizing to about 30% of the width of a post area instead of the full post area shown in the Mod sample. Also when I change the value of the width to something lower than 100% it only acts to move the map across the page like an alignment property.

In general my site has had issues with any use of the width property...no problems with height. I've gone through my settings and can't figure out what is doing this. I've also changed my themes to see if that effected it, nope. I'm betting the answer is probably something really simple I am overlooking, but I have overlooked now many times, help is appreciated.

Ideally I would like to be able to create a map 400X400px (or 300X300px with the ' google maps info balloon suppressed').

It's running vBulletin 4.2.0 (3)
Thanks.
Reply With Quote
  #131  
Old 02-14-2013, 01:48 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OhP are you using the mods Replacement code? If so check this thread...perhaps use Replacement code in post #124
Reply With Quote
Reply


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 11:19 PM.


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.05173 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete