Back to vBulletin 4.x Template Modifications

Location links to Google Maps, Bing Maps or Yahoo Maps
Mod Version: 1.01, by boydy

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 15
Released: 28 Jan 2011 Last Update: Never Downloads: 0
Not Supported Template Edits  

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.

Download

No files for download.

Screenshots

Click image for larger version
Name:	1296177055.png
Views:	98
Size:	4.8 KB
ID:	126176   Click image for larger version
Name:	1296177126.jpg
Views:	190
Size:	125.3 KB
ID:	126177   Click image for larger version
Name:	1296177215.png
Views:	42
Size:	4.5 KB
ID:	126178   Click image for larger version
Name:	1296177242.jpg
Views:	86
Size:	130.7 KB
ID:	126179  

Click image for larger version
Name:	1296209064.png
Views:	38
Size:	4.7 KB
ID:	126180   Click image for larger version
Name:	1296209095.jpg
Views:	59
Size:	145.9 KB
ID:	126181   Click image for larger version
Name:	1296209183.png
Views:	39
Size:	4.9 KB
ID:	126182   Click image for larger version
Name:	1296209211.jpg
Views:	53
Size:	109.7 KB
ID:	126183  

Click image for larger version
Name:	1296209926.png
Views:	22
Size:	3.3 KB
ID:	126184  

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

vblts.ru supports vBulletin®, 2022-2024