![]() |
Recalling Templetes? please help
I'm pretty sure there is a way to do this but I cant remember it.
I want to call up a templete while in another templete, for example.. I want to call up another templete in the postbit templete. This is so its easier for me to manage different hacks of the postbit templete and just makes it look more organized for me. Would I simply use php include? Or does Vb3 have another way of doing this? Thanks! |
if your talking about adding a new template and calling it, it make it $example you would have to do sumthing to make it eval. if you wanted to call a template outside the postbit, you might need to make sure its called for that specific page... sorry im not more help :\
|
I could place the new templete in the postbit templetes section.. how would I use the eval function to call it?
Thanks for your help! |
no friggin clue
|
Quote:
|
In vB 3 you can use the <if> <else /> tags inside the postbit template. That avoids having to hack the files, witch you are going to have to do if you want the custom template added correctly.
|
Ok, so I use the If condition to call the templete? I dont understand how that works.
|
no, embed the html into postbit within the <if> tags. for example:
Code:
<if conditinal="$bbuserinfo[userid] != 0"> |
Ok, thats good to know and I can definately use that. I guess what I was asking for isnt possible. I cant use like a variable $templetename and have that code parsed there huh?
|
Quote:
I have tried to do it in the phpinclude_start template but this is not working for 100%. For some of my home-made templates I have hacked my index.php |
Quote:
Before you look into calling templates via the phpinclude template's you should read this thread: http://www.vbulletintemplates.com/mo...ead.php?t=4216 |
Quote:
Suggestion: As you can see all custom templates are grouped at top of the list. Perhaps the dev team will make it so that all custom templates will be cached automagicly. This is a good thing to add and will make life as easy as with conditionals. In my board is just one hack (to cache two templates) the rest is done by conditionals and only template mods. I like it that way. Ad |
Thanks so much for you help guys! I think I have a place to start now :)
|
All times are GMT. The time now is 04:24 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:
|