Warning: The author of this contribution does not provide support for it anymore.

Prime Quick Login

Problem with language - Prime Quick Login

Problem with language

by takufner » Sun Jan 01, 2012 3:32 pm

Hello,

This one of the first mod I ever installed. Great work, thanks :)

I am installing other mods and, suddenly, I have strange behavior from prime quick login:
The form shows well in every page, except when I am looking a topic.
In index, in the forum list, in the topic list... everything ok...
But in the topic view, the language file is not loaded. Instead of seeing "user name" or "password", I see { PRIME_QUICK_LOGIN_USERNAME } and { PRIME_QUICK_LOGIN_PASSWORD }.

I just followed all the installation instruction for this mod, and everthing looks ok.

Do you know how can I fix this?

Kind regards,
Thyago
User avatar
takufner
Registered User
Posts: 216
Joined: Mon Oct 23, 2006 10:39 am
Location: Rio de Janeiro - Brasil
Name: Prof. Caju
Contact:

Re: Problem with language

by primehalo » Tue Jan 31, 2012 9:35 am

No, I don't. That's really weird. The language file is included in the includes/prime_quick_login.php file, so if that file is included then so should the language file. And even if it cannot find the language file, it uses phpBB's default text:

Code: Select all

            if (file_exists($user->lang_path $user->lang_name '/mods/prime_quick_login.' $phpEx))
            {
                
$user->add_lang('mods/prime_quick_login');
            }
            else
            {
                
$template->assign_var('L_PRIME_QUICK_LOGIN_USERNAME'$user->lang['USERNAME']);
                
$template->assign_var('L_PRIME_QUICK_LOGIN_PASSWORD'$user->lang['PASSWORD']);
                
$template->assign_var('L_PRIME_QUICK_LOGIN_REMEMBER'$user->lang['LOG_ME_IN']);
                
$template->assign_var('L_PRIME_QUICK_LOGIN_HIDE'$user->lang['HIDE_ME']);
            }
 
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
primehalo
Former Team Member
Posts: 2910
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:


cron