The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm new to all this stuff, but have programming experience in other languages (C, asm, basic). There is a link from vB.com to www.w3schools.com and they list html, xhtml, PHP commands, tutorials & reference documentation.
I believe templates are supposed to be PHP? Here is a list of PHP commands I've found at that reference link: PHP Basic PHP HOME PHP Intro PHP Install PHP Syntax PHP Variables PHP String PHP Operators PHP If...Else PHP Switch PHP Arrays PHP Looping PHP Functions PHP Forms PHP $_GET PHP $_POST But at this link http://www.vbulletin.com/docs/html/m...e_conditionals it says: Quote:
Quote:
Is it possible to use some of the other PHP commands? Switch statement? Arrays of variables or structures? Can a variable be created to point to a string in an attempt to keep the long 'if' statements a little cleaner? I've been at this for many hours and am lost. |
#2
|
||||
|
||||
![]()
Templates are HTML, with special "vBulletin" extensions (conditionals and phrase construction).
|
#3
|
|||
|
|||
![]()
If you have really long or complex conditions, execute them in a near by plugin. Then set a $show['blabla'] to true/false. Then use a condition like so:
Code:
<if condition="$show['blabla']>xxxxx</if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|