The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional based on domain name
Hi there,
I am working to semi-combine two forums while keeping separate identities at the same time. First, let me say I have licenses for both sites. What phrase would I need to use to detect the domain name of the site so I can display different forums, styles, templates, etc. I'm thinking it would be something like HTML Code:
<if condition="((THIS_DOMAIN == 'mydomain1.com') > display page 1 <if condition="((THIS_DOMAIN == 'mydomain2.com') > display page 2 <else /> Display something else. </if> Thanks! |
#2
|
||||
|
||||
Use: $_SERVER['HTTP_HOST']
|
#3
|
|||
|
|||
Thanks, this works perfectly!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|