They can turn it off if they want whenever they want.My users like the add-on but I've had complaints that it's a little big-brother-ish when it follows users on vacation, biz trips, etc.
Well then I suggest having a feature "turn vacation mode on". If that is enabled by the user, then it no longer logs the location and displays a dummy flag chosen by the user, so it looks like one is still at home.
If it does grab it at login, then no need for the wish.
As I said, let the user turn it off before vacation and done.
I thought when you said "Okay, it does grab the flag at login, ", it means the location and flag are recorded, but the records come from the last login date and not from the post date.
So If I were in Sweden for the last 30 days, and turn it off, yes, it records me being in Sweden but since the flag is not displayed, it is not shown.
And once I come back, now I login, now all the last 30 days will show my current location of Tunisia, because it grabs from my last login place, which is now at home in Tunisia for example. So it wipes all the records from previous dates as it only grabs it from the place from last login.
[*]ErrorException: [E_WARNING] file_put_contents(/var/www/html/500eboard.co/public_html/forums/data/countryflags/cloudflare_cookie.txt): failed to open stream: Permission denied
[*]src/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:59
[*]Generated by: Unknown account
[*]Oct 15, 2019 at 12:00 AM
[SIZE=5][B]Stack trace[/B][/SIZE]
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/var/www/html/5...', 59, Array)
#1 src/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php(59): file_put_contents('/var/www/html/5...', '[{"Name":"__cfd...')
#2 src/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php(39): GuzzleHttp\Cookie\FileCookieJar->save('/var/www/html/5...')
#3 src/addons/Snog/Flags/Cron/Maxmind.php(63): GuzzleHttp\Cookie\FileCookieJar->__destruct()
#4 [internal function]: Snog\Flags\Cron\Maxmind::Update(Object(XF\Entity\CronEntry))
#5 src/XF/Job/Cron.php(34): call_user_func(Array, Object(XF\Entity\CronEntry))
#6 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#7 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#8 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#9 job.php(42): XF\Job\Manager->runQueue(false, 8)
#10 {main}
We use essential cookies to make this site work, and optional cookies to enhance your experience.