1
General Help & Support / Re: Any idea how to put country flag to menu?
« Last post by rumen on May 07, 2024, 04:12:58 PM »With letters works. With flags appears like that
Published WebsiteBaker 2.13.5 Patch 223
We refer to topic
Error message in the admin area
2024-01-17: download on wiki…
Published WebsiteBaker 2.13.5 R220
2023-12-21 : download on wiki…
2023-12-29 : read more about…
PHP-8.3 released. 2023-11-23
PHP-8.0 and before has End of Live
2021-12-02 : read more about…
The new versioning strategy (Part 1)
2022-12-07 : read more about…
Published WebsiteBaker Portable v10 PHP 8.1.7
2022-04-16 : read more about…
Well, I succeed to make it to appear in mobile menu like that but instead to appear in the right upper corner (as it is on the mobile menu appears in the left upper corner in the normal page ....
<div class="language-switcher" >
<span class="language-switcher__language language-switcher__language_active"><a href="https://skylog.bg/pages/bg.php" class="" title="BG"><img src="<?php echo WB_URL; ?>/media/flags/bg.png" alt="BG" title="BG"></a></span>
<span> / </span>
<span class="language-switcher__language"><a href="https://skylog.bg/pages/en.php" class="" title="EN"><img src="<?php echo WB_URL; ?>/media/flags/en.png" alt="EN" title="EN"></a></span>
</div>
the only issue I face is that in mobile version the language appears on the bottom of the page. Any idea how to keep it on the top?
if i look into the source code, the code for the flagmenu is part of a div, called fg-no-mobile. this div is defined in fitgrid.css and use a display:block on the desktop-view and a display:none on mobiles
Two possible way's (maybe more)
you use a new place for the flag menu, outside from the actual div fg-no-mobile, that is visible every time (maybe on the right side from the logo in the top)
or you add a second flagmenu with a new css-class, that is visible only on mobiles
from my personal view, in the mobile view the part in the top is a good place
It is very simple (for example), to split the div class="logo" into two parts or put in this div another div with the same menu-code like the flag-menu on desktop-view and define a fixed position on the right side of this div
To the discussion about the old WB-Version... i talk and write with a lot of users outside from germany and i've to say, i think we, here in german's are the only country, where you can order a domain with the latest php-version, one day after the release
i spend a lot of time in the last weeks, to upgrade 4 pages in canada with wb 2.7 or wb 2.8.1. this pages works well in the frontend, but it was not possible, to admin some pages after the php-upgrade there. Of course, i use the latest WB, but it will not run, latest php-version there, in this contract, was a PHP 7.4. The user needs now a new contract with new conditions and latest version there was a PHP 8.2.0, the active support for this end's at the end of this year (31 Dec 2024)
Not every owner can understand this and we germans can not understand, why others work with php 5.6
my tip for you: sometime's in the future, the provider of this page will switch off the old php-version's and the owner get the same problem with the admin area. be prepared for this. i work with locale copies on a locale server and i have it from all my customers. here i can test the whole WB-Upgrades, on rainy day's
P.S.: in the case of the canada pages, the webmaster ordered a new server and copy the old wb-project to this server, but nothing works. he write a mail to me, but canada is far away from here. it was night here, but he was waiting for a answer. one hour later, he use the cms-builder from the provider and build a new page. all work was in vain, the upgrade was finish, but in a special folder from the old server
.language-switcher {
right: 35px;
top: 5px;
position: absolute;
.language-switcher__language {
display: inline;
}
.language-switcher__language.language-switcher__language_active {
background: #fde067;
padding: 2px;
}
<div class="language-switcher" >
<span class="language-switcher__language language-switcher__language_active"><a href="https://skylog.bg/pages/bg.php" class="" title="BG">BG</a></span>
<span> / </span>
<span class="language-switcher__language"><a href="https://skylog.bg/pages/en.php" class="" title="EN">EN</a></span>
</div>
<div class="logo">
<a href="<?php echo WB_URL; ?>"><img src="<?php echo TEMPLATE_DIR; ?>/logo.png" width="210" height="58" alt="<?php echo WEBSITE_TITLE; ?>" border="0" /></a>
</div>
the only issue I face is that in mobile version the language appears on the bottom of the page. Any idea how to keep it on the top?
There was an uncatched exception<br />
strtolower(): Argument #1 ($string) must be of type string, null given<br />
in line (66) of (/framework/HttpRequester.php):<br />
Ideen?