vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point User Map (https://vborg.vbsupport.ru/showthread.php?t=244236)

Boofo 02-28-2011 09:11 AM

I take it by your silence either that is a "no" or not worth your time fixing?

traen 02-28-2011 10:57 AM

Can you disable it for certain usergroups or is it a all or nothing ordeal?

Boofo 02-28-2011 11:10 AM

Quote:

Originally Posted by traen (Post 2167822)
Can you disable it for certain usergroups or is it a all or nothing ordeal?

There is no settings for that. It only works if there are logged in users. But I have a user logged in the other day and she got the errors and an empty map. She logged on later and it was fine.

digitalpoint 03-01-2011 05:11 AM

Quote:

Originally Posted by Boofo (Post 2166960)
Shaun, is there a way to suppress the foreach errors that show up if a guest clicks the link and no users are logged in?

Yeah, would be simple enough to wrap it in some logic to prevent it from foreaching if there are none to foreach.

Not a *huge* priority though to be honest. The percentage of forums that have no users on (guests, registered or spiders) I would guess might be like 1 in 1,000 (MAYBE). Then on top of it, the first page that a user starts their session at is the user map page... probably another 1 in 1,000 chance. So yeah... it obviously could happen, but the chances of everything (no users, spiders, etc.), then the first user hitting the user map page as their first page seems rather low.

I'll do it in the next version, but not going to bother with a version just for that.

Boofo 03-01-2011 05:57 AM

Any idea when the next version might be coming then?

Also, The errors showed up for a user that was logged in using Safari. When she logged out and back in later, she didn't get the errors. So it also seems to happen sporadically under certain conditions.

digitalpoint 03-01-2011 08:00 AM

Well the only time it should happen is if no one has been on the forum (logged in, spiders or guests) in whatever time the session window is set to. And even then it probably is only going to happen if the first page view of the user is on the user map page (basically the request that creates the session).

Boofo 03-01-2011 10:31 AM

My point was that is does happen, though.

OldSchoolDSL 03-25-2011 08:51 PM

Code:

Warning: Invalid argument supplied for foreach() in+[path]/usermap.php+on line+128
Warning: Invalid argument supplied for foreach() in+[path]/usermap.php+on line 133
Warning: Invalid argument supplied for foreach() in+[path]/usermap.php+on line 152

Had this error show up on another community. Only had 2 members online.

It could be the caching causing it when it renews the cache.

x YNWA x 04-02-2011 10:15 PM

Does anyone have a step by step guide on how I install this GeoIP PHP extension please? http://www.maxmind.com/app/php Just gives a download link but no instructions... Thanks

OldSchoolDSL 04-03-2011 02:31 AM

Quote:

Originally Posted by x YNWA x (Post 2180233)
Does anyone have a step by step guide on how I install this GeoIP PHP extension please? http://www.maxmind.com/app/php Just gives a download link but no instructions... Thanks


As root:

Debian / Ubuntu

Code:

aptitude install php5-geoip
Red Hat / Cent OS / Fendora

Code:

yum install php5-geoip
Restart Apached or Lightpd or Nginx (which ever you are using)

Done

x YNWA x 04-03-2011 09:10 AM

Ok So I got the host to install this extension, the map thing appears now but it is a big white box and these errors are above it:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/global.php(29) : eval()'d code on line 60

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 128

Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 133

Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 152

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line

Any ideas?

digitalpoint 04-03-2011 06:25 PM

Quote:

Originally Posted by x YNWA x (Post 2180341)
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Any ideas?

Did you by chance read the error message you posted? :)

x YNWA x 04-05-2011 08:42 PM

Quote:

Originally Posted by digitalpoint (Post 2180500)
Did you by chance read the error message you posted? :)

The hosting company said they had installed the database too, I even uploaded the database myself for them to move into the correct file. A day later they email me saying they put the DB in the wrong folder and it was working! So working fine now, I have two versions, One for when users registered and one which shows current online users.

Boofo 04-15-2011 08:58 AM

Excellent update, Shawn. No more errors. Thanks for the fix, sir. ;)

hassshasss 04-29-2011 08:29 AM

Hi,
I did install the GeoIP extension is said to have installed in the VPS, but the map does not beep.
I wonder what could be the problem?
Link : http://www.turkiyemotosiklet.org/usermap.php

Boofo 04-29-2011 09:24 AM

Did you upload the files GeoIP dat files?

hassshasss 04-29-2011 09:27 AM

Quote:

Originally Posted by Boofo (Post 2189933)
Did you upload the files GeoIP dat files?

yes I've installed the server.
Before you install the downloaded after giving an error that the error has been lost.

digitalpoint 04-29-2011 09:28 AM

Not sure to be honest... you have so many JavaScript errors on that page (unrelated to the map) that the browser probably just stops executing all JS (which is what the map uses to run). The good news, is it looks like the GeoIP extension is installed properly because if you look at the source of the page, it has the long/lat that it *wants* to plot.

hassshasss 04-29-2011 09:36 AM

Quote:

Originally Posted by digitalpoint (Post 2189936)
Not sure to be honest... you have so many JavaScript errors on that page (unrelated to the map) that the browser probably just stops executing all JS (which is what the map uses to run). The good news, is it looks like the GeoIP extension is installed properly because if you look at the source of the page, it has the long/lat that it *wants* to plot.

I did not see this error page, javascript http://www.turkiyemotosiklet.org/usermap.php page.
Can not you tell me wonder if the existing errors? :confused:

sadaar 05-15-2011 03:23 AM

I have come a long way in my education and have revisited this mod. I was able to get it working by adding geoip.custom_directory = /var/lib/GeoIP/ to my php.ini.

