Hi all, hallo an alle,
D: mit diesem Mod wird beim Auswählen einer anderen Sprache gleichfalls das tempate/Design gewechselt.
E: With this MOD your site visitors will be able chose language and automatically a different template/style.
1:D: Als erstes den "Language select" MOD einbauen.
E: First integrate the "Language select" MOD
2:Open
global.phpFind:
//-----------------------------------------------------
//--- Generate Setting --------------------------------
//-----------------------------------------------------
$sql = "SELECT setting_name, setting_value
FROM ".SETTINGS_TABLE;
$result = $site_db->query($sql);
if (!$result) {
echo $lang['no_settings'];
exit;
}
while ($row = $site_db->fetch_array($result)) {
$config[$row['setting_name']] = $row['setting_value'];
}
$site_db->free_result();
after add:
// registering global variable "user_template"
if (!isset($user_template))
session_register("user_template");
// check global variable for Empty
if ($user_template=="" || empty($user_template))
$user_template = $config['template_dir'];
// set the Template if QueryString is not nothing
if (!empty($l) || $l != "")
$user_template = $l;
$config['template_dir'] = $user_template;
3:D:
Als letztes müssen die neuen template Ordner mit den neuen styles hochgeladen werden.
Namen der jeweiligen template Ordner entsprechen der jeweiligen sprache (deutsch, english, usw.)
Jede Sprache hat nun sein eigenes Style.
Um den nun überflüssigen default Ordner löschen zu können, muss im Admin Controll Panel der
template Ordner "deutsch", bzw. die Standart Sprache, gewählt werden. Fertig
E:
in the last step you must upload the new template directories with the new styles.
The names of the directories must have the language names ( like: english, deutsch, ...)
Now every langugae have a different style.
Now you dont need the
default template directory. Before you delete them, go into
your admin controll panel and chose for your default template in the dropdownform this
template with the standart page language. Finish
Vorher / before:www.yourDomain.de 4images
|-- templates
|-- default (dein / your standard template)
Nachher / after:www.yourDomain.de 4images
|-- templates
|-- deutsch (dein / your standard template)
|-- english
|-- und so weiter / and so on
cu
Kurt