![]() |
PHP Code
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 :( |
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
|
Yes you can put PHP in a special template, called the phpinclude template - It acts like global.php, but just is a template:)
Satan |
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) |
Yup:)
You could make a new template called "lolarama", as long as you find the line: PHP Code:
PHP Code:
Satan |
PHP Code:
|
It can can it?
Thanks;) Now I can sort the "conditionals" thingy out without having to get anybody to use Logician's hack:) Satan |
just create your own conditionals like me :)
ok, not so comfortable like logicians, but easier to use with experience ;) |
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 |
Quote:
|
All times are GMT. The time now is 04:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|