One question if I may.. I would like this turned off for certain usergroups. It doesn't need to be an option for them, I would just need to know what code to add to stop the display of certain usergroups. Is that a possibility?

Thanks for the GREAT mod :)

digitalpoint 05-15-2011 04:45 AM

You want to have them not show on the map, or not see the map?

sadaar 05-17-2011 11:44 PM

Not show up on the map at all. Like, top level admins not show up on the map.

reddyink 05-20-2011 05:57 PM

1 Attachment(s)
Installed on the server. Template shows up but not the actual MAP.

install.php shows
Geoip

geoip support enabled
geoip extension version 1.0.7
geoip library version 1004005

Directive Local Value Master Value
geoip.custom_directory no value no value

Changed to see if it works.

$user_location = geoip_record_by_name($_SERVER['REMOTE_ADDR']);

Thanks for the help!

digitalpoint 05-20-2011 07:09 PM

What's the URL where you have it running?

reddyink 05-22-2011 10:57 AM

Quote:

Originally Posted by digitalpoint (Post 2198120)
What's the URL where you have it running?

Intranet (localhost)

lapiervb 05-30-2011 01:03 AM

I love this mod I have just never been able to get it to work. Who can I pay to set this up for me?

Kraxell 07-03-2011 10:42 PM

Hello,

is it possible to show, which user come from which country/town?

digitalpoint 07-04-2011 08:03 PM

Quote:

Originally Posted by Kraxell (Post 2216400)
Hello,

is it possible to show, which user come from which country/town?

No sorry... too many privacy issues.

Kraxell 07-05-2011 08:50 AM

yes but for a guild is that perfect :)

But thanks alot.

danswano 07-05-2011 07:55 PM

Thanks.

mcyates 07-17-2011 06:35 PM

Just got my host (Site5) to enable the GeoIP PHP extension but i'm stuck with these errors and no map!!

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/local/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 166

digitalpoint 07-18-2011 07:39 AM

Did you check the obvious?

(that the file /usr/local/share/GeoIP/GeoIPCity.dat exists)

bpi007 08-11-2011 06:46 AM

Hello,

I'm looking for a version of this mod without geoip and user's point manually where they live.

(geoip not installed on my server)

Thanks

10 Gauge 08-12-2011 01:12 PM

I'm having a similar error as above....

Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100

/var/lib directory only contains GeoIP.dat where do I acquire GeoIPCity.dat?

Edit: Figured it out. I copied GeoLiteCity.dat to /var/lib/GeoIP directory and renamed it to GeoIPCity.dat and it did the trick.

Great mod, thank you!

reddyink 08-17-2011 01:50 AM

1 Attachment(s)
SOLVED
It shows the map but doesn't show users on it for some reason. Who's online list for forum (near footer) shows users but doesn't display on this map.

IP address also shows on forum so I tried changing to
$user_location = geoip_record_by_name(IPADDRESS);
Appreciate help.

EDIT: I had to set up which usergroups showup on the map.

PBRiot 08-17-2011 02:18 AM

Ok, so my server is a shared server, and they will not install GeoIP.

Here's the conversation thread:
I'm attemping to install a mod to my vBulletin 4 forum - www.pbriot.com.

The mod is:
https://vborg.vbsupport.ru/showthrea...=digital+point

You can see an example of what the mod does here: http://forums.digitalpoint.com/usermap.php

The instructions for the mod indicate that I must have GeoIP (a free PHP script) installed on my server. I'm not sure if this is something I can do myself, or not, but simply uploading the files via FTP for GeoIP didn't do the trick (surprise, surprise ).

The error I am getting is this:
http://pbriot.com/usermap.php

Please let me know what I can do to get this up and running, thank you for your help!

They respond:
I'm sorry, but our servers don't meet the pre-requisite software requirements needed in order to run geoip. You're free to experiment with compiling/installing these requirements in your own account, however that is not something that we will be able to assist with.

Let us know if we can help with anything else, or if you have any additional questions.



When I asked further, it was basically "we need to maintain the same environment on all 2500+ servers, and we can't implement a massive thing like that for your request"

At any rate - he suggested that I could try installing myself... I just have no clue how to do that - any ideas - can you point me in the right direction, anyone? Thanks!

GhoHan 08-17-2011 07:50 AM

I'm installed today very nice mod working perfect..
http://i-comers.com/usermap.php

Installed & Tagged also MOTM
i hope next feature can display avatar and username also postcount in map when click the balloon/pin google map :D

Thanks :)

Lester Wilson 08-19-2011 03:51 PM

Hi, I run three vb4 forums

I've installed Digital Point User Map on all three, the users like it !

I have one issue, on two forums the map shows guests as spiders, i cannot see why

the setup is the same for all three systems ( on the same server) they are simply vhosted sites on one server.


http://www.myamicus.co.uk/usermap.php - guests seem to show as spiders

http://www.protonbasic.co.uk/usermap.php - i'm sure guests are showing as spiders AND i have a few users with user id 16, i dont think they show at all

http://www.picbasic.co.uk/forum/usermap.php - seems to show users as i'd expect.


any help would be appreciated.

digitalpoint 08-20-2011 06:05 AM

Do you have different usergroups possibly for the two forums?

Lester Wilson 08-20-2011 06:38 AM

Hello, yes there are differenet user groups on the forum protonbasic.co.uk

on that forum many users are in a group with id 16 and a few in groups with other ids. I've entered the admin and mods with id' of 95 96 97 etc they seem to show up on the map

looking atnthe xml file it should cater for anything greater than 3, but it does not seem to do so..

how do i add specifc id's fro registered users as you have actered for with the mods and admins.


All times are GMT. The time now is 11:07 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.03694 seconds
  • Memory Usage 1,842KB
  • 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
  • (9)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