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
  #82  
Old 02-22-2011, 03:35 PM
hoatran hoatran is offline
 
Join Date: Jul 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh my God, you are the hero man...
Reply With Quote
  #83  
Old 03-07-2011, 04:07 PM
Cigarcritic Cigarcritic is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Thank you!!!! That corrected my issue with a narrow map in Firefox.
Reply With Quote
  #84  
Old 03-10-2011, 08:36 AM
The Fathom The Fathom is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting a 404 when trying.....

USing version 4.1
Reply With Quote
  #85  
Old 03-10-2011, 08:42 AM
The Fathom The Fathom is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok it works for 50%. USed Disable Automatic Link Parsing Within This BB Code and now i see it. But it only fills 50% of the frame
Reply With Quote
  #86  
Old 03-10-2011, 08:46 AM
The Fathom The Fathom is offline
 
Join Date: Apr 2002
Location: Amsterdam
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And replacment is
<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q={param}&output=embed"></iframe>

And it works fine for 4.1! Awesome mod!
Reply With Quote
  #87  
Old 03-12-2011, 12:23 PM
giaguaro giaguaro is offline
 
Join Date: Feb 2011
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi.
I tried it on my site, it says: {param}it's no good.It seems it wants " .
Could help me? thx!!

EDIT: IT WORKS THE SAME thx, great mod.
How to have different measure?
And: how to let the user calculate his road to the place?
Reply With Quote
  #88  
Old 03-30-2011, 01:13 PM
fulviods fulviods is offline
 
Join Date: Jan 2005
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need a thread per street with a google map inside. But also a general google map with a link to all the street-threads. How can i do that? Thanks!
Reply With Quote
  #89  
Old 04-01-2011, 01:48 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose there's nothing stopping you from doing it manually. I sure can't imagine software that would automatically scan a map and create a subforum for each street on it. Or a thread, though I don't know what good a single thread per street would do.
Reply With Quote
  #90  
Old 04-02-2011, 06:29 PM
Rofo Rofo is offline
 
Join Date: Feb 2011
Location: MI,IA,WY,SC,OR,WA,XX,XX,
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the code, seems to be working fairly well. Only problem I have is that it displays on my forum like this and not in "full screen". I made changes to the HTML code Google gives you in the 'Share' Option but made it worse. Anyway to make it wider?



Installed / 4.1.1
Reply With Quote
  #91  
Old 04-02-2011, 08: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

Quote:
Originally Posted by Rofo View Post
Thanks for the code, seems to be working fairly well. Only problem I have is that it displays on my forum like this and not in "full screen". I made changes to the HTML code Google gives you in the 'Share' Option but made it worse. Anyway to make it wider?



Installed / 4.1.1
I posted code in Post #64 that should resolve this issue.
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:32 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.11885 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (2)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