The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Execute PHP Code right after Header
(Yes, I know you could do this in the phpinclude template normally, but that won't work for what I need.)
What vBulletin PHP file would I need to modify if I need to execute some PHP code and output some text right after the header is displayed, on every page of the site? Thanks. |
#2
|
||||
|
||||
Use phpinclude_start. Anything that you try to output using it will be put into the $_phpinclude_output variable.
|
#3
|
||||
|
||||
I just said that I can't do that.
Having anything in phpinclude_start or end breaks the score submitting on the vb Arcade. So, I need to do it in the code itself... |
#4
|
||||
|
||||
Somewhere in global.php after:
PHP Code:
|
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Well, that worked, but it still breaks the arcade. Oh well. Thanks anyway.
|
#7
|
||||
|
||||
save the php code in a new file.php then in php include add this
$mycode = implode("", file("http://www.yoursite.com/forums/yourfile.php")); then in header template add $mycode at the end see u help me at vb.com and i help u :P |
#8
|
||||
|
||||
Quote:
|
#9
|
||||
|
||||
what code are you tryin to add?
|
#10
|
||||
|
||||
phpAdsNew. But, even if I try to include a file with nothing but a in it, it breaks. So it is just something related to including a file or such. :disappointed: John doesn't have any ideas either.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|