4x4 Mecca
04-19-2007, 10:00 PM
Introduction:
Have you ever wondered where Orange, CA (http://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
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
Replace it with
<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
<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
<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
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
REPLACE WITH
<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:
4x4Mecca.com (http://www.4x4mecca.com/forum/showpost.php?p=12753&postcount=8)
Have you ever wondered where Orange, CA (http://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
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
Replace it with
<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
<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
<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
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
REPLACE WITH
<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:
4x4Mecca.com (http://www.4x4mecca.com/forum/showpost.php?p=12753&postcount=8)