![]() |
Clickable user location using google maps
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']"> 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']"> Demo: 4x4Mecca.com |
I don't need to reserve this post :)
|
To work with MEMBERINFO, change
HTML Code:
$post['field2'] HTML Code:
$userinfo['field2'] |
Thanks! I'm new to this, should I update the mod with that option for users with an older version or something?
|
Quote:
EDIT: However, you may want to rephrase your installation instructions and change "Find" to something like "In postbit/posbit_legacy find...." |
Thanx for sharing this modification.
Question: What if someone has a "parody" as their location? example = Location: Cyberspace, Tennessee Jacquii. |
|
LOL - OK - Thanx for the mod ;)
Jacquii. |
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.
|
And you'll get interesting results in google.
I made a similar mod for phpBB3 nice work. |
All times are GMT. The time now is 11:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|