The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
title says it all, i'm sure you can but not sure on the condition
|
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
This is technically what i mean, but is that string not available as a pre-made if condition? cause to me that looks like to be used in a script or something.
|
|
#4
|
||||
|
||||
|
If you're trying to do something in a template then just put the condition part of the if statement in the quotes of the condition attribute of the if tag otherwise.
Code:
<if condition="$_REQUEST['do'] == 'action'"> <else /> <endif> |
| Благодарность от: | ||
| greigeh | ||
|
#5
|
||||
|
||||
|
Quote:
in php Code:
if ($_REQUEST['do'] == 'action') {
Do this
} else {
Do that
}
Code:
($_REQUEST['do'] == 'action') ? (Do this) : (Do that) vBulletin php/html Code:
<if condition="$_REQUEST['do'] == 'action'"> do this <else /> do that </if> |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|