Author Topic: WB Lingual: how to show GIF instead of PNG?  (Read 189 times)

Offline RonR

  • Posts: 23
WB Lingual: how to show GIF instead of PNG?
« on: October 25, 2018, 04:26:19 PM »
Just updated WebsiteBaker to 2.12, and some plugins as well.
Updated mod-Lingual to the new WBLingual.
After update, flags changed to png and I want to show GIF flags instead again.

The line in my template file
(<?php $iMultiLang = 0; if (function_exists('language_menu')) etc)
 says gif, but not showing gif.

How should I change the code in MultiLingual/tpl/lang.html.twig to show gifs again?
Or change something else?

Any thoughts welcome!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4200
  • Gender: Male
    • Webdesign und Entwicklung WebsiteBaker
Re: WB Lingual: how to show GIF instead of PNG?
« Reply #1 on: October 25, 2018, 07:43:34 PM »
Quote
Hier der Fix für den gif Fehler, wird auch im Gesamtpaket WB2.12.1 mit einfliessen

https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=08607612

Dietmar
Immer nur von der Zukunft reden, die Gegenwart vergessen und auf die Vergangenheit schimpfen
Neues Unwort: Schnappatmung

Offline RonR

  • Posts: 23
Re: WB Lingual: how to show GIF instead of PNG?
« Reply #2 on: October 25, 2018, 08:51:29 PM »
Thank you for the quick reply!

I tried the update, but it is breaking my site.
As far as I can tell, the problem is in the file Lingual.php, after upload of that file my site is broken.
 :-(

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4200
  • Gender: Male
    • Webdesign und Entwicklung WebsiteBaker
Re: WB Lingual: how to show GIF instead of PNG?
« Reply #3 on: October 25, 2018, 08:58:15 PM »
send you a pm

Dietmar
Immer nur von der Zukunft reden, die Gegenwart vergessen und auf die Vergangenheit schimpfen
Neues Unwort: Schnappatmung

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4200
  • Gender: Male
    • Webdesign und Entwicklung WebsiteBaker
Re: WB Lingual: how to show GIF instead of PNG?
« Reply #4 on: October 25, 2018, 10:46:32 PM »
Remove the namespace in line 69 in file Lingual.php

original
        $oReg        = \bin\WbAdaptor::getInstance();

fixed
        $oReg        = \WbAdaptor::getInstance();

Dietmar

Immer nur von der Zukunft reden, die Gegenwart vergessen und auf die Vergangenheit schimpfen
Neues Unwort: Schnappatmung

Offline RonR

  • Posts: 23
Re: WB Lingual: how to show GIF instead of PNG?
« Reply #5 on: October 26, 2018, 09:40:44 AM »
Just upgraded to 2.12.1.

Everything is working like a charm again!

Thanks for your help, Dietmer and Luise, keep up the good work!

 

postern-length