The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there a hack so you can put PHP code into a template?
![]() That'd be really helpful I know PHP... but I dont' know my way well enough around vB to hack it like normal people
|
|
#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 Now I can sort the "conditionals" thingy out without having to get anybody to use Logician's hack![]() 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 Logician's is good for commercial use, as all of his most recent hacks allow conditional use![]() Satan |
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|