The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can I insert PHP into styles and templates?
Hello guys,
I'm creating new style for my site. I wonder is it possible to insert PHP code into templates? I've tried to use <? ?>, but it doesn't work. |
#2
|
||||
|
||||
No, not directly.
You might want to checkout the plugin system though. |
#3
|
||||
|
||||
Thanks for quick reply. Do you mean I should use just one plugin to enables <? ?> inserts or do you mean I should use plugins each time I want to insert PHP code (use plugin instead of PHP code)?
|
#4
|
||||
|
||||
Lets start with the basics here, you _cannot_ write php into the vBulletin templates, period.
I said you might want to checkout the plugin system, as in see how it works, chances are it will work for you. All you have to do is write your php code PHP Code:
|
#5
|
||||
|
||||
Thanks. I will learn plugins system.
|
#6
|
|||
|
|||
its possible to make a plugin that would let you
but it would be a waste of time.. |
#7
|
||||
|
||||
Why?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|