vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Vbulletin World Map System (https://vborg.vbsupport.ru/showthread.php?t=109819)

Trigunflame 03-14-2006 04:40 PM

can leave it alone, u probably dont need it.

Trigunflame 03-14-2006 07:39 PM

Quote:

Originally Posted by heynurse
true. I might try that at a latter time. Thanks for the tip.

Click install btw, ;)

gavinzac 03-14-2006 09:35 PM

this is great! is it possible to cut off antartica and siberia etc?

also, this has made me REALLY inquisitive. is it possible to make this output where people are in text format? like, i have a user in SOuth Africa, i want to know who it is. is it possible to have it say where a user is based in their member profile, using this database?

srpompon 03-14-2006 10:42 PM

Hello, i get his error in my fist run:

Warning: Unexpected character in input: ' in /www/docs/orchidswamp.com/public_html/worldmap/geoip/geoipcity.inc on line 2066

Parse error: parse error, unexpected T_STRING in /www/docs/orchidswamp.com/public_html/worldmap/geoip/geoipcity.inc on line 2067

In my worldmap i have :

[us8 public_html]$ ls -alR worldmap
worldmap:
total 16
drwxr-xr-x 3 801 801 4096 Mar 14 23:31 .
drwxr-xr-x 32 801 801 8192 Mar 15 00:07 ..
drwxr-xr-x 2 801 801 4096 Mar 15 00:33 geoip

worldmap/geoip:
total 24344
drwxr-xr-x 2 801 801 4096 Mar 15 00:33 .
drwxr-xr-x 3 801 801 4096 Mar 14 23:31 ..
-rw-r--r-- 1 801 801 24887729 Mar 7 03:41 GeoLiteCity.dat
[us8 public_html]$

Please help,

Thanks!!

Ivan

heynurse 03-15-2006 12:19 AM

Quote:

Originally Posted by Trigunflame
Click install btw, ;)

I don't currently have it installed :) But I will definately click install when I re-install it ;)

headrat 03-15-2006 08:53 AM

did I miss an area or code where I can change what is pulled up to be displayed. Right now it looks like it is only pulling up my subscribers, I would like it to display for every member. Any help in the coding and location to find it?

Trigunflame 03-15-2006 08:58 AM

Quote:

Originally Posted by gavinzac
this is great! is it possible to cut off antartica and siberia etc?

also, this has made me REALLY inquisitive. is it possible to make this output where people are in text format? like, i have a user in SOuth Africa, i want to know who it is. is it possible to have it say where a user is based in their member profile, using this database?

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.

Trigunflame 03-15-2006 08:59 AM

Quote:

Originally Posted by srpompon
Hello, i get his error in my fist run:

Warning: Unexpected character in input: ' in /www/docs/orchidswamp.com/public_html/worldmap/geoip/geoipcity.inc on line 2066

Parse error: parse error, unexpected T_STRING in /www/docs/orchidswamp.com/public_html/worldmap/geoip/geoipcity.inc on line 2067

In my worldmap i have :

[us8 public_html]$ ls -alR worldmap
worldmap:
total 16
drwxr-xr-x 3 801 801 4096 Mar 14 23:31 .
drwxr-xr-x 32 801 801 8192 Mar 15 00:07 ..
drwxr-xr-x 2 801 801 4096 Mar 15 00:33 geoip

worldmap/geoip:
total 24344
drwxr-xr-x 2 801 801 4096 Mar 15 00:33 .
drwxr-xr-x 3 801 801 4096 Mar 14 23:31 ..
-rw-r--r-- 1 801 801 24887729 Mar 7 03:41 GeoLiteCity.dat
[us8 public_html]$

Please help,

Thanks!!

Ivan

Maybe upload all the files first?

Trigunflame 03-15-2006 09:01 AM

Quote:

Originally Posted by headrat
did I miss an area or code where I can change what is pulled up to be displayed. Right now it looks like it is only pulling up my subscribers, I would like it to display for every member. Any help in the coding and location to find it?

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.

headrat 03-15-2006 12:15 PM

So, is there a way to have to pull and plot all registered members?

ConqSoft 03-15-2006 12:18 PM

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.

headrat 03-15-2006 12:23 PM

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?

headrat 03-15-2006 12:48 PM

Oops, and what php are you pulling from, I can't seem to find that one.

headrat 03-15-2006 01:07 PM

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?

gavinzac 03-15-2006 01:07 PM

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

headrat 03-15-2006 03:25 PM

anyone got anything on this and getting ALL the REGISTERED IPs to by shown?

ConqSoft 03-15-2006 03:34 PM

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. ;)

headrat 03-15-2006 04:04 PM

I think that did it, it at least put MORE on there.

ConqSoft 03-15-2006 04:13 PM

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.... :D

srpompon 03-15-2006 05:01 PM

Quote:

Originally Posted by Trigunflame
Maybe upload all the files first?


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

:confused:


Thanks,

Ivan

cherylferraro 03-15-2006 05:11 PM

Thank you so much for creating this!!!

I used ConqSoft's class_wmp.php change https://vborg.vbsupport.ru/showpost....&postcount=177 which worked well too.

It's my favorite new toy...

