The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok, so I understand that the PHP files and the templates in Vbulletin are used together. But I'm not quit sure how. What I think is that variables and things are made in the PHP files and they're used somehow in the templates, Can anyone tell me how it all works please, or where I can find a thread that does.
Thanks. |
#2
|
||||
|
||||
![]()
The vBulletin system uses the eval() function to parse variables in HTML templates.
It uses an additional custom function, called fetch_template(), to grab a template that contains the HTML and variables. Templates are stored in the database, contrary to what many CMS systems do by storing them as files. What vBulletin system does can be done alternatively using some PHP functions (without the advance caching though): PHP Code:
PHP Code:
|
#3
|
||||
|
||||
![]()
remeber fetech_tempalte is done via vb3 not vb2 ;D
|
#4
|
||||
|
||||
![]()
Regardless of the name, the function exists in both versions. Whenever I say vBulletin, I'm always talking about the latest version.
/me shivers at the thought of vBulletin 2 |
#5
|
|||
|
|||
![]()
So all I'd need to do is do all of my variable stuff in the php, and then use the fetch_template at the bottom with the template I want to use and than I'd just put the variables with the values in the template?
|
#6
|
||||
|
||||
![]()
you cannot use the fetch_template inside ofa template its a php statment
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|