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)

docvader 06-12-2010 03:54 AM

Quote:

Originally Posted by voglermc (Post 2051232)
error

Fatal error: Call to undefined function geoip_record_by_name() in /home/tarheel/public_html/usermap.php on line 97

OK, so much for me giving people advice....

I now have GEOIP installed in my apache and environment, and I get this above error. What am I missing????

ahmedipa 06-12-2010 04:06 AM

so nice thank you so much

mikey1991 06-12-2010 04:13 AM

Can you 'backport' this to 3.8 and release it? I have a client who would love something like this.

digitalpoint 06-12-2010 04:45 AM

Quote:

Originally Posted by docvader (Post 2052358)
OK, so much for me giving people advice....

I now have GEOIP installed in my apache and environment, and I get this above error. What am I missing????

Does GeoIP show up in phpinfo() for you?

docvader 06-12-2010 04:58 AM

No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.

Tryppnotic69 06-12-2010 05:03 AM

Quote:

Originally Posted by docvader (Post 2052371)
No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.

Softlayer just installed it on my Linux server using these instructions, and it worked great.

http://www.maxmind.com/app/installation?city=1

On step 3 (http://www.maxmind.com/app/api), they used Apache Module (mod_geoip) as the API. Everything works great at my forum.

LbR 06-12-2010 12:45 PM

Quote:

Originally Posted by digitalpoint (Post 2050776)
Yeah, sorry... I knew that was going to be the biggest sticking point, but it *is* a fairly common PHP extension so some people hosting on managed servers might have some luck. For those that run their own servers, it's pretty easy to install from RPM or just compile it.

Sadly there isn't a way around needing some sort of geotargetting mechanism though. I thought about making it geotarget against my servers for people, but then people would complain about privacy and such with all the geotargetting requests going to a central server. Can't make everyone happy unfortunately. :)

will that work with a VPS?

TeknoSounds 06-12-2010 04:54 PM

Quote:

Originally Posted by docvader (Post 2052371)
No, it shows up in Apache as a mod, and in the environment. They installed the Apache end of it, not the PHP end. According to Maxmind, it's another way of doing it, but, apparently, it doesn't work.

I've asked them to put the PHP extension in for geoip. we're using Linux. Finding the right directions for Linux was not clear; if you have a good link, I'd appreciate it.

I just installed the extension myself the other day on my Fedora box.

Just used YUM to grab the latest geoip packages (theres two you need), then just made sure the folder with the geoip.so was in my included path, restarted apache, and np :)

digitalpoint 06-12-2010 05:03 PM

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

pete_brady 06-12-2010 06:01 PM

i had to manually compile from source as above but also rename GeoLiteCity.dat to GeoIPCity.dat & copy it to /var/lib/GeoIP

i was probably doing it wrong though

installed & working just fine now. thanks!

(& thanks also for your vb optimisation article at digitalpoint)


All times are GMT. The time now is 12: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.01400 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)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