The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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! |
#2
|
||||
|
||||
![]()
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 :\
|
#3
|
|||
|
|||
![]()
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! |
#4
|
||||
|
||||
![]()
no friggin clue
|
#5
|
|||
|
|||
![]() Quote:
|
#6
|
|||
|
|||
![]()
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.
|
#7
|
|||
|
|||
![]()
Ok, so I use the If condition to call the templete? I dont understand how that works.
|
#8
|
|||
|
|||
![]()
no, embed the html into postbit within the <if> tags. for example:
Code:
<if conditinal="$bbuserinfo[userid] != 0"> // some html here <else /> // shows to un-regged users in all posts // some more html </if> |
#9
|
|||
|
|||
![]()
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?
|
#10
|
||||
|
||||
![]() 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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|