The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to link the forums to my website so I can use all of the forum variables.
Here is how I'm linking my site to the forums: PHP Code:
1) I link to forums with above code. 2) I try to include another file onto my website. 3) The first include doesn't work, but all includes after the first will work. Anyone have any idea why this happens? --------------- Added [DATE]1237574524[/DATE] at [TIME]1237574524[/TIME] --------------- I found the problem but I'm not sure why it's happening. On the forums I have a custom header included via require_once. Now when including the forums global.php on my website I guess it is including that header? So, when trying to use require_once again with that file on my website it wasn't showing up. But now my question is, why when including global.php does it include the forums header even though I don't see it? |
#2
|
||||
|
||||
![]()
Try this instead:
PHP Code:
|
#3
|
||||
|
||||
![]()
global.php already defines VB_AREA, it also already includes init.php.
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|