Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Sep 2008, 22:26
PhilMcKrackon PhilMcKrackon is offline
 
Join Date: Apr 2008
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,
Reply With Quote
  #2  
Old 20 Sep 2008, 04:15
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(I have not tried this.)
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 20 Sep 2008, 12:20
PhilMcKrackon PhilMcKrackon is offline
 
Join Date: Apr 2008
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!
Reply With Quote
  #4  
Old 20 Sep 2008, 15:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Wait a sec... only when viewing the Forums? Or when viewing any vbulletin page at all?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 20 Sep 2008, 15:34
PhilMcKrackon PhilMcKrackon is offline
 
Join Date: Apr 2008
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...
Reply With Quote
  #6  
Old 20 Sep 2008, 15:58
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Ah, OK. I can't think of a single variable you can use to do that.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 20 Sep 2008, 16:02
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
What about testing for the absence of the vbulletin object...

<If condition = "!$vbulletin">
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #8  
Old 21 Sep 2008, 07:25
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by Antivirus View Post
What about testing for the absence of the vbulletin object...

<If condition = "!$vbulletin">
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.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:29.

Layout Options | Width: Wide Color: