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

Home » FUDforum » FUDforum Suggestions » Select theme, language by browser locale
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Select theme, language by browser locale [message #159391 is a reply to message #159086] Fri, 29 May 2009 17:16 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Here is a simple plugin that can be extended to route users to different themes. Please extend and post back:

theme_router.plugin
// Initialize plugin
plugin_add_hook('INITUSER', 'plugin_theme_router');

// Override theme path
function plugin_theme_router($usr) {
    if (...) {
	@define('fud_theme', 'theme/mobile/');
    }
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Get a FUDforum cloud instance in less than 30 seconds.
Next Topic: tapatalk - do you heard about it?
Goto Forum:
  

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

Current Time: Sat Nov 23 12:47:29 GMT 2024

Total time taken to generate the page: 0.05224 seconds