The UI to add a poll.
tempcode
add_poll
([?AUTO_LINK $topic_id = NULL])
-
?AUTO_LINK
$topic_id: The topic ID to add the poll to (NULL: it is instead gettable from a GET parameter named 'id')
Create a default post based on a template of quoting the given list of quotes.
tempcode
attach_quotes
(array $quotes)
-
array
$quotes: A list of posts to quote
Redirect to a screen suitable for celebrating a members birthday (existing topic, if possible).
tempcode
birthday
()
The actualiser to cascade a topic.
tempcode
cascade_topic
()
The actualiser to cascade topics.
tempcode
cascade_topics
()
The UI to categorise some PTs.
tempcode
categorise_pts
()
Check there is at least some moderation access over the given topic.
void
check_has_mod_access
(AUTO_LINK $topic_id)
-
AUTO_LINK
$topic_id: The topic ID
Choose an emoticon for a topic.
tempcode
choose_topic_emoticon
([ID_TEXT $selected_path = ''])
-
ID_TEXT
$selected_path: The currently selected emoticon
The actualiser to close a topic.
tempcode
close_topic
()
The actualiser to close topics.
tempcode
close_topics
()
The UI to grab a reason for deleting a poll.
tempcode
delete_poll
()
The UI to grab a reason for deleting a post.
tempcode
delete_post
()
The UI to delete some posts.
tempcode
delete_posts
()
The UI to delete a topic.
tempcode
delete_topic
()
The UI to delete some topics.
tempcode
delete_topics
()
The UI to edit a poll.
tempcode
edit_poll
()
The UI to edit a post.
tempcode
edit_post
()
The UI to edit a topic.
tempcode
edit_topic
()
Standard modular entry-point finder function.
?array
get_entry_points
()
Extract marker IDs that were past through in the GET/POST.
array
get_markers
()
Get tempcode for a poll adding/editing form.
tempcode
get_poll_form_fields
([SHORT_TEXT $question = ''], [?array $answers = NULL], [BINARY $is_private = 0], [BINARY $is_open = 1], [BINARY $requires_reply = 0], [BINARY $minimum_selections = 1], [BINARY $maximum_selections = 1])
-
SHORT_TEXT
$question: The poll question
-
?array
$answers: A list of current answers for the poll (NULL: none yet)
-
BINARY
$is_private: Whether it is a private poll (blind poll, where the results aren't visible until made public)
-
BINARY
$is_open: Whether the poll is open for voting
-
BINARY
$requires_reply: Whether a reply to the poll topic is required before voting
-
BINARY
$minimum_selections: The minimum number of selections for voters
-
BINARY
$maximum_selections: The maximum number of selections for voters
Standard modular specific-permission-overide finder function.
array
get_sp_overrides
()
Sort out breadcrumbing for a forum/topic/additional combination.
void
handle_topic_breadcrumbs
(AUTO_LINK $forum_id, AUTO_LINK $topic_id, string $topic_name, string $doing)
-
AUTO_LINK
$forum_id: The forum for breadcrumbing
-
AUTO_LINK
$topic_id: The topic for breadcrumbing
-
string
$topic_name: The topic name
-
string
$doing: The action currently being done
Standard modular info function.
?array
info
()
The UI to invite a member to a PT.
tempcode
invite_member
()
Copy marker IDs that were past through in the GET/POST into hidden form fields, so they may be relayed.
tempcode
keep_markers
()
The UI to make a normal topic a personal topic.
tempcode
make_personal
()
The actualiser to mark a forum as read.
tempcode
mark_read
()
The actualiser to mark a topic as read.
tempcode
mark_read_topic
()
The actualiser to mark topics as read.
tempcode
mark_topics_read
()
The actualiser to mark topics as unread.
tempcode
mark_topics_unread
()
The actualiser to mark a topic as unread.
tempcode
mark_unread_topic
()
The UI to run multi-moderations.
tempcode
mass_multimod
()
The UI to move some posts.
tempcode
move_posts_a
()
The UI to move some posts.
tempcode
move_posts_b
()
The UI to move a topic.
tempcode
move_topic
()
The UI to move some topics.
tempcode
move_topics
()
The UI to run a multi-moderation.
tempcode
multimod
()
The UI to make a post.
tempcode
new_post
()
The UI to create a PT.
tempcode
new_pt
()
The UI to create a new topic.
tempcode
new_topic
([boolean $personal_topic = false], [?MEMBER $member_id = NULL], [string $img_path = ''])
-
boolean
$personal_topic: Whether a new personal topic is being created
-
?MEMBER
$member_id: The member ID being whispered too (NULL: N/A)
-
string
$img_path: Theme image code
Get a list of post templates that apply to a certain forum.
array
ocf_get_post_templates
(AUTO_LINK $forum_id)
-
AUTO_LINK
$forum_id: The ID of the forum.
Mark a topic as unread by the current member.
void
ocf_ping_topic_unread
(AUTO_LINK $topic_id)
-
AUTO_LINK
$topic_id: The ID of the topic to mark as unread.
The actualiser to open a topic.
tempcode
open_topic
()
The actualiser to open topics.
tempcode
open_topics
()
The actualiser to pin a topic.
tempcode
pin_topic
()
The actualiser to pin topics.
tempcode
pin_topics
()
The form element for choosing a post template.
array
post_templates
(AUTO_LINK $forum_id)
-
AUTO_LINK
$forum_id: The forum ID we are looking for post templates active in
Do a redirection page to a certain topic/post (because we've just done an action and want to go back).
tempcode
redirect_to
(ID_TEXT $_title, AUTO_LINK $topic_id, [?mixed $lang = NULL], [?AUTO_LINK $post_id = NULL])
-
ID_TEXT
$_title: The language ID for the title to use in the page
-
AUTO_LINK
$topic_id: The ID of the topic to redirect to
-
?mixed
$lang: What to output (Tempcode or string) (NULL: default)
-
?AUTO_LINK
$post_id: The ID of the post to redirect to (NULL: redirect to topic instead)
Do a redirection page to a certain forum (because we've just done an action and want to go back).
tempcode
redirect_to_forum
(ID_TEXT $_title, AUTO_LINK $forum_id, [?mixed $lang = NULL])
-
ID_TEXT
$_title: The language ID for the title to use in the page
-
AUTO_LINK
$forum_id: The ID of the forum to redirect to
-
?mixed
$lang: What to output (Tempcode or string) (NULL: default)
The UI for a trivial form page that just asks a reason before relaying the results to the same URL, but with an underscored type.
tempcode
relay_with_reason
(ID_TEXT $_title)
-
ID_TEXT
$_title: The language ID for the title to use in the page
The UI to report a post.
tempcode
report_post
()
Standard modular run function.
tempcode
run
()
The actualiser to pin a topic.
tempcode
sink_topic
()
The actualiser to pin topics.
tempcode
sink_topics
()
A redirect for viewing post history: made like this so the history button can fit into the same URL architecture as the other post buttons.
tempcode
topic_history
()
The actualiser to track a forum.
tempcode
track_forum
()
The actualiser to track a topic.
tempcode
track_topic
()
The actualiser to uncascade a topic.
tempcode
uncascade_topic
()
The actualiser to uncascade topics.
tempcode
uncascade_topics
()
The actualiser to unpin a topic.
tempcode
unpin_topic
()
The actualiser to unpin topics.
tempcode
unpin_topics
()
The actualiser to unpin a topic.
tempcode
unsink_topic
()
The actualiser to unpin topics.
tempcode
unsink_topics
()
The actualiser to untrack a forum.
tempcode
untrack_forum
()
The actualiser to untrack a topic.
tempcode
untrack_topic
()
The actualiser to validate a post.
tempcode
validate_post
()
The actualiser to validate some posts.
tempcode
validate_posts
()
The actualiser to vote in a poll.
tempcode
vote_poll
()
The UI to choose between the two types of whisper.
tempcode
whisper
()
The actualiser to add a poll.
tempcode
_add_poll
()
The actualiser to add a reply.
tempcode
_add_reply
()
The actualiser to categorise some PTs.
tempcode
_categorise_pts
()
The actualiser to delete a poll.
tempcode
_delete_poll
()
The actualiser for deleting a post.
tempcode
_delete_post
()
The actualiser to delete some posts.
tempcode
_delete_posts
()
The actualiser to delete a topic.
tempcode
_delete_topic
()
The actualiser to delete some topics.
tempcode
_delete_topics
()
The actualiser to edit a poll.
tempcode
_edit_poll
()
The actualiser to edit a post.
tempcode
_edit_post
()
The actualiser to edit a topic.
tempcode
_edit_topic
()
The actualiser to invite a member to a PT.
tempcode
_invite_member
()
The actualiser to make a normal topic a personal topic.
tempcode
_make_personal
()
The actualiser to run multi moderations.
tempcode
_mass_multimod
()
The actualiser to move some posts.
tempcode
_move_posts
()
The actualiser to move a topic.
tempcode
_move_topic
()
The actualiser to move some topics.
tempcode
_move_topics
()
The actualiser to run a multi moderation.
tempcode
_multimod
()
Get Javascript to restrict post lengths.
string
_post_javascript
()