Announcement

#1 2014-06-01 14:03:37

kyp_
Member
2013-06-17
84

Empty Search Results Page - want to add text

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


Cheers

Offline

 

#2 2014-06-01 14:14:44

flop25
Piwigo Team
2006-07-06
7037

Re: Empty Search Results Page - want to add text

Hello
check the Language tab of Localfile Editor


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2014-06-01 17:05:23

kyp_
Member
2013-06-17
84

Re: Empty Search Results Page - want to add text

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. */

?>

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:


Code:

<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>

Cheers

Offline

 

#4 2014-06-01 17:08:41

flop25
Piwigo Team
2006-07-06
7037

Re: Empty Search Results Page - want to add text

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2014-06-01 17:39:34

kyp_
Member
2013-06-17
84

Re: Empty Search Results Page - want to add text

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 ;)


Cheers

Offline

 

#6 2014-06-01 17:42:37

flop25
Piwigo Team
2006-07-06
7037

Re: Empty Search Results Page - want to add text

sorry I completely misunderstood

Just wait for the 2.7 update : http://piwigo.org/dev/browser/trunk/the … x.tpl#L124


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2014-06-01 18:10:15

kyp_
Member
2013-06-17
84

Re: Empty Search Results Page - want to add text

Ahhh now it makes sense ;)

Thanks though, for trying!

cheers
kyp


Cheers

Offline

 

#8 2014-10-24 20:12:36

hodihu
Member
2014-10-24
7

Re: Empty Search Results Page - want to add text

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

 

#9 2014-10-24 20:23:27

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Empty Search Results Page - want to add text

Hi :-)

@hodihu you add in tab language ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#10 2014-10-24 20:35:45

hodihu
Member
2014-10-24
7

Re: Empty Search Results Page - want to add text

I guess :-)
It's called
local/language/de_DE.lang.php in languages

Offline

 

#11 2014-10-28 19:57:16

hodihu
Member
2014-10-24
7

Re: Empty Search Results Page - want to add text

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

 

#12 2014-10-30 09:25:38

hodihu
Member
2014-10-24
7

Re: Empty Search Results Page - want to add text

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

 

#13 2014-11-05 11:44:29

JanisV
Member
2013-09-25
85

Re: Empty Search Results Page - want to add text

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:

Code:

{if !empty($no_search_results)}
<p class="search_results">{'No results for'|@translate}:
  <em><strong>
  {foreach $no_search_results as $res}
  {if !$res@first} &mdash; {/if}
  {$res}
  {/foreach}
  </strong></em>
</p>
{/if}

Offline

 

#14 2014-11-05 17:22:23

hodihu
Member
2014-10-24
7

Re: Empty Search Results Page - want to add text

Hello JanisV,

many, many, many... thanks! That's exactly what I searched for.

Holger

Offline

 

#15 2015-05-08 17:32:29

MrFreaks
Member
2015-05-08
4

Re: Empty Search Results Page - want to add text

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact