I'm sharing the Pipidae Forum for two websites. http://www.pipidae.de is german language and http://www.pipidae.net is english language. The board is under http://www.pipidae.org/cgi/phpBB3 . So I need to integrate two different navbars related to user_lang:
Installation:
1. create one XHTML 1.0 strict standard navbar per language. Call them:
phpbb_root/styles/prosilver/template/overall_navbar_de.html
phpbb_root/styles/prosilver/template/overall_navbar_en.html
More information - but use full URLs!!!: viewtopic.php?f=23&t=94 Step 1.
2. OPEN
phpbb_root/includes/functions.php
FIND
- Code: Select all
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
AFTER, ADD
- Code: Select all
'L_DE' => ($user->data['user_lang'] == 'de') ? true : false, 'L_EN' => ($user->data['user_lang'] == 'en') ? true : false,
3. OPEN
phpbb_root/includes/session.php
FIND
- Code: Select all
} // We include common language file here to not load it every time a custom language file is included
BEFORE, ADD
- Code: Select all
$this->data['user_lang'] = $this->lang_name;
4. OPEN
phpbb_root/styles/prosilver/template/overall_header.html
FIND
- Code: Select all
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
AFTER, ADD
- Code: Select all
<!-- IF L_DE --> <!-- INCLUDE overall_navbar_de.html --> <!-- ENDIF --> <!-- IF L_EN --> <!-- INCLUDE overall_navbar_en.html --> <!-- ENDIF -->
It's a dirty solution. But I don't know a more comfortable solution.
Bye Martin
