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
[Solved] Searchtext error/bug
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
[Solved] Searchtext error/bug
Last edited by Anonymous on Wed Aug 27, 2008 12:08 pm, edited 1 time in total.
Re: Searchtext error/bug
Try to use: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?
{search .... lang="$lang"}
Alby
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Searchtext error/bug
I did actually, and it did not make any difference at all. I will set up a demo, so you can see for yourself.alby wrote:Try to use: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?
{search .... lang="$lang"}
Alby
Thanks for the quick reply by the way

Re: Searchtext error/bug
ok, takechris-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?
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
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Searchtext error/bug
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.alby wrote:ok, takechris-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?
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
ok, change is 50 days ago. You can replace + row with - row but remember for any upgrade: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.
action.default.php (#42 row):
- $this->smarty->assign('searchtext',$this->Lang('search'));
+ $this->smarty->assign('searchtext',$searchtext);
Alby
-
- Power Poster
- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: Searchtext error/bug
Awesome, it works like a charm, thank you so much!
Btw, why did this change?
Btw, why did this change?