Skip to content

Status CSS Class Tokens

John Henley edited this page Oct 2, 2024 · 3 revisions

New "status" tokens (new in 08.02.00)

Three new tokens added to return a CSS class based on status of forum, topic, and/or post.

  • [FORUM:STATUSCSSCLASS] - Can be used in Forum View template
  • [FORUMTOPIC:STATUSCSSCLASS] - Can be used in Forum View and Topics View template
  • [FORUMPOST:STATUSCSSCLASS] - Can be used in Forum View, Topics View template, and Topic View template

[FORUM:STATUSCSSCLASS]

[FORUM:STATUSCSSCLASS] gets replaced with:

  • dcf-forumstatus-no-access (you have "view" but not "read" access--should just remove one but preserved for legacy)
  • dcf-forumstatus-no-topics (forum is empty)
  • dcf-forumstatus-new-topics (last post in forum > user's last read post)
  • dcf-forumstatus-unread-topics (user has read newer posts but hasn't read every topic)
  • dcf-forumstatus-all-topics-read (user has read every topic in forum)

[FORUMTOPIC:STATUSCSSCLASS]

[FORUMTOPIC:STATUSCSSCLASS] gets replaced with:

  • dcf-topicstatus-no-access (user can see that post was made but can't read it; has "view" but not "read" access--Note: should probably just remove one but this is to support legacy)
  • dcf-topicstatus-new (post > user's last read post; user hasn't read at all or may have read original post and earlier replies but there are new replies)
  • dcf-topicstatus-unread (user hasn't read at all)
  • dcf-topicstatus-read (user is up-to-date on topic and any replies)
  • dcf-topicstatus-authored (user is the one who created it)

Note: This may result in multiple variations such as unread + authored.

[FORUMPOST:STATUSCSSCLASS]

[FORUMPOST:STATUSCSSCLASS] gets replaced with:

  • 'dcf-poststatus-no-access' (user can see that post was made but can't read it; has "view" but not "read" access--Note: should probably just remove one but this is to support legacy)
  • 'dcf-poststatus-new' (post/reply > user's last read post)
  • 'dcf-poststatus-unread' (user hasn't read)
  • 'dcf-poststatus-read'
  • 'dcf-poststatus-authored' (user is the one who created it)

Note: This may result in multiple variations such as unread + authored.

Clone this wiki locally