Back to vBulletin 3.6 Template Modifications

Clickable user location using google maps
Mod Version: 1.00, by 4x4 Mecca

This modification is in the archives.
vB Version: 3.6.5 Rating: (2 votes - 5.00 average) Installs: 17
Released: 20 Apr 2007 Last Update: Never Downloads: 7
Not Supported  

Introduction:
Have you ever wondered where https://maps.google.com/maps?f=q&hl=en&q=Orange,%20Ca was? Well now you can click on a users location and it'll bring it up in a new window via google maps.

Hack Requirements:
None

Original Version 1.0
Installation:
Find
Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
Replace it with
Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: <a href="http://maps.google.com/maps?f=q&hl=en&q=$post[field2]" title="Find $post[username] on Google Maps!" target="_blank">$post[field2]</a></div></if>
UPDATE:
I've changed it from the complete location being a link, to an image of a globe before their location. The globe is now the link, it's a much cleaner install

Upgrade instructions:
FIND in your postbit, or postbit_legacy
Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: <a href="http://maps.google.com/maps?f=q&hl=en&q=$post[field2]" title="Find $post[username] on Google Maps!" target="_blank">$post[field2]</a></div></if>
REPLACE WITH
Code:
<if condition="$post['field2']">
<div>$vbphrase[location_perm]: <a href="http://maps.google.com/maps?f=q&hl=en&q=$post[field2]" title="Find $post[username] on Google Maps!" target="_blank"><img class="inlineimg" src="images/globe.gif" alt="Find $post[username] on Google Maps!" border="0" /></a> $post[field2] 
</div></if>

Fresh install of new version

FIND in your postbit, or postbit_legacy
Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
REPLACE WITH
Code:
<if condition="$post['field2']">
<div>$vbphrase[location_perm]: <a href="http://maps.google.com/maps?f=q&hl=en&q=$post[field2]" title="Find $post[username] on Google Maps!" target="_blank"><img class="inlineimg" src="images/globe.gif" alt="Find $post[username] on Google Maps!" border="0" /></a> $post[field2] 
</div></if>

Demo:
http://www.4x4mecca.com/forum/showpost.php?p=12753&postcount=8

Download

No files for download.

Screenshots

Click image for larger version
Name:	Map_globe.jpg
Views:	147
Size:	2.4 KB
ID:	64136  

Similar Mods

Profile Enhancements Member Info Map - display the location of the user with Google Maps vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024