• Resolved melaniesinmek

    (@melaniesinmek)


    Hi,

    so “a latitude / longitude ‘geocode’ will be saved as a separate field, if that option was selected when the field was created”.

    This is a fixed “location” then which is very useful for stores, but how about on a BuddyBoss website for members?

    Users/members travel or move around so in order to fully use a radial search with for example your plugin and BP Members Map, the location would need to update on a regular basis.

    Is it possible to continously check where the member currently is? So, a cron job or a interval GPS check?

    That would be really great, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, I am not the developer but a possible way for this is to update the user’s location field everytime he/she logs in.

    If I had this plan, I would consider adding a function into the wp_login() hook. You can add this code e.g. to your functions.php.

    Within this function you need to update the data field with some new location data, which still need to be fetched. For this, I don’t have a specific solution in mind but I would orientate myself at the “Get my location”-button.

    Of course, for all this some php skills are required.

    I hope this helps.

    Plugin Author shanebp

    (@shanebp)

    “update on a regular basis” – that could be done various ways, including the one suggested above. However, there is no practical way to include a solution that would satisfy all users – especially in a free plugin. If you need it for your site, the easiest approach is to prompt your users to keep their location current.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Location status update’ is closed to new replies.