Not Solved Use theme ID based on (sub)domain
#1
Not Solved
Hi there!,

I wish to use a diffrent theme based on what domain the user visits,

for example i have:
example.com
bf.example.com
cod.example.com

(no, my website is not related to any game whatsoever, just merely an example Smile )

Now I wish to have the default theme on example.com
a diffrent theme for bf.example.com
another diffrent theme for cod.example.com.

I do NOT wish a plugin for this,
one of my subdomains is running on a heavy modified version of mybb,
and "example.com" is running on default.

However, they share the same database.
I'd only like to set my subdomain to use a pre-defined theme id instead of loading default theme.

There is a way doing this by making a diffrent mysql-db and syncing example.com & bf.example.com's DB,
But I prefer not to Smile 

So.. in general,  Is there a way to load up a diffrent theme based on domain-name?

Thank you in advance!
Everything is nothing, With a twist.
Reply
#2
Not Solved
If you can make the subdomains redirect, make it like:

www.example.com > http://www.example.com/index.php?themeid=1

http://bf.example.com > http://www.example.com/index.php?themeid=2

Because, subdomains use different folders

Sorry, I'm just a newbie to this.
Hope this answered your question
Reply
#3
Not Solved
No it didn't. Also I don't want to redirect because my subdomain installations are (as stated in first post) modified.
Everything is nothing, With a twist.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)