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 |
---|
array
The post row.
array
The topic row.
boolean
Whether the post is the only post in the topic.
array
The detailed map.cns_get_forum_view(\AUTO_LINK $forum_id, array $forum_info, integer $start= 0
, \?integer $max= null
) : array
package | cns_forum |
---|
\AUTO_LINK
The forum ID.
array
The forum row.
integer
The start row for getting details of topics in the forum (i.e. 0 is newest, higher is starting further back in time).
\?integer
The maximum number of topics to get detail of (null: default).
array
The 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 |
---|
integer
The start row for getting details of topics in the Private Topic forum (i.e. 0 is newest, higher is starting further back in time).
\?integer
The maximum number of topics to get detail of (null: default).
\?MEMBER
The member to get Private Topics of (null: current member).
array
The details.cns_get_topic_array(array $topic_row, \MEMBER $member_id, integer $hot_topic_definition, boolean $involved) : array
package | cns_forum |
---|
array
The DB row of the topic.
\MEMBER
The member the details are being prepared for.
integer
The hot topic definition (taken from the config options).
boolean
Whether the viewing member has a post in the topic.
array
The 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_LINK
The ID of the topic we are getting details of (null: whispers).
integer
The start row for getting details of posts in the topic (i.e. 0 is start of topic, higher is further through).
integer
The maximum number of posts to get detail of.
boolean
Whether we are viewing poll results for the topic (if there is no poll for the topic, this is irrelevant).
boolean
Whether to check permissions.
array
The 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 |
---|
\?integer
Forum ID (null: private topics).
\?array
The forum row (null: private topics).
string
The filter category (blank if no filter)
integer
Maximum results to show
integer
Offset for result showing
\AUTO_LINK
Virtual root
\?MEMBER
The member to show private topics of (null: not showing private topics)
\Tempcode
The breadcrumbs
mixed
Either 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 |
---|
array
The details (array containing: last_post_id, id, modifiers, emoticon, first_member_id, first_username, first_post, num_posts, num_views).
boolean
Whether the viewing member has the facility to mark off topics (send as false if there are no actions for them to perform).
boolean
Whether the topic is a Private Topic.
\?string
The forum name (null: do not show the forum name).
\Tempcode
The topic row.find_first_unread_url(\AUTO_LINK $id) : \URLPATH
find_post_id_url(\AUTO_LINK $post_id) : \URLPATH