The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
different header depending on what url website is typed in?
I was wondering if any one knows if there is a mod or some way that you can have a different header/logo show up depending on the url that is typed in.
For example- You are using ONE database the SAME forum. But you have TWO url's that go to this ONE forum. So for example you have siteone.com and sitetwo.com its the same site but when url siteone.com is the url typed in the address bar it will load the graphic/header that says siteone.com and then vise versa if sitetwo.com was typed in. I seen this mod that will load different banners according to the time- https://vborg.vbsupport.ru/showthread.php?t=236726 basically that's what I'd like to do but for it to change for whatever domain.com/url is typed in. I appreciate any help! Thank you! |
#2
|
|||
|
|||
You would just grab the current page URL using something like this:
Code:
<?php $current_page_URL = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; ?> Example: https://vborg.vbsupport.ru/showthread.php?t=286829 $_SERVER["SERVER_NAME"] will give you vbulletin.org $_SERVER["REQUEST_URI"] will give you /forum/showthread.php?t=286829 The do a check. Code:
<?php if {$current_page_URL = xxx} Show banner 1 {else} Show banner 2 ?> |
#3
|
|||
|
|||
Thank you for the help! I'll give it a try and see if it works!
|
#4
|
|||
|
|||
is there a way to-
If you go to sitetwo.com it still shows the url domain name sitetwo.com not siteone.com in the address bar on the browser. --------------- Added [DATE]1345532388[/DATE] at [TIME]1345532388[/TIME] --------------- Where do I make these changes? Code:
<?php $current_page_URL = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; ?> --------------- Added [DATE]1345601758[/DATE] at [TIME]1345601758[/TIME] --------------- I found what i was looking for thanks! https://vborg.vbsupport.ru/showthrea...e+forum&page=3 |
#5
|
|||
|
|||
Quote:
You have forwarded sitetwo.com to siteone.com, and somewhere in that same option you can check or uncheck the cloak. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|