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)

digitalpoint 06-09-2010 09:40 AM

Quote:

Originally Posted by CoZmicShReddeR (Post 2050871)
I added extension=php_geoip.dll and restarted apache server and when I click on the map link I get

Fatal error: Call to undefined function geoip_record_by_name() \usermap.php on line 100

Well for whatever reason it didn't get installed correctly if the functions aren't there... :)

Kolbi 06-09-2010 10:15 AM

Thanks!

TeknoSounds 06-09-2010 10:49 AM

dope :D Works wonderfully ty!

twitch 06-09-2010 01:38 PM

Quote:

Originally Posted by digitalpoint (Post 2050903)
Well for whatever reason it didn't get installed correctly if the functions aren't there... :)

same problem

noppid 06-09-2010 01:57 PM

It's not like the GeoIP site hands you the install instructions over there. But, I'm pretty sure a resourceful person could do the geoip pure install at the php file level rather then the apache server level if a shared host won't add it. http://geolite.maxmind.com/download/geoip/api/php/ Then you need the city database IIRC. http://www.maxmind.com/app/geolitecity and it looks like an edit to the DP php file to include the geoip api and initialize it.

Tubbietoeter 06-09-2010 03:24 PM

I asked my provider to install geoip and they did.

phpinfo says
geoip extension version 1.0.7
geoip library version 1004006
geoip.custom_directory no value no value

I get errors anyway:
Warnung: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 100)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 128)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 133)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 152)
Warnung: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 158)

am I doing something wrong?

noppid 06-09-2010 03:40 PM

Quote:

Originally Posted by Tubbietoeter (Post 2051055)
I asked my provider to install geoip and they did.

phpinfo says
geoip extension version 1.0.7
geoip library version 1004006
geoip.custom_directory no value no value

I get errors anyway:
Warnung: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 100)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 128)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 133)
Warnung: Invalid argument supplied for foreach() in [path]/usermap.php (Zeile 152)
Warnung: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 158)

am I doing something wrong?

They installed the default country database or provided the wrong path. You need GeoIP City.

voglermc 06-09-2010 04:46 PM

Would a different version be possible to build out based on profile field information and populate with certain info in profile fields of members?

I run a MINI Cooper Club site and it would be nice to see where our members are

digitalpoint 06-09-2010 04:48 PM

Quote:

Originally Posted by voglermc (Post 2051098)
Would a different version be possible to build out based on profile field information and populate with certain info in profile fields of members?

I run a MINI Cooper Club site and it would be nice to see where our members are

In theory you could modify it to run based on the location of the IP address they used to register, but I don't think Google Maps could handle that many pins on the map to be honest.

voglermc 06-09-2010 05:07 PM

We have around 1300 members right now. I'd just like members to see they have others close by. I'm not to up to date on google's api so I don't know what it can and can't do


All times are GMT. The time now is 05:59 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.01463 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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