cns_cache_member_details
cns_get_details_to_show_post
cns_get_forum_view
cns_get_post_emphasis
cns_get_private_topics
cns_get_topic_array
cns_read_in_topic
cns_render_forumview
cns_render_post_buttons
cns_render_topic
find_first_unread_url
find_post_id_url
cns_cache_member_details(array $members)
cns_get_details_to_show_post(array $_postdetails, array $topic_info, boolean $only_post = false) : array
| package | cns_forum |
|---|
arrayThe post row.
arrayThe topic row.
booleanWhether the post is the only post in the topic.
arrayThe detailed map.cns_get_forum_view(\AUTO_LINK $forum_id, array $forum_info, integer $start= 0, \?integer $max= null) : array
| package | cns_forum |
|---|
\AUTO_LINKThe forum ID.
arrayThe forum row.
integerThe start row for getting details of topics in the forum (i.e. 0 is newest, higher is starting further back in time).
\?integerThe maximum number of topics to get detail of (null: default).
arrayThe details.cns_get_post_emphasis(array $_postdetails) : \Tempcode
cns_get_private_topics(integer $start= 0, \?integer $max= null, \?MEMBER $member_id= null) : array
| package | cns_forum |
|---|
integerThe start row for getting details of topics in the Private Topic forum (i.e. 0 is newest, higher is starting further back in time).
\?integerThe maximum number of topics to get detail of (null: default).
\?MEMBERThe member to get Private Topics of (null: current member).
arrayThe details.cns_get_topic_array(array $topic_row, \MEMBER $member_id, integer $hot_topic_definition, boolean $involved) : array
| package | cns_forum |
|---|
arrayThe DB row of the topic.
\MEMBERThe member the details are being prepared for.
integerThe hot topic definition (taken from the config options).
booleanWhether the viewing member has a post in the topic.
arrayThe details.cns_read_in_topic(\?AUTO_LINK $topic_id, integer $start, integer $max, boolean $view_poll_results= false, boolean $check_perms= true) : array
| package | cns_forum |
|---|
\?AUTO_LINKThe ID of the topic we are getting details of (null: whispers).
integerThe start row for getting details of posts in the topic (i.e. 0 is start of topic, higher is further through).
integerThe maximum number of posts to get detail of.
booleanWhether we are viewing poll results for the topic (if there is no poll for the topic, this is irrelevant).
booleanWhether to check permissions.
arrayThe map of details.cns_render_forumview(\?integer $id, \?array $forum_info, string $current_filter_cat, integer $max, integer $start, \AUTO_LINK $root, \?MEMBER $of_member_id, \Tempcode $breadcrumbs) : mixed
| package | cns_forum |
|---|
\?integerForum ID (null: private topics).
\?arrayThe forum row (null: private topics).
stringThe filter category (blank if no filter)
integerMaximum results to show
integerOffset for result showing
\AUTO_LINKVirtual root
\?MEMBERThe member to show private topics of (null: not showing private topics)
\TempcodeThe breadcrumbs
mixedEither Tempcode (an interface that must be shown) or a pair: The main Tempcode, the forum name (string). For a PT view, it is always a tuple, never raw Tempcode (as it can go inside a tabset).cns_render_topic(array $topic, boolean $has_topic_marking, boolean $pt= false, \?string $show_forum= null) : \Tempcode
| package | cns_forum |
|---|
arrayThe details (array containing: last_post_id, id, modifiers, emoticon, first_member_id, first_username, first_post, num_posts, num_views).
booleanWhether the viewing member has the facility to mark off topics (send as false if there are no actions for them to perform).
booleanWhether the topic is a Private Topic.
\?stringThe forum name (null: do not show the forum name).
\TempcodeThe topic row.find_first_unread_url(\AUTO_LINK $id) : \URLPATH
find_post_id_url(\AUTO_LINK $post_id) : \URLPATH