Location links to Google Maps, Bing Maps or Yahoo Maps
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;
Download No files for download. Screenshots |
Similar Mods
Profile Enhancements Member Info Map - display the location of the user with Google Maps | vBulletin 3.6 Add-ons |
Show Thread Enhancements Clickable user location using google maps | vBulletin 3.6 Template Modifications |