The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
does anyone know how to make custom conditionals for templates?
|
#2
|
|||
|
|||
![]()
Please explain more what you want.
|
#3
|
|||
|
|||
![]()
I just want to know the procedure on how to make one for future reference.
Right now I don't really need it. |
#4
|
|||
|
|||
![]()
I'm not entirely sure what your asking - what do you mean by "custom conditionals" ?
A template conditional is just: Code:
<if condition="$something"> ...html... </if> In your PHP script / plugin / etc, you'd set: PHP Code:
(hopefully that makes sense) ![]() |
#5
|
|||
|
|||
![]()
so I used this is the php script
PHP Code:
Code:
<if condition="$something"> ...html... </if> |
#6
|
|||
|
|||
![]()
Yep, that's exactly it.
|
#7
|
|||
|
|||
![]()
I thought I had to do with "iif"
Thanks for the help. |
#8
|
|||
|
|||
![]()
'iif' was an extension to PHP that was used in vB3.0. It is now depreciated in favour of the regular php syntax.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|