The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
If this is the wrong place for this, I truly apologize. I feel ike I have been searching forever for what I need, and I know it's something simple that's right under my nose. maybe someone here can help me?
I have gone in and created a new template, I simply copied the contents of my header file and pasted it in and gave it a new name. I named in testheader. However, when I replace the $header code in one of my templates with $testheader, it does not call it, just leaves that space blank. The help button in the admin panel says this: Enter the name of your template here. This will become the name of how the template is referenced by the system. This will be prefilled if you are editing an existing template. Please note: When adding custom templates, in order to have them parsed, you must also write PHP code to call them. Ok so I know that i am missing a step, but I can't figure out what exactly that next step is. Where do I write this PHP code to call this template so it will be parsed? What am I missing? For example, let's say that I have a new template named "testheader" and I want it to call from the template called FORUMDISPLAY. How would I go about getting the testheader to display? AMMENDED: I had orginally posted this on the VB.com forum and from that I managed to do this: Created a new Plugin (AdminCP->Plugin System->Plugin Manager->Add New Plugin) for the Hook Location: forumdisplay_start Then added the following code to the plugin: PHP Code: global $testheader; eval('$testheader = "' . fetch_template('testheader') . '";'); Then placed $testheader in my FORUMDISPLAY template, but it still gave me a blank spot instead of calling the header file. Any ideas on what I am missing or forgetting? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|