 
    
                            User IP
                            gbcl/userip
                        
                        Geolocation for Flarum
- Downloads
- 2,812
- Version control
- github.com/GBCLStudio/userip
- Discuss
- discuss.flarum.org/d/32867
User IP
Display the IP address of the posting below the post
ScreenShot

Install
composer require gbcl/userip:"*"
php flarum migrate
Update
composer update gbcl/userip:"*"
php flarum cache:clear
php flarum migrate
Remove
composer remove gbcl/userip
php flarum cache:clear
How to use
You just need to open the extension in the admin panel. :)
Feature
- Support for websites using CDN
- Concise, detailed, understandable style
- No bugs (maybe?)
Extending
You can easily extend this extension to support different API providers, if you follow these steps:
- In your new extension, require gbcl/useripas a dependency
- Define a new Service that implements GBCLStudio\GeoIp\Api\GeoIpInterfaceand extendsGBCLStudio\GeoIp\Api\Service\BaseService
- In your new extension's extend.php, register the service: new GBCLStudio\GeoIp\Extend\ApiProvider(MyNewService::class);
- Provide the required translations under the gbcl-useripnamespace, for example:gbcl-userip.admin.service.YOUR_NEW_EXTENSION.label, specific translations The text can be found at here
Note
Builtin IP domain API is provided by ip.sb and IpInfo
Referenced code from the following projects: fof/geoip, fof/oauth
Support my work at afdian
Versions
- 
                            Version 1.1.0. Likely works with Flarum v1.8.11. 
- 
                            5 additional versions.
- 
                    Extension created.