![]() |
|
Article Options |
Useful & unique template conditionals
by
![]() 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. if browser using google chrome Chrome returns both safari, and chrome. trying to detect it with only chrome, does not work.
New posts
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
If thread open
Show to guest if registration is on
No replies
if user posts less than 1
if these forum ids
if these scripts (page name)
if thread has prefix
if this page of this script
if last post over a year ago
If thread starter
if unread message
if user option show avatars
if notification
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
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. Last edited by Dr.CustUmz; 24 May 2020 at 09:57.. Reason: added snippets |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Views: 64478
|
Comments |
#2
|
||||
|
||||
New conditional just had to figure out, thought I'd share, and make a backup of it =)
if browser using google chrome Chrome returns both safari, and chrome. trying to detect it with only chrome, does not work.
__________________
12/12/2020 - My PC has crashed, I have narrowed it down to the PSU, MB, or CPU. I believe it is the PSU (EVGA NEX750B) This is my job, creating free products and offering my services. With a daughter to be here any day I have very limited cash flow right now. If you wish to help me get a new PSU I would be greatly appreciative. PM me or read more here Dirt RIF CustUmz No members have liked this post.
Last edited by Dr.CustUmz; 24 May 2020 at 09:58. |
![]() |
Tags |
conditional, template |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:08.