The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP in templates?
How can i add a php line in one of my templates? I need to include() a script, but all my attempts were unsuccessfull
|
#2
|
||||
|
||||
you cant do stright php in templates
you can only use php in 2 templates phpinclude_start and end |
#3
|
|||
|
|||
Any way to use these templates to include() my script in the template called, for example, "scripttemplate" ?
|
#4
|
||||
|
||||
$var = include(file.php);
put var into your template |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
i dont know php at all
|
#7
|
|||
|
|||
see i did this
$fav = "include('./favs/')"; $fav in my postbit template and it shows up as this = "include('./favs/')"; |
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
Quote:
$advertise = implode ('', file ('http://www.thecerealkiller.com/ad.php')); and where do i find all the spots where variable are listed... |
#10
|
||||
|
||||
There is an example of howto include PHP files in the default phpinclude_start template.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|