Ticket #2605 (new enhancement)

Opened 2 months ago

Last modified 1 month ago

Geoip::$default_country_code = "NZ"; - in forum

Reported by: nicolaas Assigned to: mpeel
Type: enhancement Priority: trivial
Milestone: Forum 0.2 Component: Modules - forum
Version: 2.2.2 Severity: medium effort / impact
Keywords: forum, geoip default Cc:
Due date: Harvest Task: (Unknown)
Invoice sent to client: 0 Hours:

Description

When setting Geoip::$default_country_code = "NZ"; in the config file, the default country is still Afghanistan - an unlikely default for an iwi based website.

Attachments

Change History

Changed 1 month ago by sharvey

  • milestone changed from 2.2.3 to Forum 0.2

Changed 1 month ago by rlouis

I am not sure, you need to set any default value.

The default is automatically selected depending on the user(connected or not) in the dropdown in Ecommerce in the file EcommerceRole? thanks to this function : Geoip::visitor_country();

Changed 1 month ago by nicolaas

The problem is that this relies on a shell command (See line 284) to get the country of the IP address. On many servers this is not available or unreliable. In other situations you want to set the default from a usability point of view rather than where the user is from.

Note: See TracTickets for help on using tickets.