The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm creating a product and have two template elements that I want to include. One is for thread creation, the other when displaying a thread. So I rightly named the templates:
newthread_my_module showthread_my_module Now they are visible in the admin template editor area. I have edited both "newthread" and "SHOWTHREAD" to try and inlcude my templates like so: Code:
{vb:raw my_module} Code:
{vb:raw newthread_my_module} Can anyone shed some light on how I'm supposed to include my custom templates into a vB template? |
#2
|
|||
|
|||
![]()
I think I solved this on my own. I just added template hooks which need to be added to the theme(s).
|
#3
|
|||
|
|||
![]()
would u mind explaining how u did it? trying to do it myself
|
#4
|
|||
|
|||
![]()
I created a template hook in my plugin, then called the appropriate hook in whatever template I wanted.
For example: PHP Code:
Code:
{vb:raw template_hook.my_hook_name} |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|