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)

KevinL 09-03-2010 11:29 AM

GeoIP has been re-installed and I am still having the same problem...

The template is there but no map..

Anyone? Please?

Quote:

Originally Posted by KevinL (Post 2092493)
OK I am having an issue with this.

GeoIP is installed in PHPinfo I can see it. I installed this and I go to usermap and I see everything but the actual map. I changed the settings and everything but nothing. I am not even getting an error.

What did I do wrong? lol


Quote:

In IE8 a blank page, with these errors:

Code:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Alexa Toolbar; .NET4.0C)
Timestamp: Tue, 29 Jun 2010 12:49:40 UTC


Message: Syntax error
Line: 333
Char: 41
Code: 0
URI: http://www.XXXXX.com/usermap.php


Message: Object doesn't support this property or method
Line: 248
Char: 1
Code: 0
URI: http://www.XXXXX.com/usermap.php
and

phpinfo

PHP Code:

           geoip 
geoip support enabled  
geoip extension version  1.0.6   
geoip library version  1004006   

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



digitalpoint 09-03-2010 07:33 PM

What version of vBulletin are you using?

KevinL 09-03-2010 07:40 PM

Quote:

Originally Posted by digitalpoint (Post 2093398)
What version of vBulletin are you using?

4.0.6

Thanks for the reply!

digitalpoint 09-03-2010 09:01 PM

What's the URL?

KevinL 09-03-2010 09:14 PM

Since it is not my forum I will PM you the url?

Thanks :)

digitalpoint 09-03-2010 09:57 PM

It's choking because you have no $_SERVER['REMOTE_ADDR'] set to determine the location of the user looking at the page.

Maybe some weird security system where somewhere along the way it unsets $_SERVER globals?

At the end of the usermap.php, change this:
PHP Code:

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

to this:
PHP Code:

$user_location geoip_record_by_name(IPADDRESS); 

Maybe that will work if $_SERVER is disappearing somehow.

KevinL 09-03-2010 10:01 PM

nah didn't work. I don't think they have anything out of the ordinary installed.

Thanks for looking into it for me.

digitalpoint 09-03-2010 10:17 PM

Well either way, $user_location isn't getting a valid array. So either $_SERVER['REMOTE_ADDR'] isn't set properly or geoip_record_by_name() isn't working... but I assume geoip_record_by_name() is working because it's able to look up addresses from the session table.

KevinL 09-04-2010 01:47 AM

I will look into it further. Thanks!

spillage 09-12-2010 07:22 PM

I confirmed that the GeoIP files exist on my server, uploaded the usermap.php file to my Forums folder, imported the xml file, and rebooted the server.
I get User Map listed in the Community dropdown, but when I click on it I get the 500 Internal Server Error.

Any direction would be appreciated.

digitalpoint 09-13-2010 05:50 AM

Have you checked your error logs for your web server? It should give you some detailed info about the internal server error.

I would double check that the geoip extensions are not only installed, but also the necessary databases (maybe your server sees the function, but it's missing the DB files... although I would think the function would throw an error then).

junaid 09-14-2010 05:59 AM

How I can add What's Going On? (view map) like digital point?
"There are currently 1,819 users online. 364 members and 1,455 guests (view map)"

Also is it possible list user-groups separately? with original forum html colour?

BadgerDog 09-17-2010 07:19 PM

Installed ..thank you ... :up:

Anyone else have their Registered members (supposed to be green) showing up in RED as Admin/Moderator group?

Is there somewhere to configure this so Admins DO NOT show up?

Thanks .. :)

Regards,
Badger

Edit: How about this question. Is there some way to simply have this mod re-start and re-gather information from scratch, to reset the pins on the map to a current state? .. thanks ... :)

Cust0ms 09-22-2010 11:04 AM

Is it possible to add GeoIP PHP via .htaccess? I use shared hosting and hosting's owner do not want to add GeoIP PHP :/

RWerksman 10-07-2010 12:42 PM

Is there an easy way to modify the main user generation query to show folks who have been online in the last 30, 60, or 90 days?

digitalpoint 10-09-2010 03:25 AM

if you showed a pin for everyone that was online in the last 90 days you probably would crash the web browser with trying to dynamically place so many pins.

Pro-eSports.com 10-12-2010 09:45 PM

Is this the download link for the stuff my provider has to install?
http://pecl.php.net/package/geoip

