this is a valid fix :Fatal error: Call to a member function quick_language_setlang() on a non-object in xx/includes/session.php on line nnnn
Code: Select all
#
#---- [ OPEN ] ----
#
root/includes/session.php
#
#---- [ FIND ] ----
#
$this->lang_name = $this->data['user_lang'] = $quick_language->quick_language_setlang( $this->lang_name, $this->data['user_id'], $config['cookie_name'] );
#
#---- [ REPLACE WITH ] ----
#
global $quick_language;
$this->lang_name = $this->data['user_lang'] = quick_language::quick_language_setlang( $this->lang_name, $this->data['user_id'], $config['cookie_name'] );
Code: Select all
// Options //
define('QUICK_LANGUAGE_ENABLED', true); // Enable this MOD? Default true
define('QUICK_LANGUAGE_GUEST', true); // Allow guests to switch language ? Default true
define('QUICK_LANGUAGE_USER', false); // Allow registered users to switch language ? Default false
Code: Select all
define('QUICK_LANGUAGE_USER', false);
Code: Select all
define('QUICK_LANGUAGE_USER', true);
HI JeanPPP :JeanPPP wrote:Sorry for this maybe stupid question - but I think it can be as well useful for others who integrated their multi-language website in the phpbb3 project.
Thank you and muchas gracias!
thanksJeanPPP wrote:have a look on the file: function_quick_language.php
search forand change:Code: Select all
// Options // define('QUICK_LANGUAGE_ENABLED', true); // Enable this MOD? Default true define('QUICK_LANGUAGE_GUEST', true); // Allow guests to switch language ? Default true define('QUICK_LANGUAGE_USER', false); // Allow registered users to switch language ? Default false
to:Code: Select all
define('QUICK_LANGUAGE_USER', false);
this should work.Code: Select all
define('QUICK_LANGUAGE_USER', true);
That would be perfect - is that possible?JeanPPP wrote: For ANONYMOUS users who come on my website, can they use instead of the drop-down-select box also a link like this:
click on an image* of the Spanish flag: set language variable "user_lang" to "es"
click on an image* of the German flag: set language variable "user_lang" to "de"
click on an image* of the French flag: set language variable "user_lang" to "fr"
and so on ...
*the image of the language flags are placed somewhere flexible on the website
The add-on is not available yetSWAT4 wrote:That would be perfect - is that possible?
I use FF 3.0 and have no problemlovelysummer wrote:I try it in Firefox today, seems not working Anyone else is same to me
It is only my problem only and fixed now.leviatan21 wrote:I use FF 3.0 and have no problemlovelysummer wrote:I try it in Firefox today, seems not working Anyone else is same to me