The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Is it possible to have a header.php file and call it in the header template.
if so what would I put in the Header Temolate to call it |
#2
|
||||
|
||||
![]()
No, it is not, though you could add a plugin that runs at global start and puts stuff in a variable which is later used in the header template.
|
#3
|
||||
|
||||
![]()
Yep and now you have lost me ...........he he
|
#4
|
||||
|
||||
![]()
Okay, right now you have a header.php file which, I assume, outputs interesting stuff using echo.
You need to make a copy of it that starts with Code:
$headerphpout=''; Code:
$headerphpout.= Next, go into Plugin System|Manage Products and click [Add/Import Product]. Fill out the bottom form and click save. (Example:feckie01,Special Header,1,My special header output) Now, click Add New Plugin on the left. Select the name you just gave your product, then global_start. Give a title, then paste your modified header.php into the large box, select yes, then click save. After that, add $headerphpout where you wanted to include header.php originally. Be warned, however, that errors in global_start plugins seem to get hidden, so if there's a problem, your code will fail silently. |
#5
|
||||
|
||||
![]()
Thanks will try this over the weekend
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|