![]() |
How to get new template to display on home page
Hi, I have created a new template and am trying to get it to display in the index.php page of Vbulletin forums. The problem is that I can only get my new template or the existing template to display but not both at the same time. See below for more explation:
I created within vBulletin admin the 'forumhome_feature' template. Now I want to display this template within the Forum home page. I added it to the following: Code:
// pre-cache templates used by all actions But now I can only get it to display by itself without any of the other home page templates or page output using this code at the end: Code:
eval('$HTML = "' . fetch_template('forumhome_feature') . '";'); Code:
eval('print_output("' . fetch_template('FORUMHOME') . '");'); Thanks in advance for the help. |
use this in index.php put it before the print_output it called
PHP Code:
|
Thanks for the reply what do you mean by name place $forumfeature?
I put the $forumfeature inside the main formhome template and it didn't seem to help. |
$forumfeature is the variable name i gave your new template, you can change it if you want to. did u place the php code i gave in the index.php file and put it before the FORUMHOME template was called?
|
Hey, Thanks I got it to work. Is there a good reference doc about how VB handles templates/variables/.php, etc?
|
check in modification hints and tips, also try the docs at vbulletin.com;)
|
All times are GMT. The time now is 10:07 PM. |
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:
|