slackero / phpwcms

Flexible, fast, powerful, customer, developer friendly web content management system and cms framework
http://www.phpwcms.org
GNU General Public License v2.0
92 stars 45 forks source link

Image Gallery #355

Closed Chaffinch closed 8 months ago

Chaffinch commented 8 months ago

Image Gallery Ich versuche zu erstellen als:

Ich bekomme Fehlermeldungen Grafik DIV used as Slimbox v2.05

Fatal error: Uncaught Error: Call to undefined function initSlimbox() in /home/users/ikr.../public_html/phpwcms/include/inc_front/content/cnt29.article.inc.php:132 Stack trace: #0 /home/users/ikr.../public_html/phpwcms/include/inc_front/content.article.inc.php(615): include() #1 /home/users/ikr.../public_html/phpwcms/include/inc_front/content.func.inc.php(711): include_once('/home/users/ikr...') #2 /home/users/ikr.../public_html/phpwcms/index.php(69): require('/home/users/ikr...') #3 {main} thrown in /home/users/ikr.../public_html/phpwcms/include/inc_front/content/cnt29.article.inc.php on line 132

Grafik

Fatal error: Uncaught Error: Call to undefined function initSlimbox() in /home/users/ikr.../public_html/phpwcms/include/inc_front/content/cnt2.article.inc.php:78 Stack trace: #0 /home/users/ikr.../public_html/phpwcms/include/inc_front/content.article.inc.php(615): include() #1 /home/users/ikr.../public_html/phpwcms/include/inc_front/content.func.inc.php(711): include_once('/home/users/ikr...') #2 /home/users/ikr.../public_html/phpwcms/index.php(69): require('/home/users/ikr...') #3 {main} thrown in /home/users/ikr.../public_html/phpwcms/include/inc_front/content/cnt2.article.inc.php on line 78

Server: Server API Apache 2.0 Handler PHP Version 8.2.15 System Linux

slackero commented 8 months ago

You have selected a JavaScript lib in the template?

Chaffinch commented 8 months ago

Ich glaube schon .Ich habe einen Testartikel und eine Galerie hinzugefügt. Ich habe eine Vorschau erstellt, ich habe diese Fehler. In der Vorlage habe ich die Bibliothek geändert in JQuery 3.4.1 ,das Problem ist verschwunden.

Chaffinch commented 8 months ago

Screenshot 2024-02-28 at 05-19-45 Zaplecze phpwcms (administracja) Ich habe 3 Spalten eingerichtet, es sind nur zwei http://1.10.2.foto.malopolska.pl/

slackero commented 8 months ago

As you have found out that it's required to have a JavaScript lib selected, otherwise it does not work.

I have implemented a fallback to avoid this.

Chaffinch commented 8 months ago

Slimbox v2.05 multilang switch https://github.com/Chaffinch/phpwcms-1.10.2-lang-pl/commit/2e219d2a5b0005df65afa4bebaf684295ae7d05c Oliver please let me know if the German tags are displayed correctly: nextlabel-de.gif, closelabel-de.gif,prevlabel-de.gif The test is here: http://1.10.2.foto.malopolska.pl/ Thanks for the info

slackero commented 8 months ago

Yes, it's German.

Bildschirmfoto 2024-03-01 um 22 45 49
slackero commented 8 months ago

Slimbox v2.05 multilang switch Chaffinch/phpwcms-1.10.2-lang-pl@2e219d2 Oliver please let me know if the German tags are displayed correctly: nextlabel-de.gif, closelabel-de.gif,prevlabel-de.gif The test is here: http://1.10.2.foto.malopolska.pl/ Thanks for the info

Remember that there usually is no JavaScript required any longer. CSS with the :lang() selector works very well.

html:lang(de) #lbPrevLink:hover {
    background-image: url(prevlabel-de.gif);
}
html:lang(pl) #lbPrevLink:hover {
    background-image: url(prevlabel-pl.gif);
}
Chaffinch commented 8 months ago

Vielen Dank, ich wünsche Ihnen ein schönes Wochenende