Skip to main content

Template Variables: thread

threadobject
An html link to the thread
boarddummy_board
The board the thread originates from
board_idint
The board id the thread belongs to
can_replyint
If true, the current user can post a reply in the thread
category_idint
The category id the thread belongs to
checkboxstring
A checkbox html element
content_classstring
A class attribute to be applied to an html element that represents the thread
content_idstring
A string that says "thread-[id]". The [id] is replaced by the thread's id
could_replyint
If true, the user can reply to the thread if they are a registered forum member
created_byuser
The user who created the thread
created_onobject
Displays when the thread was created in an easily readable format
timestampint
The epoch timestamp for when the thread was created
first_postpost
The first post in the thread
idint
The unique numerical identifier of the thread
is_announcementint
If true, the thread is an announcement thread
is_bookmarkedint
If true, the thread is bookmarked by the current user
is_fallingint
If true, the thread is a falling thread
is_lockedint
If true, the thread is locked
is_newint
If true, the thread has unread posts for the current user
is_pollint
If true, the thread has a poll
is_stickyint
If true, the thread is stickied
labelsstring
The html to display all the labels applied to the thread
last_postpost
The most recent post in the thread
linkanchor_hash
A link to the thread
meta_iconsobject
The html for all unimportant meta icons
allstring
The html for all meta icons
announcementstring
The html for an announcement icon
bookmarkstring
The html for a bookmark icon
fallingstring
The html for a falling icon
importantstring
The html for all important meta icons
lockstring
The html for a lock icon
pollstring
The html for a poll icon
stickystring
The html for a sticky icon
thread_titlestring
The html for all meta icons except the bookmark icon
num_postsstring
The number of posts in the thread. The number is commified.
paginationstring
The html that displays the pagination for the thread
pollimage_hash
The html for a poll icon
recent_linkanchor_hash
A link to oldest unread post of the thread
replies_countint
The number of replies in the thread
short_contentstring
A brief blurb from the first post of the thread
status_classstring
A string of class names describing the following thread statuses: is-new, is-announcement, has-poll, is-bookmarked, is-locked, is-sticky, is-falling
subjectstring
The thread's subject
viewsstring
The number of times the thread has been viewed. The number is commified.