![]() |
Conditional for all VBulletin pages?
Trying to display an image ONLY when not viewing a VBulletin page. I'm having trouble with a conditional for this.
Any ideas? Example: For all VBALinks pages I use <if condition="VBA_SCRIPT != 'links_directory'"> Is there one that can be used for all VBulletin pages? Thanks, |
Hmmm, I'm not sure if it would work, but vb pages define the term "THIS_SCRIPT" at the top of it's pages (looks like vba uses VBA_SCRIPT instead). So, maybe
HTML Code:
<if condition="!THIS_SCRIPT"> |
Thanks for the reply Lynne,
Unfortunately other apps also use the THIS_SCRIPT definition also... I was hoping that there was a variable defined that was ONLY used when viewing the forums. I can do what I want with some creative use of conditionals but it's not pretty. I was looking for something easy... :) Thanks! |
Wait a sec... only when viewing the Forums? Or when viewing any vbulletin page at all?
|
Only when viewing the vbulletin forums or any page associated with them such as registration, members list, blogs, groups... Any page that is made by Vbulletin - not any page that is created by any of the 3rd part addons I have such as VBalinks, Dynamics or even photopost.
Sorry if I wasn't clearer... |
Ah, OK. I can't think of a single variable you can use to do that.
|
What about testing for the absence of the vbulletin object...
<If condition = "!$vbulletin"> |
Quote:
|
All times are GMT. The time now is 10:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|