The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how does it work?
hello all,
i've opened some code (ex. vbplaza.php) and see something like Code:
// check if it should do the richest/most sold scripts if ($_REQUEST['do'] == 'main') { // always show some history on the main page $show['history'] = true; // always show it on the main page $show['richestmostsold'] = true; } Could some one teach me about this, how to write, how to use? Thank so much, sorry for my bad English |
#2
|
||||
|
||||
This is just for the templates. It tells whether to display a section or not.
In the template you'll see something like: Code:
<if condition="$show['history']"> Some code here </if> |
#3
|
||||
|
||||
vBulletin created an array called $show. This array is populated in a lot of files. It is how vBulletin will use complex if()'s and permissions in the file to figure out whether or not something should be displayed. Than, it assigns it to a $show key (true / false). Then inside templates they use <if condition="$show['this']"> here </if> to display things.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|