vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=322376

[RESOURCE] Useful & unique template conditionals
by Dr.CustUmz
15 Apr 2016 21:07

I wanted to post this in vb3 articles and believe that's where it should be, but I do not have permission to post there, so maybe someone can move this :D

For some of the basic conditionals visit THIS THREAD

This list is meant for developers and are conditionals I have collected and made over the years.

If you have a unique / useful conditional to add please share and I will add it to the list.


New posts

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


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


If hot thread
if reply count is greater than or equal to number of posts to be considered a hot thread option and that option is greater than 0
OR
if view count is greater than or equal to number of views to be considered a hot thread option and that option is greater than 0

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


If thread open

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


Show to guest if registration is on

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


No replies

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


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


if user posts less than 1

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


if these forum ids

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


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


if these scripts (page name)

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


if thread has prefix

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


if this page of this script

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


if last post over a year ago

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


If thread starter

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


if unread message

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


if user option show avatars

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


if notification

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


This one is just as an example (something to build from) but the jist of what it says is:
If can register OR option is on and is an admin

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


This is more of a Reference / backup for my snippets, but again feel free to add yours and I will add it to the list.

squidsk 19 Apr 2016 18:48

To post a new article you'll need to post in the top forum in the articles section Submit New Article and then once you're done wait for approval and it will get placed in the appropriate article area.


All times are GMT. The time now is 02:40.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.