on Lanuage select is it possible to for user to see another template??
let's say i have english and farsi
i want the user when he chooses the farsi to get a totally different template!
u'll need delete from global.php:
define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']."/icons");
and this:
//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
include(ROOT_PATH.'includes/template.php');
$site_template = new Template(TEMPLATE_PATH);
And then find:
4images older then v1.7.3:
include(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
4images v1.7.3 or newer:
include_once(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
insert above:
if ($config['language_dir'] == $l) $config['template_dir'] .= "_".$l;
define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']."/icons");
//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
include(ROOT_PATH.'includes/template.php');
$site_template = new Template(TEMPLATE_PATH);
With this change you will need create template for each language with this name format:
<template name>_<language>for example your default language is
english and have also
deutsch and
spanish languages.
the default template used has name
blahThen you must have three templates with names:
blahblah_deutschblah_spanishP.S. I've removed your page_header.php source, so it wont cloag up the search engine
next time if u want to show something like, attach the file as a .txt file
(or zip it)