Search found 2996 matches

by MarkDHamill
Tue Jun 18, 2019 1:50 am
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

Awesome suggestions and testing everyone! I'll incorporate these soon (in the middle of a big job at the moment).
by MarkDHamill
Mon Jun 17, 2019 5:43 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

We don't know if these solutions will work. That will take time.
by MarkDHamill
Mon Jun 17, 2019 4:30 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

These are excellent ideas. Maybe using a function like htmlspecialchars() is all I need when loading the $countries array. If not, using the array approach sounds promising.
by MarkDHamill
Mon Jun 17, 2019 4:03 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

I haven't changed any defaults in phpStorm. I would think it would default to UTF-8 encoding.
by MarkDHamill
Mon Jun 17, 2019 3:41 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

I could apply the change to my GitHub master if you publish it. When I copy and paste it I see the error you described. The question is what's causing it? The page asserts UTF-8 content: <meta charset="utf-8"> This data comes from your language file. I use phpStorm for my editor. I can choose any en...
by MarkDHamill
Mon Jun 17, 2019 3:23 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

In your language file, I see: https://github.com/Solidjeuh/filterbycountry/blob/master/phpbbservices/filterbycountry/language/nl/common.php for Belgium: <option value="BE">Belgie</option> but I do see it for Ukraine: <option value="UA">Oekraïne</option> I installed the Dutch language pack. On the st...
by MarkDHamill
Mon Jun 17, 2019 12:06 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

This is a good analysis. It may be that I am not using the right event. I doubt it hurts to recheck, as I am sure the call to MaxMind's database is quick. If the IP is not in the database, I believe you get an automatic refresh in the form of a page with the error message. A lot of it may be that.
by MarkDHamill
Mon Jun 17, 2019 1:22 am
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [BETA] Filter by country - version 1.0.2

The statistics can be erased by during them off. I think there may be some double counting going on, page refreshes or something similar. The details are in the phpbb_fbc_stats table if you want to look at them. This table does not collect the IP address, but if you have logging turned on these will...
by MarkDHamill
Sun Jun 16, 2019 9:33 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

[BETA] Filter by country - version 1.0.2 released

A new beta version is out. Some changes of note: The settings page looks a bit different. In particular, a setting has been renamed "Allow VPN services" because it more accurately describes what happens if an IP is not found in the MaxMind database ... it is most likely access from a VPN. MaxMind se...
by MarkDHamill
Wed Jun 05, 2019 9:06 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

In my case, I hard coded your IP. You might want to check your assumptions. After line 162 in /event/main_listener.php : $user_ip = $this->request->server('REMOTE_ADDR'); // Fetch the user's actual IP address. add echo $user_ip; And see what appears on the screen. Also make sure your settings are id...
by MarkDHamill
Wed Jun 05, 2019 9:01 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

My testing suggests is it operating normally. I forced the IP to be the one sent in the PM Country Belgium - Restricted Allow registered users to login from restricted countries - No Action to take if the user’s IP address is not found in MaxMind database - Restrict Result: Blocked Country Belgium -...
by MarkDHamill
Wed Jun 05, 2019 7:44 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

The database is proprietary. I suspect it works by saying a range of IPs belong to an ISP in a particular country.
by MarkDHamill
Wed Jun 05, 2019 7:40 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

Can you send me the IP you used for Belgium? That will let me debug it. You can PM me.
by MarkDHamill
Wed Jun 05, 2019 4:06 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

I guess I need to look at my logic again. It's pretty simple. The filter_by_country() function in event/main_listener.php is where traffic is blocked or allowed. If you feel up to it to do some debugging to document where it fails, I'd appreciate it. If the IP is not in the MaxMind database, the cat...
by MarkDHamill
Wed Jun 05, 2019 3:49 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 1706

Re: [ALPHA] Filter by country - version 1.0.1

Presumably the database is good. What country do you get when you go here?

https://whatismycountry.com

Go to advanced search