The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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, |
#2
|
||||
|
||||
![]()
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"> stuff if THIS_SCRIPT is not defined </if> |
#3
|
|||
|
|||
![]()
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! |
#4
|
||||
|
||||
![]()
Wait a sec... only when viewing the Forums? Or when viewing any vbulletin page at all?
|
#5
|
|||
|
|||
![]()
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... |
#6
|
||||
|
||||
![]()
Ah, OK. I can't think of a single variable you can use to do that.
|
#7
|
||||
|
||||
![]()
What about testing for the absence of the vbulletin object...
<If condition = "!$vbulletin"> |
#8
|
||||
|
||||
![]()
Modifications (such as VBA) will still have $vbulletin defined. The only way (I can think of right now), is to compile a list of vBulletin default THIS_SCRIPT constants, and check if the current THIS_SCRIPT is in that list.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|