I need the correct download link.

digitalpoint 10-13-2010 08:20 PM

Yes... that is a PHP wrapper for the C API, so you would need that also (installed first) if you don't have it already:

http://www.maxmind.com/app/c

joeldaviddc 10-14-2010 02:57 PM

instaled http://pecl.php.net/package/geoip

instaled http://www.maxmind.com/app/c

geoip on phpinfo.


no, errors en error.log... but no map in screen,

firebug message:

syntax error
[Break on this error] map.setCenter(new google.maps.LatLng(, ));\n

usermap.php (line 353)


firebug details:
PHP Code:

 case "india":
345 map.setCenter(new google.maps.LatLng(22.35007680.859375));
346 map.setZoom(4);
347 break;
348 case "oceania":
349 map.setCenter(new google.maps.LatLng(-23.805450144.140625));
350 map.setZoom(3);
351 break;
352 case "me":
353 map.setCenter(new google.maps.LatLng(, ));
354 map.setZoom(9);
355 break;
356 default:
357 map.setCenter(new google.maps.LatLng(24, -10));
358 map.setZoom(2);
359 break; 


Pro-eSports.com 10-14-2010 05:49 PM

I get the following error above the header:

PHP Code:

Warninggeoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /usr/share/GeoIP/GeoIPCity.datin [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 /usr/share/GeoIP/GeoIPCity.datin [path]/usermap.php on line 158 

http://i107.photobucket.com/albums/m...1Oct142044.gif

My host said they installed the php-geoip module. Did they forget something?

joeldaviddc 10-16-2010 01:44 PM

Quote:

Originally Posted by digitalpoint (Post 2052581)
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


i have donwloaded the geolite city...



Quote:

Originally Posted by docvader (Post 2052693)
Boko, that GeoLiteCity.dat file needs to be in usr/local/share/ directory, and it needs to be renamed to GeoIPCity.dat.

i have renamed it...

Quote:

Originally Posted by joeldaviddc (Post 2110113)
instaled http://pecl.php.net/package/geoip

instaled http://www.maxmind.com/app/c

geoip on phpinfo.


no, errors en error.log... but no map in screen,

firebug message:

syntax error
[Break on this error] map.setCenter(new google.maps.LatLng(, ));\n

usermap.php (line 353)


firebug details:
PHP Code:

 case "india":
345 map.setCenter(new google.maps.LatLng(22.35007680.859375));
346 map.setZoom(4);
347 break;
348 case "oceania":
349 map.setCenter(new google.maps.LatLng(-23.805450144.140625));
350 map.setZoom(3);
351 break;
352 case "me":
353 map.setCenter(new google.maps.LatLng(, ));
354 map.setZoom(9);
355 break;
356 default:
357 map.setCenter(new google.maps.LatLng(24, -10));
358 map.setZoom(2);
359 break; 


then working...

solved...

junaid 10-18-2010 03:41 PM

My website is hosted shared host work fine
http://www.maldiviandigital.com/usermap.php

If u want ant info send PM

Guest191216 10-19-2010 06:06 PM

Hi,
my provider stated I do have "mod_geoip" module, not GeoIP PHP extension :o(.
Is there any way to get the map working ?
(I assume - NO- but still hope ...)

txs
KH

tpearl5 10-20-2010 06:37 PM

I'm seeing that all guests are showing as spiders. Any ideas?

Boofo 12-02-2010 11:18 AM

I just installed this and have downloaded the files and uploaded them to there server. I am getting the following errors now and no map:

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

Any ideas what is happening?

Boofo 12-02-2010 11:21 AM

Figured it out. Apparently, I was not logged in when the errors were shown. Do I need to turn it off for guests then? Apparently, if there are no users and only guests on the site, is when the error occurs.

digitalpoint 12-02-2010 03:08 PM

It should be fine if guests can/can't view as long as at least you have a user online.

Boofo 12-02-2010 03:18 PM

Quote:

Originally Posted by digitalpoint (Post 2128403)
It should be fine if guests can/can't view as long as at least you have a user online.

I have the links only show to members now. Since I am still working on the site, there are times I come in as a guest and if there are no spiders or registered users online at the time, I get the error. There are quite a few smaller sites that run into that every now and then.

reefland 12-09-2010 10:40 PM

Hey digitalpoint,

I just tried to get this rolling on my new server today and am not having any luck.

GeoIP is installed and can be seen here (http://www.nationofblue.com/info.php)
Product is imported and USERMAP template is installed.
The page loads but there is no Google Map. No errors are displayed anywhere.
Tried to change $_SERVER['REMOTE_ADDR'] to IPADDRESS at the bottom of usermap.php as you mentioned previously with no different results.

http://www.nationofblue.com/usermap.php

Any thoughts?

reefland 12-09-2010 11:38 PM

Hey digitalpoint, please ignore my previous post. The problem was that the usermap.css was not getting added to my styles directory in vbulletin_css. I am not sure why but manually creating it solved my problem.

Boofo 12-10-2010 02:58 AM

Shawn, is there a way to set the width of the map? On a widescreen monitor is starts to repeat itself.

ShadowStalker 12-10-2010 03:20 PM

Awesome mod. Unfortunately don't have the extension needed.

Boofo 12-10-2010 05:04 PM

What extension?

digitalpoint 12-10-2010 08:33 PM

Quote:

Originally Posted by Boofo (Post 2131706)
Shawn, is there a way to set the width of the map? On a widescreen monitor is starts to repeat itself.

You could change the CSS width directive for #map... it's set to 100% by default, but you could set it to a specific pixel width if you wanted.

Boofo 12-10-2010 08:53 PM

Quote:

Originally Posted by digitalpoint (Post 2132069)
You could change the CSS width directive for #map... it's set to 100% by default, but you could set it to a specific pixel width if you wanted.

Thank you, sir. I will play with it and see what I can figure out.

sadaar 12-14-2010 09:08 PM

My host gladly installed the extension... for a small fee... but after install I get the no map thing. No errors. Trued changing the code to

$user_location = geoip_record_by_name(IPADDRESS);

No luck.

vBulletin 4.1.0 PL2

Suggestions? I would hate to have paid that install fee for a mod I cannot get to work :(

digitalpoint 12-14-2010 11:32 PM

Did they install the extension, but not the database that goes with it maybe?

sadaar 12-15-2010 01:06 AM

How may I check?

digitalpoint 12-15-2010 01:26 AM

You could make a PHP script with the following:

PHP Code:

<?php
print_r
(geoip_db_get_all_info());
?>

That will give you various info about the databases available...

sadaar 12-15-2010 03:20 AM

Output of requested command is:

Array ( [1] => Array ( [available] => [description] => GeoIP Country Edition [filename] => /var/lib/GeoIP/GeoIP.dat ) [2] => Array ( [available] => [description] => GeoIP City Edition, Rev 1 [filename] => /var/lib/GeoIP/GeoIPCity.dat ) [3] => Array ( [available] => [description] => GeoIP Region Edition, Rev 1 [filename] => /var/lib/GeoIP/GeoIPRegion.dat ) [4] => Array ( [available] => [description] => GeoIP ISP Edition [filename] => /var/lib/GeoIP/GeoIPISP.dat ) [5] => Array ( [available] => [description] => GeoIP Organization Edition [filename] => /var/lib/GeoIP/GeoIPOrg.dat ) [6] => Array ( [available] => [description] => GeoIP City Edition, Rev 0 [filename] => /var/lib/GeoIP/GeoIPCity.dat ) [7] => Array ( [available] => [description] => GeoIP Region Edition, Rev 0 [filename] => /var/lib/GeoIP/GeoIPRegion.dat ) [8] => Array ( [available] => [description] => GeoIP Proxy Edition [filename] => /var/lib/GeoIP/GeoIPProxy.dat ) [9] => Array ( [available] => [description] => GeoIP ASNum Edition [filename] => /var/lib/GeoIP/GeoIPASNum.dat ) [10] => Array ( [available] => [description] => GeoIP Netspeed Edition [filename] => /var/lib/GeoIP/GeoIPNetSpeed.dat ) [11] => Array ( [available] => [description] => GeoIP Domain Name Edition [filename] => /var/lib/GeoIP/GeoIPDomain.dat ) [12] => Array ( [available] => [description] => GeoIP Country V6 Edition [filename] => /var/lib/GeoIP/GeoIPv6.dat ) )


All times are GMT. The time now is 01:02 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.01526 seconds
  • Memory Usage 1,859KB
  • 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
  • (7)bbcode_php_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