![]() |
How to insert a custom template?
Hi,
I'm trying to link to a template I made within another template. I'm obviously doing this so that the info within the custom template can be shown in the other templates automatically. I tried adding $templatename to the template by that hasn't worked. How might I do this? :ermm: |
Since no one has answered, I'll try to help...
In vB3.0, i used this code in phpinclude_start to create the variable name for template. PHP Code:
Edit: Or put it in the hook that would be executed wherever you're working... |
Or you using this new template with a new file or a default vbulletin style?
|
Quote:
Quote:
|
Opps, I meant to say default file not style. :D
|
Quote:
For hook name, find: global_start. For title, call it: I eat babies with syrup (or whatever) In the plugin PHP section put: PHP Code:
Then set YES for 'my plugin is active'. Then put $mytemplatevariable in any template where you want it to show up. |
All times are GMT. The time now is 08:53 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:
|