Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digital Point User Map Details »»
Digital Point User Map
Version: 1.0.3, by digitalpoint digitalpoint is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 06-08-2010 Last Update: 12-01-2011 Installs: 156
Uses Plugins
Additional Files  
No support by the author.

About
This is a system for geo-locating your currently online users and plotting them on a world Google Map. You can click any of the pins for a link to pull up the user's location in Google Earth.

This is something I originally made almost 5 years ago. Now that I rewrote it for vBulletin 4, I wrapped it up as a product package and released it for the world to use.

Installation
  • Put the usermap.php file in your forum folder.
  • Install the product-digitalpoint_usermap.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
Notes
  • Important! - this uses the free GeoIP PHP extension, so you must have it installed on your server in order for it to work.
  • Uses datastore cache so it does not repeat GeoIP queries unnecessarily.
  • Upgraded to Google Maps API v3.
You can see a live version in action here:
http://forums.digitalpoint.com/usermap.php

Download Now

File Type: zip digitalpoint_usermap-103b.zip (10.9 KB, 701 views)

Screenshots

File Type: jpg world.jpg (150.3 KB, 0 views)
File Type: jpg europe.jpg (153.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
GhoHan, paulket, Trangalleiro

Comments
  #42  
Old 06-12-2010, 03:54 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by voglermc View Post
error

Fatal error: Call to undefined function geoip_record_by_name() in /home/tarheel/public_html/usermap.php on line 97
OK, so much for me giving people advice....

I now have GEOIP installed in my apache and environment, and I get this above error. What am I missing????
Reply With Quote
  #43  
Old 06-12-2010, 04:06 AM
ahmedipa ahmedipa is offline
 
Join Date: Feb 2009
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so nice thank you so much
Reply With Quote
  #44  
Old 06-12-2010, 04:13 AM
mikey1991's Avatar
mikey1991 mikey1991 is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 654
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you 'backport' this to 3.8 and release it? I have a client who would love something like this.
Reply With Quote
  #45  
Old 06-12-2010, 04:45 AM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader View Post
OK, so much for me giving people advice....

I now have GEOIP installed in my apache and environment, and I get this above error. What am I missing????
Does GeoIP show up in phpinfo() for you?
Reply With Quote
  #46  
Old 06-12-2010, 04:58 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.
Reply With Quote
  #47  
Old 06-12-2010, 05:03 AM
Tryppnotic69 Tryppnotic69 is offline
 
Join Date: Nov 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader View Post
No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.
Softlayer just installed it on my Linux server using these instructions, and it worked great.

http://www.maxmind.com/app/installation?city=1

On step 3 (http://www.maxmind.com/app/api), they used Apache Module (mod_geoip) as the API. Everything works great at my forum.
Reply With Quote
  #48  
Old 06-12-2010, 12:45 PM
LbR LbR is offline
 
Join Date: Nov 2009
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
Yeah, sorry... I knew that was going to be the biggest sticking point, but it *is* a fairly common PHP extension so some people hosting on managed servers might have some luck. For those that run their own servers, it's pretty easy to install from RPM or just compile it.

Sadly there isn't a way around needing some sort of geotargetting mechanism though. I thought about making it geotarget against my servers for people, but then people would complain about privacy and such with all the geotargetting requests going to a central server. Can't make everyone happy unfortunately.
will that work with a VPS?
Reply With Quote
  #49  
Old 06-12-2010, 04:54 PM
TeknoSounds TeknoSounds is offline
 
Join Date: Nov 2006
Location: TX
Posts: 435
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader View Post
No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.
I just installed the extension myself the other day on my Fedora box.

Just used YUM to grab the latest geoip packages (theres two you need), then just made sure the folder with the geoip.so was in my included path, restarted apache, and np
Reply With Quote
  #50  
Old 06-12-2010, 05:03 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, depending on the operating system you are running for your server, there probably is a pre-packaged RPM installer for it.

I just compiled mine from source...

Install the libraries by downloading and compiling as per the instructions here:
http://www.maxmind.com/app/c

Then download and compile/install the PHP module for it:
http://pecl.php.net/package/geoip

For my installation, the GeoCity .dat files go into /usr/local/share/GeoIP/ (I think that's the default... don't think I would have changed the path for them).

You can download the .dat files from:
http://geolite.maxmind.com/download/...y/GeoIP.dat.gz
http://geolite.maxmind.com/download/...iteCity.dat.gz
Reply With Quote
  #51  
Old 06-12-2010, 06:01 PM
pete_brady pete_brady is offline
 
Join Date: Mar 2002
Location: Dublin
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i had to manually compile from source as above but also rename GeoLiteCity.dat to GeoIPCity.dat & copy it to /var/lib/GeoIP

i was probably doing it wrong though

installed & working just fine now. thanks!

(& thanks also for your vb optimisation article at digitalpoint)
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09203 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete