Countries Flags 🎏 #3117
Replies: 11 comments 2 replies
-
I've considered it a few times, just had always more pressing items! but it would be a nice addition |
Beta Was this translation helpful? Give feedback.
-
I tried to integrate this extension and it works great. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is helpful but if you look in /libraries/DxccFlag.php that's what handles the emoji bits |
Beta Was this translation helpful? Give feedback.
-
Just looked at this a bit more and as we don't have ISO codes but the countries name so it should be possible to use for example this https://github.com/stefangabos/world_countries/blob/master/data/countries/en/countries.php and just send it the country name |
Beta Was this translation helpful? Give feedback.
-
awesome but i don't like country name as key; i think is better to create a custom Array with DXCC => ISOcode in the library DxccFlag. i tried to declare |
Beta Was this translation helpful? Give feedback.
-
this is the Array we need (from QRZ) array( |
Beta Was this translation helpful? Give feedback.
-
Hopefully this makes it easier I've made a commit to the dev branch see 1a3f4c9 Using the following code you should be able to provide the number and get the iso // load library called DxccFlag
$this->load->library('DxccFlag');
// Call getISO function from DxccFlag library
$data['flags'] = $this->dxccflag->getISO('33');
print_r($data['flags']); |
Beta Was this translation helpful? Give feedback.
-
I tried to call `
but i have this error `A PHP Error was encountered Message: Undefined property: CI_Loader::$dxccflag Filename: partial/log_ajax.php Line Number: 97 An uncaught Exception was encountered Message: Call to a member function getISO() on null Filename: /web/htdocs/www.bbgest.cloud/home/cloudlog/application/views/view_log/partial/log_ajax.php Line Number: 97` maybe the library is not reaceable. |
Beta Was this translation helpful? Give feedback.
-
In Codeigniter framework you don't tend to call libraries directly in views however you can do it using $CI =& get_instance();
$CI->load->library('DxccFlag');
$data['flags'] = $CI->dxccflag->getISO('33'); |
Beta Was this translation helpful? Give feedback.
-
I think it's an excellent result!! |
Beta Was this translation helpful? Give feedback.
-
Looks good |
Beta Was this translation helpful? Give feedback.
-
Why not add the flags of the countries in the tables, it would be a more elegant and richer interface. 😊
what do you think? 👍
Beta Was this translation helpful? Give feedback.
All reactions