![]() |
create custom conditionals
does anyone know how to make custom conditionals for templates?
|
Please explain more what you want.
|
I just want to know the procedure on how to make one for future reference.
Right now I don't really need it. |
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) :) |
so I used this is the php script
PHP Code:
Code:
<if condition="$something"> ...html... </if> |
Yep, that's exactly it.
|
I thought I had to do with "iif"
Thanks for the help. |
'iif' was an extension to PHP that was used in vB3.0. It is now depreciated in favour of the regular php syntax.
|
All times are GMT. The time now is 02: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:
|