The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Location links to Google Maps, Bing Maps or Yahoo Maps Details »» | |||||||||||||||||||||||||||||||||||||||||||||
Location links to Google Maps, Bing Maps or Yahoo Maps
Developer Last Online: Dec 2014
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> 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> 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;
Screenshots
Show Your Support
|
Благодарность от: | ||
Insta-Gator |
Comments |
#2
|
|||
|
|||
what happens if someone puts in a location that :
a> Isn't a place (is the link still clickable?) b> If there are more than one of the places (London for example, think there at least 3 in the world) Looks a great idea though, tagged. |
#3
|
||||
|
||||
Quote:
B - It will go to the most well known place, people can be more specific in there location though. For example Perth, they could have the location set to Perth, UK or Perth, AU. Also the search results have a dropdown showing similar places... Hope this helps |
#4
|
||||
|
||||
For anyone in the U.S., this is the code that I used:
<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> I also added the target="_blank" after the html page so that it opens in a new window or tab (depending on your settings) instead of opening in the page that you're on. Great mod, members already love it and it's only been in a few mins! |
#5
|
||||
|
||||
Appologies i didn't even notice that it was .co.uk .
Will be updating the mod shortly anyway, glad you like it. |
#6
|
|||
|
|||
What do you plan on adding?
|
#7
|
|||
|
|||
Installed for testing with thanks ...
Seems to work well, except of course for people who put cute phrases in their locations instead of actualt locations .. By the way, used bulldog's code instead of original... Quote:
Doug |
#8
|
||||
|
||||
I'll be adding new maps shortly and hopefully make the install automated in time. Any suggestions on what people would like to see is welcome.
|
#9
|
||||
|
||||
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!
|
#10
|
|||
|
|||
Excellent :up: Nominated MOTM
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|