1.4.4.3. DEFINE

Function

Using this statement, you can set definitions that can be used by the Phorum software. These are mainly used for doing settings from the template file "settings.tpl" to tweak Phorum's internal behaviour.

Definitions that have been set using this statement are not available from other template statements.

Syntax

{DEFINE <PHORUM DEFINITION> <VALUE>}

What you can use for <PHORUM DEFINITION> is fully determined by the Phorum software (and possibly modules). The <VALUE> can be any of the data types that are supported by the template language (see Section 1.4.3, “Data types”).

Example code

Example 1.15. DEFINE statement usage

{DEFINE list_pages_shown 5}