![]() |
Php in templates
Basically, I want the function to be able to use PHP in the template system.
Would anybody be able to do this? |
<a href="http://www.vbulletin.com/docs/html/main/templates_phpinclude_start" target="_blank">http://www.vbulletin.com/docs/html/m...pinclude_start</a>
vb docs explains it all. |
Ok, so if I had a load of code, that I wanted to be displayed on one page only, I'd have to include it on every page?
|
Quote:
PHP Code:
|
Quote:
|
So is there, absolutely no way to do it at the moment. If there isn't, would anybody be kind enough to make a hack?
|
As already said, you can't use PHP in templates (except a few functions in <if ...>-statements.
What you can do is put code in phpinclude_start|end, you can also do this conditional by using PHP Code:
|
Well, Zachery just said
Quote:
|
Hmm ... and what's the problem with putting the code in phpinclude_start?
|
So in the PHP start template, I'd put what (if I had loads of code, where would it go in the code you gave me).
Code:
if (THIS_SCITPT == 'foobar') { |
All times are GMT. The time now is 03:44 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:
|