The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need some help adding new templates...
I have a chunk of code that I would like to put into a new template file so it can be inserted in multiple other templates. I know how to actually phsically create a new template...but what type of file changes do I need to make?
EDIT: I just realized I posted this in the wrong forum. Could a Mod please move it. Sorry. |
#2
|
||||
|
||||
*moved*
|
#3
|
|||
|
|||
AutomatikStudio,
Use the code: PHP Code:
You must include the variable in another template where you want the data that you put into the template to be called. Also you must place the php code in the php file before the template that you're placing the variable within. Hopefully that explains it somewhat. Cheers, g-force2k2 |
#4
|
||||
|
||||
Okay...I think I understand. Say I am trying to include something in the POSTBIT template. Which PHP file would I need to insert that code? And WHERE in the PHP file would I put it?
|
#5
|
|||
|
|||
AutomatikStudio,
You would add the php in functions_showthread.php somewhere around this line: PHP Code:
Cheers, g-force2k2 |
#6
|
||||
|
||||
Great! Worked perfect!
|
#7
|
||||
|
||||
Thank you g-force2k2, this is exactly what I was lookin to find out as well. Thanks for sharing the info
|
#8
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|