Adriano Faria Posted February 1, 2016 Share Posted February 1, 2016 This plugin will display the languages flags on board top so the user can swap between languages in a faster way. clubedomarea 1 Link to comment
Adriano Faria Posted February 6, 2016 Author Share Posted February 6, 2016 What's New in Version 1.0.1: Added setting to user decide if wants to display the country flags or the dropdown languages. Contry flags is the default. gamerhacking2022 and SaltyBart 2 Link to comment
SaltyBart Posted February 6, 2016 Share Posted February 6, 2016 @Adriano Faria Hi. Maybe it is nice to add a option to make the dropdown languages, as dropdown country flags ? Regards, Bart Link to comment
Adriano Faria Posted February 6, 2016 Author Share Posted February 6, 2016 Just now, R-023 said: Maybe it is nice to add a option to make the dropdown languages, as dropdown country flags ? I'll take a look for a next version. SaltyBart 1 Link to comment
SaltyBart Posted February 6, 2016 Share Posted February 6, 2016 Just now, Adriano Faria said: I'll take a look for a next version. Thanks! And thanks voor the Hook! Link to comment
Safety1st Posted March 30, 2016 Share Posted March 30, 2016 (edited) Recently I migrated on new hosting where the Suite with installed plugin v1.0.1 gave HTTP 500 error. When I tried to reinstall the plugin installation failed every time with the error: 'Sorry, you do not have permission for that! 1S111/1'. A permissions for newly created files and folders were 644 & 777 respectively, they were correct. Previous version 1.0.0 installed just fine. I made some research with Get Ready For IPS script and found the cause. It was in suhosting PHP extension values below then recommended ones. Here they are: suhosin.post.max_vars >= 4096 suhosin.request.max_vars >= 4096 suhosin.get.max_value_length >= 2000 suhosin.post.max_value_length >= 10000 suhosin.request.max_value_length >= 10000 suhosin.request.max_varname_length >= 350 After adjusting mentioned settings plugin was successfully installed and run Edited March 30, 2016 by Safety1st Natea 1 Link to comment
RPG-support Posted May 9, 2016 Share Posted May 9, 2016 (edited) This is not working (not showing the flags) on the registration final page: Edited May 9, 2016 by RPG-support Link to comment
Adriano Faria Posted May 9, 2016 Author Share Posted May 9, 2016 Probably because the template this plugin extends isn't used on this page, so... EDIT: you can see that doesn't appear the user info (for logged in users) or the Sign In or Sign Up links (for guests). That's exactlythe area extended by this plugin. Link to comment
EmpireKicking Posted May 9, 2016 Share Posted May 9, 2016 can it be relocated to the beginning then from the back. Also available for guest Link to comment
Adriano Faria Posted May 10, 2016 Author Share Posted May 10, 2016 It works for guests: It doesn't appear on pages that uses the minimal template, like that or Contact Us (without popup), simply because those pages doesn't use the template this plugin extends. I can add in a future version. Not now. Not really a BIG thing. m@t 1 Link to comment
kmk Posted October 6, 2016 Share Posted October 6, 2016 Is possible enable this plugin for mobile version of ips? Link to comment
emin.huseynov Posted November 22, 2017 Share Posted November 22, 2017 Hi, this plugin has worked well for me, until I decided to move forum to https Everything moved well, except there are four items that IPS support identified as related to this plugin that has hard link to http still. Mixed Content: The page was loaded over HTTPS, but requested an insecure image 'http://sitename/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_flags16.png'. This content should also be served over HTTPS. Mixed Content: The page at 'sitename' was loaded over HTTPS, but requested an insecure image 'http://sitename/uploads/set_resources_1/d0e70b4cbb9ab8afb1bc1065a3f8487a_subitem_stem.png'. also /uploads/set_resources_1/d0e70b4cbb9ab8afb1bc1065a3f8487a_subitem_stem@2x.png /uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_flags32.png' Link to comment
Adriano Faria Posted November 23, 2017 Author Share Posted November 23, 2017 It happens that the plugin hasn't any HTTP hardcoded in the template. It uses the IPS functions and CSS to display flags. Template: <ul class='ipsList_inline'> {{foreach $languages as $id => $lang }} <li> {{$url = \IPS\Http\Url::internal( 'app=core&module=system&controller=language&id='.$id, 'front' )->csrf();}} <a data-ipsTooltip data-ipsTooltip-label=" {$lang->title}" href='{$url}'><i class='{$lang->get__icon()}'></i></a> </li> {{endforeach}} </ul> Function: /** * Get Icon * * @return string * @note Works on Unix systems. Partial support for Windows systems. */ public function get__icon() { return "ipsFlag ipsFlag-{$this->getCountry()}"; } CSS (which is default from IPS): /* Normal */ .ipsFlag { width: 16px; height: 16px; background: url("{resource="flags16.png" app="core" location="global"}") no-repeat; display: inline-block; vertical-align:text-top; line-height:16px; } .ipsFlag.ipsFlag-ad{background-position:0 -352px;} .ipsFlag.ipsFlag-ae{background-position:0 -368px;} .ipsFlag.ipsFlag-af{background-position:0 -384px;} ... ... ... That's all. No HTTP or HTTP anywhere. Link to comment
mdmx Posted September 6, 2018 Share Posted September 6, 2018 Hi @Adriano Faria if possible make support for 4.3 Link to comment
Adriano Faria Posted September 6, 2018 Author Share Posted September 6, 2018 1 hour ago, mdmx said: Hi @Adriano Faria if possible make support for 4.3 Have you tested it? Doesn’t it work? mdmx 1 Link to comment
Steph40 Posted September 6, 2018 Share Posted September 6, 2018 1 hour ago, mdmx said: Hi @Adriano Faria if possible make support for 4.3 Works for me. mdmx and Adriano Faria 1 1 Link to comment
mdmx Posted September 6, 2018 Share Posted September 6, 2018 Sorry for the trouble, I was inattentive. Link to comment
Ziv Mallul Posted September 17, 2018 Share Posted September 17, 2018 On 2/1/2016 at 9:32 PM, Adriano Faria said: This plugin will display the languages flags on board top so the user can swap between languages in a faster way. How i download it? Link to comment
Adriano Faria Posted September 17, 2018 Author Share Posted September 17, 2018 By clicking in Download this file link? Link to comment
darth12 Posted November 14, 2019 Share Posted November 14, 2019 On 2/6/2016 at 11:10 PM, Adriano Faria said: On 2/6/2016 at 11:09 PM, R-023 said: Maybe it is nice to add a option to make the dropdown languages, as dropdown country flags ? I'll take a look for a next version. Any update on this @Adriano Faria it would be a great addition - thanks! Link to comment
DawPi Posted November 14, 2019 Share Posted November 14, 2019 1 hour ago, darth12 said: Any update on this @Adriano Faria it would be a great addition - thanks! It's already done in this mod. Adriano Faria 1 Link to comment
Adriano Faria Posted November 14, 2019 Author Share Posted November 14, 2019 5 hours ago, darth12 said: Any update on this @Adriano Faria it would be a great addition - thanks! Since February/2016: darth12 1 Link to comment
Edjazoli Posted February 16, 2022 Share Posted February 16, 2022 Hi, How I can add flags to mobile menu for even quicker change? Link to comment
Edjazoli Posted February 25, 2022 Share Posted February 25, 2022 Hi @Adriano Faria any chance that I/you could implement the flags in mobile menu visible for memberes and guests??? send you pm already ... Link to comment
Recommended Posts