Multilingual support for CSS fails

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Multilingual support for CSS fails

Postby tristone » Wed Jan 13, 2010 7:36 am

I'm new in phpBB3 (migrate from old punBB last week) and I found strange thing in phpBB3 premod package.

Default language for my forum is Czech, all users use this. But I was trying to offer more languges (English, Slovak) and it works, all texts are fine except images/buttons. All of them are in Czech no matter which language I set in User Control Panel.

So I tracked source code and find following thing. In style.php file there is a section from line 92 to line 99 which start deciding language to modify CSS for using correct imageset
Code: Select all
  if (!$user)
   {
      $id         = ($id) ? $id : $config['default_style'];
//      Commented out because calls do not always include the SID anymore
//      $recompile   = false;
      $user      = array('user_id' => ANONYMOUS);
   }

But if I print_r() content of $user it is empty before this check.

And lines 115 to 118 conatins this:
Code: Select all
   if ($user['user_id'] == ANONYMOUS)
   {
    $user['user_lang'] = $config['default_lang'];
   }

So for the CSS purposes ANONYMOUS user is used and that's why all button are in default forum language. Can sombody confirm this? And how to fix it?

Note: Style changing is correct. Only deciding of imageset directory is wrong.
tristone
 
Posts: 1
Joined: Wed Jan 13, 2010 7:22 am

Advertisement

Re: Multilingual support for CSS fails

Postby dcz » Fri Mar 12, 2010 4:23 pm

This is rather a purely phpBB matter. When you test, do you use your SID in the style url ? because otherwise, the session is not passed and it's normal to see $user empty.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests