The Arcive of vBulletin Modifications Site. |
|
Clickable user location using google maps Details »»
|
|||||||||||||||||||||||||||
|
Clickable user location using google maps
Developer Last Online: Jun 2013
Introduction:
Have you ever wondered where Orange, CA 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> 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> 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> 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> 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: 4x4Mecca.com Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I don't need to reserve this post
|
|
#3
|
||||
|
||||
|
To work with MEMBERINFO, change
HTML Code:
$post['field2'] HTML Code:
$userinfo['field2'] |
|
#4
|
|||
|
|||
|
Thanks! I'm new to this, should I update the mod with that option for users with an older version or something?
|
|
#5
|
||||
|
||||
|
Quote:
EDIT: However, you may want to rephrase your installation instructions and change "Find" to something like "In postbit/posbit_legacy find...." |
|
#6
|
||||
|
||||
|
Thanx for sharing this modification.
Question: What if someone has a "parody" as their location? example = Location: Cyberspace, Tennessee Jacquii. |
|
#8
|
||||
|
||||
|
LOL - OK - Thanx for the mod
![]() Jacquii. |
|
#9
|
|||
|
|||
|
seems decent but if people are spelling their city, not everyone will spell it right meaning no results. Like for example, Chicago. Some of us spell it "Chicago", "Chi-Town", "Chi Town", "Windy City", "The GO" ect.
|
|
#10
|
|||
|
|||
|
And you'll get interesting results in google.
I made a similar mod for phpBB3 nice work. |
![]() |
|
|