The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Including files in the template code?
Just to let you know I'm new to vbulletin. They guy we had setting up our forums is no longer with us so I have to pick up the slack. Well I've built a site that uses it's own include files for header,Navigation and a few others. The problem is I can't use the code I wrote for the site in the template.
Here is my code for my site that I would like to add into my template. PHP Code:
|
#2
|
||||
|
||||
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you
Thanks, - Dean |
#3
|
||||
|
||||
Well, first off, you won't be able to use php for sure in the templates.
The only templates that will parse php code are the phpinclude_start and _end templates. I would check into replacing your templatecode with the html in the header and navbar template. |
#4
|
|||
|
|||
Quote:
How about I build everything with functions to either echo or return my HTML code. Can I include that file to one of the vbulletin php pages (Like global.php) and call the functions from inside the template code? So if I had this function PHP Code:
|
#5
|
||||
|
||||
What you would have to do is call the function and save it to a variable, which you can then call from the template.
so, in the *.php: $online = OnlineCount(); and in the template just use $online |
#6
|
|||
|
|||
Quote:
And thank you for the help.. |
#7
|
||||
|
||||
global.php as well as functions.php are both loaded on every page.
Either should work |
#8
|
|||
|
|||
Thank you Colin..
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|