WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.11.x) »
  • Modules (Moderator: Boudi) »
  • WB Lingual: how to show GIF instead of PNG?
  • Print
Pages: [1]   Go Down

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

Offline RonR

  • Posts: 59
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!
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
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
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline RonR

  • Posts: 59
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.
 :-(
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
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
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
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

Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline RonR

  • Posts: 59
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!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.11.x) »
  • Modules (Moderator: Boudi) »
  • WB Lingual: how to show GIF instead of PNG?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2