[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
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Wed Jul 06, 2016 1:52 am

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
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21029
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Wed Jul 06, 2016 9:14 am

Yes it happens in viewtopic as well as on index.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
3Di
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Wed Jul 06, 2016 3:14 pm

Thanks for feedback. :)

I think I fixed that code and tonight I will upload the new version there and to download here.
Regards.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
3Di
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Wed Jul 06, 2016 11:47 pm

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-)
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
MedCo
Registered User
Posts: 75
Joined: Tue Jul 14, 2015 4:09 pm
Contact:

Re: [DEV] IP Country Flags

Post by MedCo » Fri Jul 08, 2016 12:29 pm

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: 256
Joined: Fri Feb 13, 2015 1:28 pm

Re: [DEV] IP Country Flags

Post by BF79 » Fri Jul 08, 2016 1:06 pm

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
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Jul 08, 2016 1:45 pm

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.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
3Di
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Sat Jul 16, 2016 1:58 am

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.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
3Di
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Mon Jul 18, 2016 11:56 pm

A new version is available. See the first post.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
lopoto
Registered User
Posts: 99
Joined: Thu Feb 12, 2015 3:13 pm

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

Post by lopoto » Tue Jul 19, 2016 9:45 pm

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
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Tue Jul 19, 2016 9:53 pm

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?
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
lopoto
Registered User
Posts: 99
Joined: Thu Feb 12, 2015 3:13 pm

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

Post by lopoto » Tue Jul 19, 2016 9:55 pm


User avatar
3Di
Registered User
Posts: 13223
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Tue Jul 19, 2016 10:00 pm

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.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
lopoto
Registered User
Posts: 99
Joined: Thu Feb 12, 2015 3:13 pm

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

Post by lopoto » Tue Jul 19, 2016 10:02 pm

ok. am check

User avatar
lopoto
Registered User
Posts: 99
Joined: Thu Feb 12, 2015 3:13 pm

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

Post by lopoto » Tue Jul 19, 2016 10:25 pm

No still show bot .

Locked

Return to “Abandoned Extensions”

Who is online

Users browsing this forum: No registered users and 6 guests