The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
including a header file?
how do i include my own header file on my forum, it used to have 4 boxes in the admin panel where in phpinclude_start i could enter my own include,
but with the new version it doesnt have it so does anyone know how to include my own header? |
#2
|
||||
|
||||
Quote:
|
#3
|
||||
|
||||
thnx again for your reply zachery
i dont know how to use the global_start hook, befor there was a box where i could include the header, but now there isnt, so in wat file do i have to include it or where exactly in the admin panel? and how do i use the global_start hook? thnx |
#4
|
||||
|
||||
can anyone help me with this?
|
#5
|
||||
|
||||
I can help you... I'm replying right now...
The first thing you need to do is create a php file. All that needs to be in the file is what you're trying to accomplish. You don't need to add the include crap. Once you got all that finished, upload it to your site. Keep the location in mind. Next step is creating the hook. Go to your admincp > Plugin System > Add New Plugin... Now enter this information in. Hook Location: global_start (1/4 down) Title: Whatever PHP Plugin Code: ob_start(); include('http://site.com/file.php'); $variable = ob_get_contents(); ob_end_clean(); Active: Yes Some details on that... Specify the location of the file. Change variable to match your liking. This is what you're going to use when you call for the file. If this is going in your header template, enter in $variable wherever you would like to call for it. Hope this helps. |
#6
|
||||
|
||||
That looks pretty promising, im off to college now, but ill try it when i get back, thanks for the help mate!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|