[ABD] IP Country Flags

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by 3Di »

RMcGirr83 wrote:Uhmmm, your flag shows you are from the US on your test forum when I go there. :?
That was my doubt, thanks. I am using the user object in fact, I hoped to start saving queries. Could you please confirm that that happens also in viewtopic Rich? http://3di.space/32/viewtopic.php?f=4&t=13
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by RMcGirr83 »

Yes it happens in viewtopic as well as on index.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by 3Di »

Thanks for feedback. :)

I think I fixed that code and tonight I will upload the new version there and to download here.
Regards.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by 3Di »

I've just uploaded the supposed to be the fix of the above issues to my live Board.

Before to github it and spread the download of the new version I need someones to confirm my Country Flag there at http://3di.space/32/index.php shows as Germany and not the Country from where you are visiting the link.

Thanks in advance, believe me is quite impossible to work with multiple IPs/session IPS in localhost.
Calling testers. :)

Edit: also if I believe that I'll have to use the request class for some thing or an existing event... hmm. :geek:

Edit_2: I saw right now Google [Bot] visiting my Board while I was there online, it showed the same Flag of mine (from Mountain View?) .. :) . Ok, I got it. New version's not yet ready to be spread.

Thanks anyway. 8-)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
MedCo
Registered User
Posts: 109
Joined: Tue Jul 14, 2015 4:09 pm
Contact:

Re: [DEV] IP Country Flags

Post by MedCo »

BF79 wrote:good ext !!! but cloudflare gives to my members another ip !! so will not help me much !! :(
open phpbb\session.php
search

Code: Select all

    $this->ip = htmlspecialchars_decode($request->server('REMOTE_ADDR'));
replaced with

Code: Select all

    $this->ip = htmlspecialchars_decode($request->server('HTTP_CF_CONNECTING_IP'));
Now the correct IP reappears.
BF79
Registered User
Posts: 499
Joined: Fri Feb 13, 2015 1:28 pm
Name: Fouad B

Re: [DEV] IP Country Flags

Post by BF79 »

MedCo wrote:
BF79 wrote:good ext !!! but cloudflare gives to my members another ip !! so will not help me much !! :(
open phpbb\session.php
search

Code: Select all

    $this->ip = htmlspecialchars_decode($request->server('REMOTE_ADDR'));
replaced with

Code: Select all

    $this->ip = htmlspecialchars_decode($request->server('HTTP_CF_CONNECTING_IP'));
Now the correct IP reappears.

yeah!!!!!!!!!!!!!!!!!!!!! :o

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by 3Di »

Do not MOD the core code of phpBB, read this:
https://support.cloudflare.com/hc/en-us ... mit=Search instead.

Anyway, thanks for feedback, I'll se what to cook about that.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0002

Post by 3Di »

Good news. :)

Thanks to unvaluable help of Randy that kept staying logged-in at my live Board, I fixed the above issues in less than an hour.

The new version has been installed there at http://3di.space/32/ for those they want to test it out prior to get the package I am preparing to share maybe tomorrow.
---------------------------------------------------------------------
- v1.0.0-dev-v0003
---------------------------------------------------------------------
* TASK: template switch over all
* TASK: code improvement (the only one SQL query has been re-added)
* FIX: wrong Flags on index, online list and viewtopic
* NEW: new screenshots
* WIP: Avatars stuff
* WIP: cacheing where is possible
As a matter of fact this one can be considered the prep-release of the first ALPHA version that will have the Avatars' stuff fully functional.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by 3Di »

A new version is available. See the first post.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
lopoto
Registered User
Posts: 111
Joined: Thu Feb 12, 2015 3:13 pm

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by lopoto »

All nicely , flag shows well , but by the way - stop working Hide bot , all the bot is visible in the legend ! any fix ?
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by 3Di »

lopoto wrote:All nicely , flag shows well , but by the way - stop working Hide bot , all the bot is visible in the legend ! any fix ?
A link to the extension maybe?
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
lopoto
Registered User
Posts: 111
Joined: Thu Feb 12, 2015 3:13 pm

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by lopoto »

User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by 3Di »

Well, thinking about.. I coded a permissions in this extension, namely "Can view IP Country Flags", you can go to ACP/persmissions/group permissions and chose which groups can view those flags. It is set to true to the registered users group as per default.

It's located into advanced permissions/misc TAB.

Let me know it this helps you out before me to do anything else.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
lopoto
Registered User
Posts: 111
Joined: Thu Feb 12, 2015 3:13 pm

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by lopoto »

ok. am check
User avatar
lopoto
Registered User
Posts: 111
Joined: Thu Feb 12, 2015 3:13 pm

Re: [DEV][3.2/3.1] IP Country Flag 1.0.0.0003

Post by lopoto »

No still show bot .
Locked

Return to “Abandoned Extensions”