The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If condition help
What I am basically asking is this, in the coding below, am I able to check a condition whereas if the page is in the control panel, it shows the true boolean value. Else, shows the false boolean value.
<if condition="a condition"> htmlcode <else /> other html code </if> |
#2
|
|||
|
|||
HTML Code:
<if condition="VB_AREA == 'AdminCP'">
|
#3
|
|||
|
|||
Ok, so for the UserCP, it would be:
PHP Code:
|
#4
|
||||
|
||||
For UserCP, use <if conditinon="THIS_SCRIPT == 'usercp'"></if>.
|
#5
|
|||
|
|||
No then it would be 'Forum', there are only 2 areas identified currently in vB.
If you want to know exactly what script is being run, check the content of THIS_SCRIPT (current filename without .php) |
#6
|
|||
|
|||
Well, this is what I am trying to do. I have a side column in the header template. Now, when a member goes to the usercp pages, it will show a certain navigation menu. If they're not there, it will not show up. Can this be done?
The ONLY way that I know about doing this is by creating a seperate header for USERCP_SHELL to contain the special navigation. I was hoping to find a way around from doing this as I'll have to update the header in two places now instead of just one. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|