Hey :)
this is an easy one to solve, I reckon:
How do I add a "Nothing Found"-Text to an empty search-results page ?
Right now it's only an empty white page with side menu
when the search results found nothing.
Somewhere in the index.tpl... I'd guess?
cheers
kyp
Piwigo version: 2.5.1
PHP version: 5.4.17
MySQL version: 5.5.36-cll
Offline
Hello
check the Language tab of Localfile Editor
Offline
Nope nope nope. Still clueless :)
local/language/en_UK.lang.php <?php /* The file does not exist until some information is entered below. Once information is entered and saved, the file will be created. */ ?>
My theme is a customized elegant theme
But it also happened when I tried the original elegant theme and original default templates
(on the local piwigo, which is a duplicate of the live site).
The results are a nearly empty "content" container, only with the titrePage in it:
<html lang="en" dir="ltr" debug="true"> ... <body> <div id="the_page"> <div id="theHeader"/> <div id="menubar" style=""> <div id="menuSwitcher" class="menushown"> <div id="content" class="content contentWithMenu menushown"> <div class="titrePage"></div> </div> </body>
Offline
kyp_ wrote:
Nope nope nope. Still clueless :)
Code:
local/language/en_UK.lang.php <?php /* The file does not exist until some information is entered below. Once information is entered and saved, the file will be created. */ ?>
nope Check the original file with the links "Display reference file:..." then change the values
Offline
I've checked the reference before the last post, but I'm still not quite sure what you want me to change.
The only thing relevant I could find would be
$lang['Search results'] = "Search results";
but nothing like noResult or emptyResults to change to something useful.
And pictures help, so here's an attached JPG.
I would hope to see some clear text like "Nothing Found" in the empty white space below or at least to increase the header text on empty_search_results only (and not on actual results).
Hope I could express my unknown-factor ;)
Offline
sorry I completely misunderstood
Just wait for the 2.7 update : http://piwigo.org/dev/browser/trunk/the … x.tpl#L124
Offline
Ahhh now it makes sense ;)
Thanks though, for trying!
cheers
kyp
Offline
Hello,
I got the same problem. If nothing is found, the search-result-page is empty. There is the line
$lang['No results for'] = 'Keine Ergebnisse für';
in the common.lang.php which I opened with the LocalFiles Editor.
I added the line
$lang['No results for'] = 'completly different text';
in the editor-window, but again, nothing is displayed.
Theme: stripped_responsive
Piwigo 2.7.1
PHP: 5.5.5
Offline
Hi :-)
@hodihu you add in tab language ?
Online
I guess :-)
It's called
local/language/de_DE.lang.php in languages
Offline
OK everybody,
I deactivated every single plugin in my page bilderhamster.de and tested a nonsense-search. But each time I got a empty page with no information at all.
Any hints, pleeeeeease?!
Holger
Offline
As i wrote in the german forum, the error appears only in the theme stripped_responsive. Another theme (Elegant) shows the missing page with the search-results.
Can anybody name me a file, where I should look for a missing variable or something else?
Offline
hodihu wrote:
As i wrote in the german forum, the error appears only in the theme stripped_responsive. Another theme (Elegant) shows the missing page with the search-results.
Can anybody name me a file, where I should look for a missing variable or something else?
Not all themes support 'No results for' text. So for stripped_responsive you can add a following lines into index.tpl file in <div id="subcontent"> tag:
{if !empty($no_search_results)} <p class="search_results">{'No results for'|@translate}: <em><strong> {foreach $no_search_results as $res} {if !$res@first} — {/if} {$res} {/foreach} </strong></em> </p> {/if}
Offline
Hello JanisV,
many, many, many... thanks! That's exactly what I searched for.
Holger
Offline
Hi everybody
I applied this same solution and does not display "No results found", I'm using single-theme.
I also applied the message in the Language Editor LocalFiles
sorry my English is bad.
can you help me?
Piwigo 2.7.4
PHP 5.4
Offline