The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
http://www.vbulletin.com/forum/blog.php?b=2362
I figure this is pertinent enough for the focus of this board to generate some discussion. I, for one, am looking forward to this. Especially the <vb:each> loops. If I understood it correctly, this will allow use to reduce the amount of templates we have to create just by placing the bits inside the <vb:each> loops (like threadbits, forumbits, etc.). I've asked for clarification but Scott hasn't gotten back to me yet. Still, this is great news. ![]() Btw, mods, I didn't know if this belonged here or in the Community Lounge, feel free to move if needed. |
#2
|
||||
|
||||
![]()
Interesting.
![]() Also means almost all 3.x products will not work on 4.0 |
#3
|
||||
|
||||
![]() Quote:
I like it. |
#4
|
||||
|
||||
![]()
I wonder, though.
If they are not using eval ( ), what will they be using? print ( )? include ( )? There's a million ways to do a template system, I'm curious on how the $templater object works behind the scenes. |
#5
|
||||
|
||||
![]()
It looks like you use render() instead. It looks like you define it, then define the variables to include, then you render it.
|
#6
|
||||
|
||||
![]()
I think he wants to know how the render method causes the text substitution to build a page and output it to the browser.
I think it would be interesting to see. I am going to guess it will be a combination of preg_replace and output buffering techniques. I haven't seen the code yet though. |
#7
|
||||
|
||||
![]()
I hope some of the more experienced coders will update some of the tutorials that have been used around here and maybe write one for updating old plugins so they can be compatible with vb4.
![]() |
#8
|
||||
|
||||
![]()
If you look at the example, the output from render is caught to a variable. Meaning you'll just echo $template->render().
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|