The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
include troubles
I have a quit difficult problem.
In my forum I use an include file to have the same header as the rest of the site. This include creates dynamic the code. I do this with a url check: $filename = $_SERVER['REQUEST_URI']; If the include is included in the forum it creates code A if the include is included in the rest of the website it creates code B My problem is that REQUEST-URI gives always the same URL (because the include file is still the same). How can I know the forum url and give it to the include? --------------- Added [DATE]1200561132[/DATE] at [TIME]1200561132[/TIME] --------------- ================================================== ======== When I use $filename = $_SERVER['REQUEST_URI']; in an include in my website it gives the correct url of the location bar in the browser. When I use $filename = $_SERVER['REQUEST_URI']; in an include in my forum it gives the wrong URL, that of the include and not the url in the location bar in the browser. Why is this? Can anyone help me how to retrieve the URL in the location bar? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|