The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
register custom templates in phpinclude_start
I'm sorry if this post is in the wrong place... there's so many boards and forums, I'm not sure where to post.
I'm new to vB and .php (I'm an M$ guy), so this stuff is all new to me. I'm trying to give my vB forums the look of my existing website. My main website and vB forums are hosted by different companies (neither of them me), and I don't have access to Global.php for my vB forums, but I want to register some custom templates I've created. Can I do this in phpinclude_start (how)? Basically, I wan to modify the $header and $footer templates, but I want to put my code (plain HTML) into custom templates to keep everything cleaner, and make it easier to modify. |
#2
|
||||
|
||||
evaling templates will cause extra querys, and the only want to make sure they dont cause extra querys is to hack,
but for the short run of things eval('$VARBIEL_NAME = "' . fetch_template('TEMPLATE_NAME') . '";'); |
#3
|
|||
|
|||
Thanks, works great!
I'm going to ask my host to add an include to Global.php pointing to a single file that I will have access to edit. (That's possible right)? Then I can essentially edit Global.php without risking doing any serious damage to my install. |
#4
|
||||
|
||||
Well i dont think templates are cached in global.php, i think its init.php
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|