I tried Quick Language Change 0.0.2 mod version. But it didn't work. That is when i want to change my language to other, it redirects to a blank page. And does n't run any action. How can i solve it?MartectX wrote:Version 0.0.2
- Added functionality outside of the ACP
OPEN includes/functions_quick_language_change.phpemil126a wrote:I tried Quick Language Change 0.0.2 mod version. But it didn't work. That is when i want to change my language to other, it redirects to a blank page. And does n't run any action. How can i solve it?
Code: Select all
redirect($redirect_url);
Code: Select all
echo $redirect_url;
I tried that.First i get php error above the header. But then i did n't get any error. And now it works.Thanks!!! But it translates only for registered users. But how can it translate for all users (that is for guests and registered users).MartectX wrote:OPEN includes/functions_quick_language_change.phpemil126a wrote:I tried Quick Language Change 0.0.2 mod version. But it didn't work. That is when i want to change my language to other, it redirects to a blank page. And does n't run any action. How can i solve it?
FIND (twice)REPLACE WITH (twice)Code: Select all
redirect($redirect_url);
What does get displayed near the upper edge of the browsing window now when you try to change your language?Code: Select all
echo $redirect_url;
From what page were you changing your language? Please copy the URL here.
But sorry i get the same error message again:emil126a wrote:I tried that.First i get php error above the header. But then i did n't get any error. And now it works.Thanks!!! But it translates only for registered users. But how can it translate for all users (that is for guests and registered users).MartectX wrote:OPEN includes/functions_quick_language_change.phpemil126a wrote:I tried Quick Language Change 0.0.2 mod version. But it didn't work. That is when i want to change my language to other, it redirects to a blank page. And does n't run any action. How can i solve it?
FIND (twice)REPLACE WITH (twice)Code: Select all
redirect($redirect_url);
What does get displayed near the upper edge of the browsing window now when you try to change your language?Code: Select all
echo $redirect_url;
From what page were you changing your language? Please copy the URL here.
Thanks again a lot!
Please undo the changes I posted above, then. If it works now, congrats.emil126a wrote:I tried that.First i get php error above the header. But then i did n't get any error. And now it works. Thanks!!!
For registered users:emil126a wrote:But it translates only for registered users. But how can it translate for all users (that is for guests and registered users).
Code: Select all
// ADMIN ONLY - comment out next line to enable for all registered users
if (!$auth->acl_get('a_')) return '';
Code: Select all
// ADMIN ONLY - comment out next line to enable for all registered users
//if (!$auth->acl_get('a_')) return '';
There is an automatic language detection MOD for guests, I highly recommend that (it's available here as a validated MOD)!CarolC1 wrote:I would like it to also show
1) on the index page to guests who are not logged in (to help them identify the Register button)
2) on the Registration Agreement page for guests (in case they missed it on the index page I'd like to give them a second chance)