The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[SOLVED] RELPATH in an vb:if condition
I am trying to detect what the current page is so that I can do some conditional styling by changing the stylesheet classes depending on the result.
I've seen in one of the template files the following if condition: Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' "> I have tried: Code:
<vb:if condition="RELPATH == 'mypath' "> I can output {vb:raw relpath} however I haven't been able to get that to work in an if condition either. How can I detect the current path to be used in an if condition? Thank you, Jay SOLUTION: After just throwing in bits here and there trying to get any result using some form of "relpath" I found this to work: Code:
<vb:if condition="$relpath == 'mypath'"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|