how to exclude index page from displaying a code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pocket Aces
    Member
    • Mar 2007
    • 99
    • 4.2.x

    how to exclude index page from displaying a code

    how to exclude forum homepage from displaying a code?
    on vb3.8 i use this if statement to do it...

    <if condition="THIS_SCRIPT != 'index'">
    code here
    </if>

    but now it wont work anymore in vb4. i receive invalid argument everytime i try to use it.

    im planning to exclude the index page from displaying the global footer ads.
    vBulletin 4.2.5 | PHP 7.0.31 | MariaDB 10.2.17
  • Munkholm
    Member
    • Dec 2010
    • 41
    • 5.7.0

    #2
    Old thread, but just found it thru google, and got the solution I was looking for... just need a minor change to the above.

    Code:
    <vb:if condition="THIS_SCRIPT != 'index'">
    code here
    </vb:if>
    -Munkholm
    www.revitforum.org

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...