Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Member Info Map - display the location of the user with Google Maps Details »
Member Info Map - display the location of the user with Google Maps
Mod Version: 1.1, by MrNase (Member) MrNase is offline
Developer Last Online: Sep 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (4 votes - 4.75 average) Installs: 17
Released: 30 Nov 2007 Last Update: 30 Nov 2007 Downloads: 174
Not Supported Uses Plugins Auto-Template Additional Files  

Hi there!

This mini mod allows you to place a map of the user location on the Member Info Page (aka profile).

The user can define his/her location and wether he/she wants to show a map or not in his/her profile. It uses the Google Maps API and jQuery.


You don't need to modify a template or a file, simply follow the instructions:


First step:
Go to the 'Plugins & Products' section in your AdminCP.
Click on 'Manage Products' and import the *.xml file I attached.


Second step:
Part 1:
Go to the 'User Profile Fields' section in your AdminCP.
Add a new User Profile Field -> Single-Line Text Box
  • Enter a title and a description.
  • Edit the following settings:
  • Field Searchable on Members List -> no
  • Show on Members List -> no
Click 'save'.
Note the ID/name of that profile field (field5, field100 or whatever)


Part 2:
Add a new User Profile Field -> Single-Selection Radio Button
  • Enter a title and a description.
  • Edit the following settings:
  • Options -> yes (next line) no
  • Field Searchable on Members List -> no
  • Show on Members List -> no
Click 'save'.
Note the ID/name of that profile field (field6, field100 or whatever)



Third step:
Apply for a Google Maps API-Key: http://code.google.com/apis/maps/signup.html

Put the attached file 'jquery-1.2.1.min.js' into the folder /clientscript/



Fourth step:
Go to the 'vBulletin Options' section in your AdminCP.
Select the settings 'User Listing & Profile Viewing'.
Copy and Paste the API-Key from step three to the input field (Member Info Map API-Key).
Copy and Paste the name/ID of the first profile field you created to the input field (Member Info Map Data Field)
My profile field for the location is called 'field5' so I put 'field5' into that input field.

Copy and Paste the name/ID of the second profile field you created to the input field (Member Info Map Enabled Field)
My profile field that defines wether the user enabled or disabled his map is called 'field6' so I put 'field6' into that input field.


Fifth step:
Enable it via the Member Info Map ENABLED-setting

Now, encourage your users to edit their profile and add a location.


Version 1.1:
Fixes a stupid bug.
To update, either import the attached *.xml again or change the plugin manually.

Manual update:
Edit the plugin 'Member Info Map - member.php'.
Set the Hook Location to 'member_execute_start'.

Replace the Plugin PHP Code with this code:

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






Install this Mini Mod at own risk. I tested it once and it worked. And don't forget to click 'install'!!

Download Now

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

Screenshots

Click image for larger version

Name:	Bild 1.png
Views:	774
Size:	108.7 KB
ID:	72814   Click image for larger version

Name:	Bild 2.png
Views:	535
Size:	13.1 KB
ID:	72815   Click image for larger version

Name:	Bild 3.jpg
Views:	412
Size:	32.3 KB
ID:	72816  

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
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 01 Dec 2007, 07:06
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
w00t, First install.
Thanks dude, it's a great asset.
__________________

Reply With Quote
  #3  
Old 01 Dec 2007, 09:27
Robru's Avatar
Robru Robru is offline
 
Join Date: Aug 2005
Thanks for this marvelous hack
Reply With Quote
  #4  
Old 01 Dec 2007, 17:07
Catziggy Catziggy is offline
 
Join Date: Nov 2007
Works great thanks
Reply With Quote
  #5  
Old 02 Dec 2007, 11:33
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
I'm glad it works for you.


One thing makes me wanna cry: 31 downloads and only 8 installs?
Reply With Quote
  #6  
Old 02 Dec 2007, 18:50
Catziggy Catziggy is offline
 
Join Date: Nov 2007
I might have an issue.

My own location shows up perfectly but when i look at other peoples locations they all show as mine and even if people turn off the googlemap i still see them as my locations. Any ideas?
Reply With Quote
  #7  
Old 02 Dec 2007, 19:05
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
That's strange. I'll look into it ASAP.


1.1 is out which fixes that stupid bug. I should have known that $vbulletin->userinfo and $userinfo are two different pair of shoes.

Last edited by MrNase; 02 Dec 2007 at 19:26.
Reply With Quote
  #8  
Old 02 Dec 2007, 19:34
Catziggy Catziggy is offline
 
Join Date: Nov 2007
Is it the current download? If so do i uninstal it and then reinstal or just overwrite the files?
Reply With Quote
  #9  
Old 02 Dec 2007, 20:12
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
You might just overwrite the old product with the new product but then you'll need to configurate it again.

I have posted the instructions on how to manually update it, you need to edit one plugin and that's it.
Reply With Quote
  #10  
Old 02 Dec 2007, 20:52
Catziggy Catziggy is offline
 
Join Date: Nov 2007
still doesnt seem to be working for me

tried to do it both ways

manual editing first then overwrite

http://www.timelessgaming.com

can you check it out?
Reply With Quote
  #11  
Old 02 Dec 2007, 21:08
Jimandbob Jimandbob is offline
 
Join Date: Apr 2006
Real name: Jim
I have installed as per instructions but cannot get the map to show at all

www.freeneasy.co.uk/forum
Reply With Quote
  #12  
Old 03 Dec 2007, 15:16
DrKNickel DrKNickel is offline
 
Join Date: Oct 2007
I Installed it too and it just doesnt show up... any ideas?
Reply With Quote
  #13  
Old 15 Dec 2007, 07:42
Rs06 Ant's Avatar
Rs06 Ant Rs06 Ant is offline
 
Join Date: Dec 2007
Any update. Doesnt seem to work for me either!
Reply With Quote
  #14  
Old 15 Dec 2007, 09:34
mhc1576 mhc1576 is offline
 
Join Date: Oct 2005
I have already 3 fields that combined will give a good input to Google.
Is it possible to modify Member Info Map Data Field ('memberinfo_map_fielddata' ex. field5) to combine the fields (ex. field20+field21+field22) instead of using a single field.

This is the code snippet I think:


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

Does this hack work on < 3.6.8, eg. 3.6.5

Last edited by mhc1576; 15 Dec 2007 at 09:40.
Reply With Quote
  #15  
Old 15 Jan 2008, 07:24
Raptor Raptor is offline
 
Join Date: Nov 2001
map doesnt show at all for me either

vb 3.6.4
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 03:41.

Layout Options | Width: Wide Color: