Page 1 of 1
[Solved] Searchtext error/bug
Posted: Tue Aug 26, 2008 12:51 pm
by christiaans
Hey alby (and the others),
I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.
The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
Thanks in advance for any help.
(I'm not using any other modules other than the standard MLE ones).
Cheers,
Chris
Re: Searchtext error/bug
Posted: Tue Aug 26, 2008 8:33 pm
by alby
chris-s wrote:
I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.
The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
Try to use:
{search .... lang="$lang"}
Alby
Re: Searchtext error/bug
Posted: Tue Aug 26, 2008 10:30 pm
by christiaans
alby wrote:
chris-s wrote:
I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.
The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
Try to use:
{search .... lang="$lang"}
Alby
I did actually, and it did not make any difference at all. I will set up a demo, so you can see for yourself.
Thanks for the quick reply by the way

.
Re: Searchtext error/bug
Posted: Wed Aug 27, 2008 9:36 am
by alby
chris-s wrote:
I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.
The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
ok, take
The problem is that searchtext take or param searchtext or from admin option: Search text ....
use:
{search .... searchtext=`mle_translation.searchtext` lang="$lang"}
where searchtext is a key in
ALL mle/lang/mylocale.php:
'searchtext' => 'I want this in search field for this lang',
Alby
Re: Searchtext error/bug
Posted: Wed Aug 27, 2008 9:55 am
by christiaans
alby wrote:
chris-s wrote:
I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.
The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
ok, take
The problem is that searchtext take or param searchtext or from admin option: Search text ....
use:
{search .... searchtext=`mle_translation.searchtext` lang="$lang"}
where searchtext is a key in
ALL mle/lang/mylocale.php:
'searchtext' => 'I want this in search field for this lang',
Alby
Okay, I guess I could use that. However - it worked perfectly until I upgraded to 1.4.1, 1.3.1 was no problem, just so you know.
Re: Searchtext error/bug
Posted: Wed Aug 27, 2008 10:50 am
by alby
chris-s wrote:
Okay, I guess I could use that. However - it worked perfectly until I upgraded to 1.4.1, 1.3.1 was no problem, just so you know.
ok, change is 50 days ago. You can replace + row with - row but remember for any upgrade:
action.default.php (#42 row):
- $this->smarty->assign('searchtext',$this->Lang('search'));
+ $this->smarty->assign('searchtext',$searchtext);
Alby
Re: Searchtext error/bug
Posted: Wed Aug 27, 2008 10:57 am
by christiaans
Awesome, it works like a charm, thank you so much!
Btw, why did this change?