17
Hi!
Thanks for the promt reply.
I am using the latest 2.2.5RC2 and the header.php looks quite different with the latest development.
I would be thankful, if you could help me in this. Pl. inform us where exactly the code you suggested must be inserted.
The reason why I ask:
I can get the blocks empty with the other language content on adding the language specific tags.
However this is impossible. There is more that one year work in the content and cannot make all the tags add [de][/de]!
Hence the content and the BLOCK needs to disappear with the language. Otherwise it is practically unusable, you know!
There are many reasons why I did tell phppp to add language field in the database.
If one starts a new website with a new language at a later date and wants to have the same database, then one can create new fields with a default and everything gets automatically assigned to the old language.
Thanks,
The following is the code in header.php
if (!defined("XOOPS_ROOT_PATH")) {
die("XOOPS root path not defined");
}
// Ensure charset setting
if (!headers_sent()) {
header('Content-Type:text/html; charset='._CHARSET);
}
$GLOBALS['xoopsLogger']->context = "core";
// Get blocks
$block_handler =& xoops_gethandler('block');
$block_handler->assignBlocks();
$GLOBALS['xTheme']->checkCache();
/////////////////// Add the new code here ?///////////////////
if ($xoopsConfig['language'] == 'lang1') {
$xoopsConfig['theme_set']='theme1';
}
if ($xoopsConfig['language'] == 'lang2') {
$xoopsConfig['theme_set']='theme2';
}
///////////////////
if (!isset($GLOBALS['xoopsOption']['template_main'])) {
include XOOPS_ROOT_PATH.'/include/old_theme_functions.php';
$xoopsTheme['thename'] = $GLOBALS['xoopsConfig']['theme_set'];
}
$GLOBALS['xoopsLogger']->context = "module";
?>