Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Vbulletin World Map System Details »»
Vbulletin World Map System
Version: 2.00, by Trigunflame Trigunflame is offline
Developer Last Online: Nov 2019 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-07-2006 Last Update: 03-13-2006 Installs: 372
Template Edits
Additional Files  
No support by the author.

Vbulletin World Map Plotting System
Show Your Guest/Members From All Over The World !!!


Summary:

The core of this system I developed approximately 3 years ago but was unable to practically distribute it on vborg due to the fact the GEOIP City Database was a very expensive software product; and it is needed to map IP Addresses to Global Lat/Lon Coordinates.

With the recent availability of a "Lite" version of the City Database I have decided to build from the ground up a new hack that utilizes it to display 2 map structures.

1. Plots Your Current Members/Guest Online available on the Whos Online Page.
2. Plots Your Registered Members last known Coordinates on the Member List Page.
3. Coordinates are calculated from IP Addresses stored in your Forums Database.

Features:
  • Automatic & Accurate plotting of your Guest & Members on the WorldMap.
  • WorldMap Page to view Both Maps, added to your navbar.
  • Enable WOL, Member Plotting Independently
  • Control Panel Options
  • Specify Plotting Image Type, Size, Color
  • Specify Opaque, Alpha Transparency
  • Support for Payed Full Version of City Database
  • Updates on Scheduled Task Interval
  • Map is shown small and expands on Mouseover, then contracts back.

Instructions:

1. Download Zip File
2. Read INSTALL.TXT
3. Run the crontask manually the first time, so it will generate your images.
4. Click Install if you like it

Updates:
3/14/2006 - Forgot to uncomment keep-alive code.
3/12/2006 12:54pm -
1. Added a new Realistic World map
2. Configuration Editor partially remade, allows easier selection of Maps.
3/8/2006 11:35pm - Added a worldmap.php Page, for viewing both maps.
3/8/2006 9:52am - Fixed the jpeg output problem.

Note:

The GEOIP Binary Database can be located here:

http://www.maxmind.com/download/geoi...iteCity.dat.gz

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 03-15-2006, 12:18 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be changed to fall back to their Registration IP I suppose. Not sure how it would affect performance to do two searches though.
Reply With Quote
  #173  
Old 03-15-2006, 12:23 PM
headrat headrat is offline
 
Join Date: Mar 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually, I don't want it to do both, I only have one map showing
Just want to pull from the registration IPs, any idea as to how to code that and where?
Reply With Quote
  #174  
Old 03-15-2006, 12:48 PM
headrat headrat is offline
 
Join Date: Mar 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops, and what php are you pulling from, I can't seem to find that one.
Reply With Quote
  #175  
Old 03-15-2006, 01:07 PM
headrat headrat is offline
 
Join Date: Mar 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
PHP Code:
"SELECT post.ipaddress " .
"FROM " TABLE_PREFIX "post AS post, " 
TABLE_PREFIX "user AS user " .
"WHERE user.userid = post.userid " .
"AND user.lastpost = post.dateline" 
Its pulling up all of your members who have posted.
Is there a
Code:
"SELECT register.ipaddress"
I could use or something?
Reply With Quote
  #176  
Old 03-15-2006, 01:07 PM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
People should already have a location field per vbulletin default.

While this system could be setup to automatically insert information into that profile field it probably wouldnt be a good idea; the GEOIP city lite database while being the best 'free' IP database is still not very accurate in terms of hitting your city direct on.

So you would most likely have profiles with many false positives; the map was created to be a 'general' observation of where your members/guest are scattered throughout the world.
yeah, i understand, i suppose what i'm looking for is a city - based version of the exisiting GEOIP Country Targeting. it would be extremely cool and allow for lots of new mods such as location determined forums, ads, language selection etc.

i know, i know, go ask in the other thread its just that i've tried to do this myself by editing that code and it didnt quite work. im a jsp expert, not php
Reply With Quote
  #177  
Old 03-15-2006, 03:25 PM
headrat headrat is offline
 
Join Date: Mar 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone got anything on this and getting ALL the REGISTERED IPs to by shown?
Reply With Quote
  #178  
Old 03-15-2006, 03:34 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To have it plot ALL registered members, and not just those that have posted, do this:

In class_wmp.php, change this:
Code:
                "SELECT post.ipaddress " .
                "FROM " . TABLE_PREFIX . "post AS post, " . 
                TABLE_PREFIX . "user AS user " .
                "WHERE user.userid = post.userid " .
                "AND user.lastpost = post.dateline"
To this:
Code:
                "SELECT ipaddress " .
                "FROM " . TABLE_PREFIX . "user"
It would be better to have it use their latest post IP if available, then fall back to their registration IP if they have never posted, but I haven't gotten around to trying to do that yet... Maybe the hack author will.
Reply With Quote
  #179  
Old 03-15-2006, 04:04 PM
headrat headrat is offline
 
Join Date: Mar 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that did it, it at least put MORE on there.
Reply With Quote
  #180  
Old 03-15-2006, 04:13 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I have 5200 members who haven't posted, so switching to the Registration IP filled the map in even more.

I guess it depends on if you want to show all members, or only those members who participate.

Also, their Registration IP never changes, so if they move to a new location, their location on the map will remain the same. If you get the IP from their last post, it will always get their latest location.

There should be a way to combine the two and use the Registration IP if they have 0 posts. I may play around with it, unless the hack author wants to....
Reply With Quote
  #181  
Old 03-15-2006, 05:01 PM
srpompon srpompon is offline
 
Join Date: Feb 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trigunflame
Maybe upload all the files first?

I put all the files, and show the error...




Thanks,

Ivan
Reply With Quote
Reply

Thread Tools

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 01:30 AM.


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.07911 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete