The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I was wondering if anyone could point me in the direction of the easiest and cleanest way to include a php script site wide into the header of vbulletin. I have tried a couple ways, but it doesnt seem to work. Any suggestions?
|
#2
|
|||
|
|||
![]() |
#3
|
|||
|
|||
![]()
It isn't possible to "embed" a PHP script into your sites header template
However you can get VB to call your script, which then puts some output into a php variable that you can then reference in your header template To do this you would create a plugin via ACP, if you want this on all pages the hook point would be "global_start", in the plugin code you then call your script, or if you prefer you can put the entire PHP code into the plugin. So lets say you wanted your display header to show an image, your plugin code would look something like this: Code:
$a_variable_name = '<img src="myimage.jpg" alt="image" />'; Code:
<p>Check out this great image</p> <div>$a_variable_name</div> <p>It is fantastic is it not!</p> |
#4
|
||||
|
||||
![]()
I cant restore real header code on my vbulletin! Can any one please to post me real code here ?!
|
#5
|
||||
|
||||
![]() Quote:
Either revert you template to get it back to original, or create a new style with no parent, and grab the code from there. |
Благодарность от: | ||
ShawneyJ |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|