FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to specify a theme (language) in the URL?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to specify a theme (language) in the URL? [message #39693 is a reply to message #39691] Tue, 20 November 2007 18:07 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   United States
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
First of all create 2 themes, call them "english" and "chinese".

Then open users.inc.t and look for the line which says:
define('fud_theme', 'theme/' . ($u->theme_name ? $u->theme_name : 'default') . '/');


Above this line you can do

if (!empty($_GET['theme'])) {
$u->theme_name = $_GET['theme'];
}


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can mods temp. ban someone.
Next Topic: Mark a Thread as Read
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 12:42:01 GMT 2024

Total time taken to generate the page: 0.05289 seconds