What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Suggestion update location field on each login?

moshbit

Member
apologies if this is already implemented, but it would be great to have this addon attempt to update the user's location field of their profile on each login, so it's always updated :)

if it's an issue of consent or permissions, i'd say users can just hit the 'block' button when google asks if my site can use their location...
 
Hi,
For the moment i don't plan to add new features on my addons, i will only make maintenance release.
But i keep your thread for futur release ;)
 
Implement in 1.2.0 only if location field is blank
If you have many trouble please create new thread
 
sorry to trudge up an old thread, but would it be possible to enable geoip update even if the field is already filled in?

i run a travel website that tries to facilitate meetups in real life. if locations were updated on every login, everyone would know when someone is close to them and possibly make contact. i believe this would be very useful for travel-oriented websites like mine, where the user base is constantly moving around the world :)

thank you for all your hard work!
 
I don't think i will implement this feature in xf1 version
But you can try this if you want

In XFA/MembersMap/CronEntry/GeoIp.php

Replace
PHP:
if($location)
{
    self::_insertLocationFromAdress($location, $userId);
}
else
{
    if($acpOptions->xfa_map_use_geoip) 
    {
        $user['ip'] = XenForo_Helper_Ip::convertIpBinaryToString($user['ip']);
        $ip = $user['ip'];
        if ($ip)
        {
            self::_insertLocationFromIp($ip, $userId);
        }
    }
}

By

PHP:
    if($acpOptions->xfa_map_use_geoip) 
    {
        $user['ip'] = XenForo_Helper_Ip::convertIpBinaryToString($user['ip']);
        $ip = $user['ip'];
        if ($ip)
        {
            self::_insertLocationFromIp($ip, $userId);
        }
    }

It's should be work but i haven't try it
 
seems to work for accounts that don't have the information already filled, but not ones that already have location info. if it's a feature coming up in xf 2, it's not a huge deal, i can wait until then. i'm definitely enjoying the addon in the meantime!
 
Top