WBCE CMS – Way Better Content Editing.
You are not logged in.
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
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
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[]='';}
Last edited by losttrip (05.09.2021 18:08:22)
Offline
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
losttrip
Thank you. Under my circumstances, it's best to show nothing, if there are no posts.
Offline