Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Location links to Google Maps, Bing Maps or Yahoo Maps Details »
Location links to Google Maps, Bing Maps or Yahoo Maps
Mod Version: 1.01, by boydy (Coder/Designer) boydy is offline
Developer Last Online: Dec 2014 I like it Show Printable Version Email this Page

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 -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace
-
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



---------------------------------------------------------------------------------------

Bing Maps:


Open Template - Postibit Templates -> postbit_legacy

Find -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace
-
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

---------------------------------------------------------------------------------------

Yahoo Maps:


Open Template - Postibit Templates -> postbit_legacy

Find -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace
-
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



=|= Postbit (Horizontal) =|=


Google Maps:

Open Template - Postibit Templates -> postbit

Find -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace
-
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



---------------------------------------------------------------------------------------

Bing Maps:


Open Template - Postibit Templates -> postbit

Find -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



---------------------------------------------------------------------------------------

Yahoo Maps:


Open Template - Postibit Templates -> postbit

Find -
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Replace
-
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1296177055.png
Views:	91
Size:	4.8 KB
ID:	126176   Click image for larger version

Name:	1296177126.jpg
Views:	183
Size:	125.3 KB
ID:	126177   Click image for larger version

Name:	1296177215.png
Views:	35
Size:	4.5 KB
ID:	126178   Click image for larger version

Name:	1296177242.jpg
Views:	79
Size:	130.7 KB
ID:	126179  

Click image for larger version

Name:	1296209064.png
Views:	31
Size:	4.7 KB
ID:	126180   Click image for larger version

Name:	1296209095.jpg
Views:	52
Size:	145.9 KB
ID:	126181   Click image for larger version

Name:	1296209183.png
Views:	32
Size:	4.9 KB
ID:	126182   Click image for larger version

Name:	1296209211.jpg
Views:	46
Size:	109.7 KB
ID:	126183  

Click image for larger version

Name:	1296209926.png
Views:	15
Size:	3.3 KB
ID:	126184  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements Member Info Map - display the location of the user with Google Maps MrNase vBulletin 3.6 Add-ons 21 27 Dec 2009 20:33
Show Thread Enhancements Clickable user location using google maps 4x4 Mecca vBulletin 3.6 Template Modifications 21 02 Jun 2007 06:00

Comments
  #2  
Old 28 Jan 2011, 12:13
zelnik zelnik is offline
 
Join Date: Aug 2008
what happens if someone puts in a location that :

a> Isn't a place (is the link still clickable?)
b> If there are more than one of the places (London for example, think there at least 3 in the world)

Looks a great idea though, tagged.
Reply With Quote
  #3  
Old 28 Jan 2011, 12:21
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Originally Posted by zelnik View Post
what happens if someone puts in a location that :

a> Isn't a place (is the link still clickable?)
b> If there are more than one of the places (London for example, think there at least 3 in the world)

Looks a great idea though, tagged.
A - Well yes the link is still clickable as there isn't really an easy way for the system to determine whether it is a place or not. Let's be honest there are alot of obscure places in the world lol. Unfortunately nothing i can do about this.

B - It will go to the most well known place, people can be more specific in there location though. For example Perth, they could have the location set to Perth, UK or Perth, AU. Also the search results have a dropdown showing similar places...

Hope this helps
Reply With Quote
  #4  
Old 30 Jan 2011, 01:16
bulldog51981's Avatar
bulldog51981 bulldog51981 is offline
 
Join Date: Oct 2010
For anyone in the U.S., this is the code that I used:

<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>

I also added the target="_blank" after the html page so that it opens in a new window or tab (depending on your settings) instead of opening in the page that you're on.

Great mod, members already love it and it's only been in a few mins!
Reply With Quote
  #5  
Old 30 Jan 2011, 08:58
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Appologies i didn't even notice that it was .co.uk .

Will be updating the mod shortly anyway, glad you like it.
Reply With Quote
  #6  
Old 30 Jan 2011, 13:30
zelnik zelnik is offline
 
Join Date: Aug 2008
Originally Posted by boydy View Post
Appologies i didn't even notice that it was .co.uk .

Will be updating the mod shortly anyway, glad you like it.
What do you plan on adding?
Reply With Quote
  #7  
Old 30 Jan 2011, 14:30
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Installed for testing with thanks ...

Seems to work well, except of course for people who put cute phrases in their locations instead of actualt locations ..

By the way, used bulldog's code instead of original...

Originally Posted by bulldog51981 View Post
For anyone in the U.S., this is the code that I used:

<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>
Regards,
Doug
Reply With Quote
  #8  
Old 30 Jan 2011, 15:11
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Originally Posted by zelnik View Post
What do you plan on adding?
I'll be adding new maps shortly and hopefully make the install automated in time. Any suggestions on what people would like to see is welcome.
Reply With Quote
  #9  
Old 30 Jan 2011, 20:56
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
First update has been done. Enjoy guys and thanks to bulldog for the heads up regarding the URL. As ever any questions/suggestions post a comment and i'll get back to you!
Reply With Quote
  #10  
Old 31 Jan 2011, 08:02
flegul flegul is offline
 
Join Date: Dec 2009
Excellent Nominated MOTM
Reply With Quote
  #11  
Old 31 Jan 2011, 17:04
bulldog51981's Avatar
bulldog51981 bulldog51981 is offline
 
Join Date: Oct 2010
Originally Posted by boydy View Post
Appologies i didn't even notice that it was .co.uk .

Will be updating the mod shortly anyway, glad you like it.
No problem with the .co.uk extension, people are all over the world here so for those in that region I'm sure it works perfectly for them.

Originally Posted by boydy View Post
First update has been done. Enjoy guys and thanks to bulldog for the heads up regarding the URL. As ever any questions/suggestions post a comment and i'll get back to you!
Just glad to contribute. Most mods have almost always already been perfected, so I'm happy to help where I can.

Nominated!
Reply With Quote
  #12  
Old 01 Feb 2011, 23:11
boydy's Avatar
boydy boydy is offline
 
Join Date: Jan 2011
Yeh, .com works universally though which is why i decided to change. Like i said hadn't noticed it was .co.uk! lol, thanks again.
Reply With Quote
  #13  
Old 02 Feb 2011, 01:25
RK KINGKONG RK KINGKONG is offline
 
Join Date: May 2010
Real name: ROBB
this is excellent im loving your lil mods , thanks for your work effort & time . much appreciated .
running 4.1.1
__________________
RIGHTEOUSKINGS GAMING COMMUNITY Running VB 4.1.4
Reply With Quote
  #14  
Old 25 Apr 2014, 17:04
Piallaman's Avatar
Piallaman Piallaman is offline
 
Join Date: Sep 2010
Location: Italy
Real name: Gianni
Good
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:23.

Layout Options | Width: Wide Color: