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
  #72  
Old 01-23-2011, 12:07 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FWIW, I finally got around to using Bing maps by changing the src line (the Google road names are still incorrect in my area). But I can't figure out how to automatically close the task area on the left. Oh well, this should hold me until Google gets around to correcting their map.
Quote:
"http://www.bing.com/maps/default.aspx?encType=1&where1={param}&output=embed "
Reply With Quote
  #73  
Old 01-23-2011, 12:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an fyi the "&output=embed" is just being ignored by Bing Maps, they don't have that option best I can tell. You are embedding the real Bing Maps page, the same one if you just went to the link.

The way to make Bing maps embedded is here: http://www.microsoft.com/maps/isdk/ajax/
But its complicated Javascript and only works based on latitude/longitude... there is no way to put a street address ans get and embedded map.
Reply With Quote
  #74  
Old 01-30-2011, 06:49 PM
myke2008's Avatar
myke2008 myke2008 is offline
 
Join Date: Jan 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to stop the map from showing in the resent forums post widget?
Reply With Quote
  #75  
Old 01-30-2011, 10:41 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Odd, my Recent Posts widget doesn't show the contents of the post, only the thread name and some other info. I think I'm using the built in one. Is this some modified widget? Do you have a link?
Reply With Quote
  #76  
Old 02-01-2011, 09:18 PM
myke2008's Avatar
myke2008 myke2008 is offline
 
Join Date: Jan 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just avoid using this mod in the forum, I wanted to use it in the articles mostly anyway. I will just have to remove it if I can't find a way to block it out of the widget or a way to set permissions on it.
Reply With Quote
  #77  
Old 02-01-2011, 11:41 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you completely ignore questions then nobody can be of any help.
Reply With Quote
  #78  
Old 02-03-2011, 12:18 PM
myke2008's Avatar
myke2008 myke2008 is offline
 
Join Date: Jan 2008
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
If you completely ignore questions then nobody can be of any help.
was not ignoring you, as I said I am no longer using it on the forums, so if I gave you a link (the site is not live yet) it would not do any good anyway. I don't want to leave a huge google map skewed off the side of the page and bulging out the side of the resent posts widget, because it looks like sh*t.

This is a brand new install of vb 4.1.1 and this mod is basically the only mod that is installed.

The real question is, is there a way to set permissions on this or some how prevent the maps from showing in the resent posts widget? Maybe there is some way to stop it from being used in the forums? or prevent registered users from using it?
Reply With Quote
  #79  
Old 02-03-2011, 12:37 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by myke2008 View Post
was not ignoring you, as I said I am no longer using it on the forums, so if I gave you a link (the site is not live yet) it would not do any good anyway. I don't want to leave a huge google map skewed off the side of the page and bulging out the side of the resent posts widget, because it looks like sh*t.

This is a brand new install of vb 4.1.1 and this mod is basically the only mod that is installed.

The real question is, is there a way to set permissions on this or some how prevent the maps from showing in the resent posts widget? Maybe there is some way to stop it from being used in the forums? or prevent registered users from using it?
There is a mod "Advanced BBCode Permissions" for 3.x that still works fine on 4.x and allows you to enable or disable each BB Code per usergroup.

https://vborg.vbsupport.ru/showthread.php?t=122942
Reply With Quote
  #80  
Old 02-03-2011, 02:23 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But if you disable everyone's permission to see the map bbcode, then what would be the point of using it?

I'm still not understanding why your Recent Posts widget shows entire posts and not just summaries like mine does. It seems to me that with the limited space in a sidebar you'll quickly fill the widget with a single post, making it useless.

Also, articles shouldn't be showing up in Recent Posts anyway, but that's a different subject entirely.
Reply With Quote
  #81  
Old 02-04-2011, 02:19 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way I can create a widget for this for the CMS? See... I'd like to be able to add pinpoints and stuff to a google map. For example... I have a New York page. Within the NY page, I have say 6 restaurants and 2 pizza places. I'd like to have all of these displayed within a widget.

Thanks
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 05:03 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.05653 seconds
  • Memory Usage 2,335KB
  • 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_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
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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