Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
0 Members and 1 Guest are viewing this topic.
Is it possible to detect automatically the language (by IP or by OS language) if are not present cookie?
Quote from: TXtaholic on April 26, 2005, 01:46:10 PMon Lanuage select is it possible to for user to see another template??let's say i have english and farsii want the user when he chooses the farsi to get a totally different template!u'll need delete from global.php: Code: [Select]define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']."/icons");and this:Code: [Select]//-----------------------------------------------------//--- Templates ---------------------------------------//-----------------------------------------------------include(ROOT_PATH.'includes/template.php');$site_template = new Template(TEMPLATE_PATH);And then find:4images older then v1.7.3:Code: [Select]include(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');4images v1.7.3 or newer:Code: [Select]include_once(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');insert above:Code: [Select]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)
on Lanuage select is it possible to for user to see another template??let's say i have english and farsii want the user when he chooses the farsi to get a totally different template!
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);
include(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
include_once(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
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);
I'm sorry, what icon? I'm not familiar with "Buddy Mod", and don't know how it works...A screenshot of how it should look like and how it actually looks could possibly help.
Quote from: V@no on October 25, 2008, 09:28:01 PMI'm sorry, what icon? I'm not familiar with "Buddy Mod", and don't know how it works...A screenshot of how it should look like and how it actually looks could possibly help.Hello V@no and thanks for your support .The Buddy mod is here http://www.4homepages.de/forum/index.php?topic=19755.0.Also please see atached 2 screenshots from english and romanian language
Quote from: robertx on October 26, 2008, 02:15:34 PMQuote from: V@no on October 25, 2008, 09:28:01 PMI'm sorry, what icon? I'm not familiar with "Buddy Mod", and don't know how it works...A screenshot of how it should look like and how it actually looks could possibly help.Hello V@no and thanks for your support .The Buddy mod is here http://www.4homepages.de/forum/index.php?topic=19755.0.Also please see atached 2 screenshots from english and romanian language You have to upload your romanian button in to your_template/images_romanian folder if you don't have one you should create him.
What you think will me the best sollution for set up the romanian language as default ?
Quote from: robertx on October 26, 2008, 06:36:53 PMWhat you think will me the best sollution for set up the romanian language as default ?It is really up to you.
Quote from: V@no on October 26, 2008, 07:30:22 PMQuote from: robertx on October 26, 2008, 06:36:53 PMWhat you think will me the best sollution for set up the romanian language as default ?It is really up to you. Hello V@no . I have setup from admin romanian as default . the default template default and for english template default_ english . It 's working ok for romanian but when i try to select english the language is unchanged , in this mode will work just romanian . why ?