find_first_unread_url (line 55)
Find the URL to the latest unread post in a topic.
URLPATH
find_first_unread_url
(AUTO_LINK $id)
-
AUTO_LINK
$id: The topic ID.
find_post_id_url (line 27)
Find the URL to a post.
URLPATH
find_post_id_url
(AUTO_LINK $post_id)
-
AUTO_LINK
$post_id: The post ID.
ocf_get_details_to_show_post (line 103)
Turn a post row, into a detailed map of information that is suitable for use as display parameters for that post.
array
ocf_get_details_to_show_post
(array $_postdetails, [boolean $only_post = false])
-
array
$_postdetails: The post row.
-
boolean
$only_post: Whether the post is the only post in the topic.
ocf_read_in_topic (line 232)
Read in a great big map of details relating to a topic.
array
ocf_read_in_topic
(?AUTO_LINK $topic_id, integer $start, integer $max, [boolean $view_poll_results = false])
-
?AUTO_LINK
$topic_id: The ID of the topic we are getting details of (NULL: whispers).
-
integer
$start: The start row for getting details of posts in the topic (i.e. 0 is start of topic, higher is further through).
-
integer
$max: The maximum number of posts to get detail of.
-
boolean
$view_poll_results: Whether we are viewing poll results for the topic (if there is no poll for the topic, this is irrelevant).