PDA

View Full Version : Change Default Template based on URL


footose
01-24-2008, 04:44 PM
I have a forum which I'm thinking of sharing with another URL.

I would like the template to change depending what URL the user comes from.

Is there a built in function in vB that allows you to do this, or a plugin that someone knows about, or is this something that I would have to custom build?

Thank you.

--------------- Added 1201216444 at 1201216444 ---------------

In case anyone is wondering..

Made a plugin under the "style fetch" hook, basically this checks for the name of the site and changes the styleID to whatever you want.

Maybe I will make this a release with some other features, if anyone is interested..


// Check for name of site
if ( strtolower($_SERVER["HTTP_HOST"]) == "forums.generationaudi.com" )
{
$styleid = 13;
}