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

Reply
 
Thread Tools
Location links to Google Maps, Bing Maps or Yahoo Maps Details »»
Location links to Google Maps, Bing Maps or Yahoo Maps
Version: 1.01, by boydy boydy is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 01-27-2011 Last Update: Never Installs: 15
Template Edits
 
No support by the author.

Hi guys,

This mod/hack let's you make a users location link to either Google Maps or Bing Maps. When you follow the hyperlink it opens the map at the location that the user has set. This can be done the the old horizontal postbit and the new vertical legacy postbit. Below is the code replacement for both maps and postbits.

=|= Install =|=

=|= Postbit (Vertical Legacy) =|=

Google Maps:

Open Template
- Postibit Templates -> postbit_legacy

Find -
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>


Replace
-
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={vb:raw post.field2}" target="_blank">{vb:raw post.field2}</a></dd></vb:if>


---------------------------------------------------------------------------------------

Bing Maps:


Open Template - Postibit Templates -> postbit_legacy

Find -
Code:
<vb:if  condition="$post['field2']"><dt>{vb:rawphrase  location_perm}</dt> <dd>{vb:raw  post.field2}</dd></vb:if>


Replace
-
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd><a href="http://www.bing.com/maps/?v=2&where1={vb:raw post.field2}" target="_blank">{vb:raw post.field2}</a></dd></vb:if>
---------------------------------------------------------------------------------------

Yahoo Maps:


Open Template - Postibit Templates -> postbit_legacy

Find -
Code:
<vb:if   condition="$post['field2']"><dt>{vb:rawphrase   location_perm}</dt> <dd>{vb:raw   post.field2}</dd></vb:if>


Replace
-
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd><a href="http://maps.yahoo.com/#mvt=m&q1={vb:raw post.field2}" target="_blank">{vb:raw post.field2}</a></dd></vb:if>


=|= Postbit (Horizontal) =|=


Google Maps:

Open Template - Postibit Templates -> postbit

Find -
Code:
<vb:if  condition="$post['field2']"><dt>{vb:rawphrase  location_perm}</dt> <dd>{vb:raw  post.field2}</dd></vb:if>


Replace
-
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={vb:raw post.field2}" target="_blank">{vb:raw post.field2}</a></dd></vb:if>


---------------------------------------------------------------------------------------

Bing Maps:


Open Template - Postibit Templates -> postbit

Find -
Code:
<vb:if  condition="$post['field2']"><dt>{vb:rawphrase  location_perm}</dt> <dd>{vb:raw  post.field2}</dd></vb:if>
Replace -
Code:
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd><a href="http://www.bing.com/maps/?v=2&where1={vb:raw post.field2}" target="_blank">{vb:raw post.field2}</a></dd></vb:if>


---------------------------------------------------------------------------------------

Yahoo Maps:


Open Template - Postibit Templates -> postbit

Find -
Code:
<vb:if   condition="$post['field2']"><dt>{vb:rawphrase   location_perm}</dt> <dd>{vb:raw   post.field2}</dd></vb:if>


Replace
-
Code:
<vb:if  condition="$post['field2']"><dt>{vb:rawphrase  location_perm}</dt> <dd><a  href="http://maps.yahoo.com/#mvt=m&q1={vb:raw post.field2}"  target="_blank">{vb:raw  post.field2}</a></dd></vb:if>
And that's it! Screenshots below with some random locations and the resulting map search.

If you have any questions/problems or wish the location to link elsewhere and need help, post a comment and i'll help out as much as i can.

If you like this mod and/or using it please remember to mark as installed!

Thanks!

Boydy

Update 1.01 changelog;
  • Modified Google URL.
  • Hyperlink will now open in a new window.
  • Added Yahoo maps.

Screenshots

File Type: png 1296177055.png (4.8 KB, 0 views)
File Type: jpg 1296177126.jpg (125.3 KB, 0 views)
File Type: png 1296177215.png (4.5 KB, 0 views)
File Type: jpg 1296177242.jpg (130.7 KB, 0 views)
File Type: png 1296209064.png (4.7 KB, 0 views)
File Type: jpg 1296209095.jpg (145.9 KB, 0 views)
File Type: png 1296209183.png (4.9 KB, 0 views)
File Type: jpg 1296209211.jpg (109.7 KB, 0 views)
File Type: png 1296209926.png (3.3 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 01-31-2011, 03:04 PM
bulldog51981's Avatar
bulldog51981 bulldog51981 is offline
 
Join Date: Oct 2010
Location: St. Louis, Mo, USA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boydy View Post
Appologies i didn't even notice that it was .co.uk .

Will be updating the mod shortly anyway, glad you like it.
No problem with the .co.uk extension, people are all over the world here so for those in that region I'm sure it works perfectly for them.

Quote:
Originally Posted by boydy View Post
First update has been done. Enjoy guys and thanks to bulldog for the heads up regarding the URL. As ever any questions/suggestions post a comment and i'll get back to you!
Just glad to contribute. Most mods have almost always already been perfected, so I'm happy to help where I can.

Nominated!
Reply With Quote
  #13  
Old 02-01-2011, 09:11 PM
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeh, .com works universally though which is why i decided to change. Like i said hadn't noticed it was .co.uk! lol, thanks again.
Reply With Quote
  #14  
Old 02-01-2011, 11:25 PM
RK KINGKONG RK KINGKONG is offline
 
Join Date: May 2010
Location: NEW JERSEY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is excellent im loving your lil mods , thanks for your work effort & time . much appreciated .
running 4.1.1
Reply With Quote
  #15  
Old 04-25-2014, 03:04 PM
Piallaman's Avatar
Piallaman Piallaman is offline
 
Join Date: Sep 2010
Location: Italy
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good
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 04:28 PM.


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.04432 seconds
  • Memory Usage 2,297KB
  • Queries Executed 20 (?)
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
  • (12)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
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (9)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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