WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 05.09.2021 16:27:34

losttrip
Mitglied

News with Images showing Nichts gefunden on English language site

WBCE Version: 1.5.0
Tag: 1.5.0
PHP Version: 7.4.22
News with Images ver 5.0.7

This is an English language website.

I just added NWI to a section on a page.  Since there are no posts, it shows default text "Nichts gefunden".  Not English.  I searched the NWI language files and then all files for "Nichts gefunden" but did not find it.

Where is this text coming from, and how do I fix it so it shows the correct English language text?

Thank you.

Offline

#2 05.09.2021 17:32:45

florian
Administrator

Re: News with Images showing Nichts gefunden on English language site

It comes from /modules/news_img/functions.inc.php, line 1255

if (empty($list)) {$list[]='Nichts gefunden';}

Either I was too lazy to put there a language variable or it did not work for some reasons. So just replace the appearance with the desired text.


Code allein macht nicht glücklich. Jetzt spenden!

Offline

#3 05.09.2021 18:06:01

losttrip
Mitglied

Re: News with Images showing Nichts gefunden on English language site

Thank you.

That line does not exist in the AOR download version News with Images ver 5.0.7

I searched the forum and found this post - https://forum.wbce.org/viewtopic.php?pid=35568#p35568

If I do not want any default text output when there are no posts, can I just remove that line?  Or will this have bed effects?

Or, if I don't want to display text,  is best to just remove the text and leave the code:

if (empty($list)) {$list[]='';}

Beitrag geändert von losttrip (05.09.2021 18:08:22)

Offline

#4 05.09.2021 18:09:57

florian
Administrator

Re: News with Images showing Nichts gefunden on English language site

You can remove the line without any problems.
In that case, the page is rendered as usual, but completely empty - no message at all, what might be a bit confusing or look like an error.


Code allein macht nicht glücklich. Jetzt spenden!

Offline

Liked by:

losttrip

#5 05.09.2021 18:12:22

losttrip
Mitglied

Re: News with Images showing Nichts gefunden on English language site

Thank you.  Under my circumstances, it's best to show nothing, if there are no posts.

Offline

Fußzeile des Forums

up