Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 03-14-2007, 05:32 PM
Mr Pink's Avatar
Mr Pink Mr Pink is offline
 
Join Date: Oct 2006
Location: [Italy]
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vBulletin Conditionals [Complete List] - Help me/us/you!

vB Conditionals [Complete List]
Help me/us/you!


Hi, I've seen there is not a complete list of the vBulletin conditionals. So, why do't you, coders, help us posting here all the ones you know?


I will upgrade this post!

------------------------------------
Occurrence of '$show' in every vBulletin file included in the root and /includes/ directory - by Brad - [Download it Now!].
Reply With Quote
  #2  
Old 03-14-2007, 11:03 PM
PayBas PayBas is offline
 
Join Date: Jun 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not all conditionals can be used in every template. I'm not sure where you can lookup which conditionals are available for each template though.
Reply With Quote
  #3  
Old 03-15-2007, 04:38 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find where the template is used (search within files) and look for variables set.
Reply With Quote
  #4  
Old 03-15-2007, 08:33 AM
Mr Pink's Avatar
Mr Pink Mr Pink is offline
 
Join Date: Oct 2006
Location: [Italy]
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Find where the template is used (search within files) and look for variables set.
How can I do this?
Should I search for templates names in all the vBulletin files? o_0

Quote:
Originally Posted by Mr Pink View Post
For example, wich is the conditional for announcements?
I've try <if condition="$show['announcements']>, but it doesn't work!
Oh, I've found it.

Code:
<if condition="$announcebits">
Reply With Quote
  #5  
Old 03-15-2007, 09:41 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr Pink View Post
How can I do this?
Should I search for templates names in all the vBulletin files? o_0
Yes, then you see the code above it and see the variables set.
Reply With Quote
  #6  
Old 03-15-2007, 09:59 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may find the attached file helpful. It lists every occurrence of '$show' in every vBulletin file included in the root and /includes/ directory.

It did pick up on some unrelated junk, and $show[] is not used for everything..however it is nice to know where these things are in the code.

Hope this file is helpful to someone.
Attached Files
File Type: txt $show_vb364.txt (113.9 KB, 129 views)
Reply With Quote
  #7  
Old 03-15-2007, 10:26 AM
Mr Pink's Avatar
Mr Pink Mr Pink is offline
 
Join Date: Oct 2006
Location: [Italy]
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really thanks, Brad!
One question. What these means: "(280,3), etc"?
Reply With Quote
  #8  
Old 03-15-2007, 12:41 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr Pink View Post
Really thanks, Brad!
One question. What these means: "(280,3), etc"?
The first number is the line number the code resides at in the file. The second number is the postition of "$show" on the line in question.
Reply With Quote
  #9  
Old 03-15-2007, 12:46 PM
Mr Pink's Avatar
Mr Pink Mr Pink is offline
 
Join Date: Oct 2006
Location: [Italy]
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand. Thanks again, Brad!
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07248 seconds
  • Memory Usage 2,258KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete