Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2008, 04:44 PM
footose footose is offline
 
Join Date: Mar 2006
Posts: 321
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Change Default Template based on URL

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 [DATE]1201216444[/DATE] at [TIME]1201216444[/TIME] ---------------

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..

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:25 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.