Questions[Request] National Flags in Chat according to IP

Questions :question: place them in this section
Previous topicNext topic
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
SAGreen
Users
Users
Status: Offline
User theme: Dark
Posts: 15
Joined: Feb 23rd, '20, 18:17
    Windows 10 Firefox

[Request] National Flags in Chat according to IP

Post by SAGreen »

Hi,
would it be possible to coded this to mChat, or to make development it directly extension?
To show a national flag for each user according to the current IP address.
Options could be the location on the left next to the user's name or right next to the mChat icons.
In attachment I present the picture as example from another website.

Thank you
Best regards
Scotty
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Let's Go CommAndeR

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: [Request] National Flags in Chat according to IP

Post by Sniper_E »

As long as you have a national flag extension installed I would think a simple template edit would do that.
What national flag extension are you using?

You do know Dm does not maintain mChat.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
SAGreen
Users
Users
Status: Offline
User theme: Dark
Posts: 15
Joined: Feb 23rd, '20, 18:17
    Windows 10 Firefox

Re: [Request] National Flags in Chat according to IP

Post by SAGreen »

Hi, this image is not an extension for phpbb, it comes from the website...https://www.cbox.ws/ and have this function integrated in their chat.

I tried the phpbb extension...https://www.phpbb.com/customise/db/exte ... nal_flags/,
but this extension doesn't work to display in mChat, and then it more or less only works by the user selecting the flag of the country they are in from their control panel in the settings. However, it does not correlate with the actual IP address from which the user accesses the website.

I also tried to write and ask on the website...https://kasimi.net/index.php,
but I read somewhere in another post in the forum that kasimi is no longer active and the development of mChat and its add-ons is no longer running continued.

I was also looking for some tips here
https://www.phpbb.com/community/viewtopic.php?t=2607121
https://www.phpbb.com/community/viewtopic.php?t=2199821
https://www.phpbb.com/community/viewtopic.php?t=2376851
https://github.com/fonziset/IP-Country-Flags

I have seen some scripts on github, some purely as php files with JS and CSS support, some have been created as plugins and modules for various CMS like myBB, WP or Joomla. I tried testing a few things on jsfidle and codepen, but nothing worked.
https://github.com/Starpaul20/Country-Flag
https://github.com/wp-plugins/ipgp-user-country-flag
https://github.com/Kevinenei/country-flag-detect-js
https://github.com/egbakou/user-location
https://xenforo.com/community/resources ... ress.6090/

Thank you for me help.
Sincerely
Scotty

Previous topicNext topic