The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional for Forum tab
I'm dissing the Navigation Manager and am re-creating my navbar in the templates because the limitation for THIS_SCRIPT with the Nav Manager always bugged me.
Anyway, I'm trying to re-create the Forum tab. What conditional is used? I tried: PHP Code:
|
#2
|
|||
|
|||
You're trying to set the forums tab active, right?
Isn't it THIS_SCRIPT, rather then VB_PRODUCT? |
#3
|
|||
|
|||
Yes, for a selected tab. THIS_SCRIPT is fine, but I was wondering if there was a better conditional to use than specifying all of the vB scripts individually.
Example: PHP Code:
|
#4
|
|||
|
|||
Is VB_PRODUCT defined within those scripts?
|
#5
|
|||
|
|||
Nope, VB_PRODUCT isn't defined in any of them.
|
#6
|
|||
|
|||
Then add this into them.
Code:
define('VB_PRODUCT', 'vbblog'); |
#7
|
|||
|
|||
vbblog isn't what I'm concerned with. That condition works fine. I wanted to know if there was a condition like that but for the forum scripts.
|
#8
|
|||
|
|||
Quote:
Code:
<vb:if condition="VB_PRODUCT == 'vbblog' || VB_PRODUCT == 'something_else'"> |
#9
|
|||
|
|||
It appears it only works with the blog .... http://www.8tiny.com/source/vbb-suit...nts/index.html
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|