YAFLogo

vr_driver
  • vr_driver
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
10 years ago
Hello,

I saw only one other question to and answer relating to this topic, but didn't have any luck getting it working on this board.

I was wondering if I'm missing something in the settings, or if there is a special set of JS I can apply?

In the registration screen I was hoping to make Australia as the default, with a +10 timezone set. But I'm really struggling with this.

Thanks,

-Steve

Sponsor
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Default time zone in YAF = guest user time zone. Change it.
vr_driver
  • vr_driver
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
10 years ago
Hi,

Thanks for that, and yes it did seem to work with the timezone, however it's producing a bit of weird behaviour.

In the Guest user, I set the time zone, and the default country.

When I go through the registration process, I enter all the details for pwd, usr etc, but the second screen where I choose timezone and country, It doesn't seem to work as expected.

The selected country is "none", and the selected timezone shown is "(UTC-12:00) Eniwetok, Kwajalein". I hit okay/save/continue (whatever it is) and move on...

However...

When I view the profile as the new user, the timezone is correct to Australia - as per the guest user account, but the country isn't correct.

Am I doing something wrong?

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Selected country should be None, because a time zone reflects cities, not countries. Country should be set by a user, but a guest user doesn't have a country and you can see guest user defaults while registering. Previously, YAF had an extra working functionality linked to an IP service and country was being set from the IP info, even time the zone info was figured out, but now it needs to be fixed because the service is commercial now and has a limited functionality. But every service like this becomes commercial in no time.

YAF is a free open source code and using a commercial service as a core service would be very strange. 😮

vr_driver
  • vr_driver
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
10 years ago
Hmm. Ok. Thanks for the clarification.

I understand the openness and so on, and I thank you for your commitment to it all. It's greatly appreciated. :D

Cheers,

Steve

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago
Technically it can be done by using a replacable xml file, the problem is that it takes time and time is money.

If someone is interested in financing it you can contact tha_watcha.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
10 years ago

Selected country should be None, because a time zone reflects cities, not countries. Country should be set by a user, but a guest user doesn't have a country and you can see guest user defaults while registering. Previously, YAF had an extra working functionality linked to an IP service and country was being set from the IP info, even time the zone info was figured out, but now it needs to be fixed because the service is commercial now and has a limited functionality. But every service like this becomes commercial in no time.

YAF is a free open source code and using a commercial service as a core service would be very strange. 😮

Originally Posted by: bbobb 

At the moment the only limitation for the service is...

Our free API is using IP2Location Lite version which provides lower accuracy.

So at least for now, it at least gives the right country.