![]() |
Calling custom templates in vB default templates
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? |
I think I solved this on my own. I just added template hooks which need to be added to the theme(s).
|
would u mind explaining how u did it? trying to do it myself
|
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} |
All times are GMT. The time now is 10:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|