View Full Version : Template help?
mattster2002
07-25-2004, 11:29 AM
Hey guys, I am relatively new to vB but I have been given the task of converting a quite large PHPNuke web site to VBadvanced/VBulletin. Now heres the general problem I have, I am completely unfamiliar with the vb form of templates.
If I am wanting to modify the templates, which I have tried various ways of doing, how do i exactly add new templates so that i can just call them like through other templates, ie/ $header calling the teamplate header :(
Cheers
Tony G
07-25-2004, 12:18 PM
Are these templates you are wanting to have $header working in, outside the vBulletin system?
Try this:
https://vborg.vbsupport.ru/showthread.php?t=62164
mattster2002
07-25-2004, 12:30 PM
Sorry thought i might clarify myself further,
Say i've made some extra templates and i want to include them in the header, How do i make it so i can call them in the header, ie/ by using a variable $templatename just to include the template? is that possible
mattster2002
07-26-2004, 11:54 AM
anyone have any thoughts?
Colin F
07-26-2004, 12:26 PM
in the php file corresonding to that page (or if it's in a global file, header/footer, in th global.php) add this for each template you want to include:
eval('$templatevar .= "' . fetch_template('templatename') . '";');
change the $templatevar and the templatename for each template.
mattster2002
07-27-2004, 06:12 AM
Exactly what i was looking for, thanks alot Colin !!!
Colin F
07-27-2004, 06:30 AM
glad I could help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.