The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there a hack so you can put PHP code into a template?
![]() That'd be really helpful ![]() ![]() |
#2
|
||||
|
||||
![]()
No, you can't put php in templates, some variables yes. however, Logician made a hack that allows you to put conditionals in the templates, this will be a feature in vb3. https://vborg.vbsupport.ru/showthrea...threadid=43325
|
#3
|
||||
|
||||
![]()
Yes you can put PHP in a special template, called the phpinclude template - It acts like global.php, but just is a template
![]() Satan |
#4
|
||||
|
||||
![]()
phpinclude is the onlyone.
this couldn't be hacked in easily, because all templates are just handled as strings (except phpinclude): $blabla = gettemplate("templatename"); so you have to rewrite every file you want to use php-templates ![]() however, in customtemplates you can use php if you call em like phpinclude (see example in global.php) |
#5
|
||||
|
||||
![]()
Yup
![]() You could make a new template called "lolarama", as long as you find the line: PHP Code:
PHP Code:
![]() Satan |
#6
|
||||
|
||||
![]() PHP Code:
![]() |
#7
|
||||
|
||||
![]()
It can can it?
Thanks ![]() ![]() Satan |
#8
|
||||
|
||||
![]()
just create your own conditionals like me
![]() ok, not so comfortable like logicians, but easier to use with experience ![]() |
#9
|
||||
|
||||
![]()
I think I might actually
![]() I won't release it though ![]() ![]() Satan |
#10
|
||||
|
||||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|