DementedMindz 03-15-2006 06:55 PM

question now will this just change it for All Members or both?

ConqSoft 03-15-2006 06:57 PM

All Members... The Who's Online map goes by the IP addresses of all members/guests that are currently online, so this doesn't have any affect on that.

DementedMindz 03-15-2006 06:59 PM

ok thanks for the code and the quick response

Trigunflame 03-15-2006 07:11 PM

Quote:

Originally Posted by srpompon
I put all the files, and show the error...

:confused:


Thanks,

Ivan

From that FTP list command.. you were missing 3 files in the worldmap/geoip directory.

Trigunflame 03-15-2006 07:34 PM


Quarterbore 03-15-2006 09:32 PM

Back to the server load issue mentioned a few pages back...

I think it would pay to redo the hack so that it only updates the MEMEBER map once a day (at an off time) and then have it do the calculations for the WHO IS ONLINE every 15-minutes... The server load has to come from plotting thousands of members (MEMBER MAP) as opposed to the dozens to hundreds (WHO'S ONLINE) so splitting the two tasks would save a lot of server load...

I am swamped with work but if nobody else beats me to it I will see about splitting the tasks so that seperate CRON jobs can make it run.

drex 03-16-2006 10:01 AM

From one of my users:

Quote:

Cool new feature!

I'm not sure what the purpose is for the shrinking/expanding maps. I think having the larges one only is fine unless we can actually zoom in on a region.

Any way to list the members when we mouse over a spot? I guess this only makes sense if we can zoom in to an individual marker.
Sigh-- there always has to be one who wants more! LOL, and from a non-donating user to boot!

https://vborg.vbsupport.ru/

DementedMindz 03-16-2006 01:39 PM

i was just wondering why is the title of the page like this???

<title>$vboptions[bbtitle] - View All Thread Bans</title>

its on the worldmap.php page

Pvtiste 03-16-2006 03:58 PM

Oh !! Very very good work guy Thanks a lot for your sharing ;)

How to display on the map who is who ? Is it possible ?

Thx !

ConqSoft 03-16-2006 04:20 PM

Here's some ideas for added features, based on this:
http://clustrmaps.com/counter/maps.p...clustrmaps.com

How about an option to vary the size of the "dot" based on how many people in that area?

It also lets you click on areas to get a "zoomed" map of that area.

Keyser Soze 03-16-2006 05:32 PM

wohoooo! what a nice hack...
installed it: http://forum.modopo.com/worldmap.php

Thank you so much!

Pvtiste 03-17-2006 12:04 AM

installed it : http://pvtistes.net/upload/worldmap.php

Good work !

DementedMindz 03-17-2006 01:19 AM

Quote:

Originally Posted by ConqSoft
Here's some ideas for added features, based on this:
http://clustrmaps.com/counter/maps.p...clustrmaps.com

How about an option to vary the size of the "dot" based on how many people in that area?

It also lets you click on areas to get a "zoomed" map of that area.


thats a good idea i think.... i wish it would show who the member on the dot was maybe some sort of cache system could be used this way it aint using so much queries and resources have it update once a day or maybe twice a week for newer members it missed.... i know on a board with alot of members it may be a resource hog but if it only updated it once or twice a week and had that file cached it may save alot of resources too... maybe you and Trigunflame could get together and use his cached system and have it work with this to save it in cache..... just trying to give some ideas on improvement ... sorry if it sounds stupid :confused:

Trigunflame 03-17-2006 01:01 PM

Quote:

Originally Posted by Quarterbore
Back to the server load issue mentioned a few pages back...

I think it would pay to redo the hack so that it only updates the MEMEBER map once a day (at an off time) and then have it do the calculations for the WHO IS ONLINE every 15-minutes... The server load has to come from plotting thousands of members (MEMBER MAP) as opposed to the dozens to hundreds (WHO'S ONLINE) so splitting the two tasks would save a lot of server load...

I am swamped with work but if nobody else beats me to it I will see about splitting the tasks so that seperate CRON jobs can make it run.

I doubt its causing that much server load bro; Ive ran the script on a few forums with 80k+ members and noticed no such increase.

Trigunflame 03-17-2006 01:01 PM

Quote:

Originally Posted by drex
From one of my users:



Sigh-- there always has to be one who wants more! LOL, and from a non-donating user to boot!

http://www.x5world.com/images/smilies/slap.gif

Tell him to get frappr, not this ;)

Trigunflame 03-17-2006 01:02 PM

Quote:

Originally Posted by DementedMindz
i was just wondering why is the title of the page like this???

<title>$vboptions[bbtitle] - View All Thread Bans</title>

its on the worldmap.php page

Cause I copied a template from my other hack, ;) just a typo need to fix it.

DementedMindz 03-18-2006 02:05 AM

Quote:

Originally Posted by Trigunflame
Cause I copied a template from my other hack, ;) just a typo need to fix it.

was just letting you know :)... any plans for any future addons to this?

vprp 03-18-2006 12:20 PM

Nevermind. Figured it out.

DementedMindz 03-18-2006 12:21 PM

did you run the task to create the images?


All times are GMT. The time now is 02:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01684 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete