Jon W
Well-known member
Yes, this can be added. Please drop me a PM.Can this be updated to show what State the member is logged in from if within the United States?
Yes, this can be added. Please drop me a PM.Can this be updated to show what State the member is logged in from if within the United States?
Please drop me a PM if you wish to contribute to this. It should be pretty easy to add.Would be cool if this didn't require the view IP option so non moderators can benefit from it. That way it can display player locations without the need for other addons that require the user to manually set that option in a drop down. This nicely just grabs the info and places the image.
I'll check with Tim. Thanks, Jon.You don't appear to have GeoIP PHP extensions installed on your server any more.
GeoIP might be working, but the PHP extension isn't. It might be because you are using a new version that doesn't include the PHP extension. I note from the PHP documentation that the extension has now been superceded and an API approach is now recommended, which is not currently supported by this add-on.Tim assures me that GeoIP is definitely working ok.
$country_data = geoip_record_by_name($ip);
echo ($country_data["country_name"] );
New features:
- Now supports XenForo 1.3, including support for IPv6 addresses.
Looks like GeoIP isn't installed on your sandbox server. That is what was confusing me.My test script is working fine, Jon: http://www.avforums.com/test.php
It uses
We're using php 5.3Code:$country_data = geoip_record_by_name($ip); echo ($country_data["country_name"] );
http://www.avforums.com/info.php
ErrorException: Fatal Error: Using $this when not in object context - library/Waindigo/AvatarFlags/Template/Helper/Core.php:31
Generated By: Kieron, A moment ago
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
array(3) {
["url"] => string(59) "http://www.avforums.com/forums/moderators-private-forum.75/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Bug fixes:
- Fixes "Using $this when not in object context" error.
Looks like something may be wrong in your CSS or the flag image file. Does the image work when rendered elsewhere?
Yes, it's works everywhere else on the site. That is a clean install of the add-on on a clean install of XF. It's picking the same CSS that is used for the flags on the rest of the site. I've only tested it as a new site I'm helping on is where I first noticed it.Looks like something may be wrong in your CSS or the flag image file. Does the image work when rendered elsewhere?
We use essential cookies to make this site work, and optional cookies to enhance your experience.