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)

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.


All times are GMT. The time now is 10:19 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.01400 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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