add_chatroom
blocking_add
blocking_remove
chat_get_all_rooms
chat_get_room_content
chat_logs_script
chat_poller
chat_post_message
chat_room_prune
chatroom_ban_to
chatroom_unban_to
chatter_active
check_chatroom_access
delete_all_chatrooms
delete_chat_messages
delete_chatroom
delete_chatroom_messages
edit_chatroom
enter_chat_lobby
filter_invites_for_blocking
friend_add
friend_remove
get_chat_sound_tpl
get_chatroom_fields
get_chatroom_id
get_chatroom_name
get_chatters_in_room
get_chatters_in_room_tpl
get_effect_set
get_effect_settings
get_num_chatposts
get_num_chatrooms
get_num_chatters
handle_chatroom_pruning
is_chat_moderator
member_befriended
messages_script
parse_allow_list_input
read_in_chat_perm_fields
render_chat_box
shoutbox_script
show_im_contacts
CHAT_ACTIVITY_PRUNE
CHAT_ACTIVITY_PRUNE
CHAT_ACTIVITY_PRUNE
CHAT_BACKLOG_TIME
CHAT_EVENT_PRUNE
add_chatroom(\SHORT_TEXT $welcome, \SHORT_TEXT $room_name, \MEMBER $room_owner, \LONG_TEXT $allow2, \LONG_TEXT $allow2_groups, \LONG_TEXT $disallow2, \LONG_TEXT $disallow2_groups, \LANGUAGE_NAME $room_language, \BINARY $is_im = 0
) : \AUTO_LINK
package | chat |
---|
\SHORT_TEXT
The welcome message
\SHORT_TEXT
The room name
\MEMBER
The room owner
\LONG_TEXT
The comma-separated list of users that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of users that may NOT access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may NOT access it (blank: no restriction)
\LANGUAGE_NAME
The room language
\BINARY
Whether it is an IM room
\AUTO_LINK
The chat room IDblocking_add(\MEMBER $blocker, \MEMBER $blocked, \?TIME $time = null
)
package | chat |
---|
\MEMBER
The member blocking
\MEMBER
The member being blocked
\?TIME
The logged time of the block (null: now)
blocking_remove(\MEMBER $blocker, \MEMBER $blocked)
package | chat |
---|
\MEMBER
The member unblocking
\MEMBER
The member being unblocked
chat_get_all_rooms() : array
chat_get_room_content(\AUTO_LINK $room_id, array $_rooms, \?integer $cutoff= null
, boolean $dereference= false
, boolean $downloading= false
, \?integer $start= null
, \?integer $finish= null
, \?integer $uptoid= null
, \?ID_TEXT $zone= null
, \?AUTO_LINK $entering_room= null
, boolean $return_my_messages= true
, boolean $return_system_messages= true
) : array
If you set the $dereference flag, all the messages will be dereferenced for you, and if you set the $downloading flag, the array is returned in a format appropriate for things like downloading the chat logs. $start and $finish are used to cutoff the number of messages returned, based on their posting date and time, and the $uptoid variable is used to make the function only return the messages newer than the ID specified.
package | chat |
---|
\AUTO_LINK
The room ID (-1 for IM)
array
Rooms database rows that we'll need
\?integer
The maximum number of messages to be returned (null: no maximum)
boolean
Whether to dereference the returned messages
boolean
Whether to return the messages in a downloadeable format (using the templates for log downloading)
\?integer
The datetime stamp to start gathering messages from (null: all)
\?integer
The datetime stamp to stop gathering messages at (null: current time)
\?integer
The lowest message ID to return (null: no special lowest number)
\?ID_TEXT
The zone the chat module is in (null: find it)
\?AUTO_LINK
The language ID for the "entering room" message (null: not entering the room)
boolean
Return the current user's messages?
boolean
Return system messages
array
An array of all the messages collected according to the search criteriachat_poller()
package | chat |
---|
chat_room_prune(\AUTO_LINK $room_id)
chatroom_ban_to(\MEMBER $member_id, \AUTO_LINK $id)
chatroom_unban_to(\MEMBER $member_id, \AUTO_LINK $id)
chatter_active(\MEMBER $member_id, \?AUTO_LINK $room_id = null
) : boolean
package | chat |
---|
\MEMBER
Member ID
\?AUTO_LINK
Room ID (null: lobby)
boolean
Whether the member is activecheck_chatroom_access(mixed $room, boolean $ret= false
, \?MEMBER $member_id= null
, boolean $must_be_explicit= false
) : boolean
package | chat |
---|
mixed
The row of the chat room to check for access OR it's ID (AUTO_LINK)
boolean
Whether to return false if there is no access (as opposed to bombing out)
\?MEMBER
The member to check as (null: current member)
boolean
Whether to also ensure for $member_id having explicit access
boolean
Whether the current member has access to the chatroomdelete_chatroom(\AUTO_LINK $id)
edit_chatroom(\AUTO_LINK $id, \SHORT_TEXT $welcome, \SHORT_TEXT $room_name, \MEMBER $room_owner, \LONG_TEXT $allow2, \LONG_TEXT $allow2_groups, \LONG_TEXT $disallow2, \LONG_TEXT $disallow2_groups, \LANGUAGE_NAME $room_language)
package | chat |
---|
\AUTO_LINK
The chat room ID
\SHORT_TEXT
The welcome message
\SHORT_TEXT
The room name
\MEMBER
The room owner
\LONG_TEXT
The comma-separated list of users that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of users that may NOT access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may NOT access it (blank: no restriction)
\LANGUAGE_NAME
The room language
filter_invites_for_blocking(string $people) : string
package | chat |
---|
string
Comma-separated people list
string
Filtered comma-separated people listfriend_add(\MEMBER $likes, \MEMBER $liked, \?TIME $time = null
)
package | chat |
---|
\MEMBER
The member befriending
\MEMBER
The member being befriended
\?TIME
The logged time of the friendship (null: now)
friend_remove(\MEMBER $likes, \MEMBER $liked)
get_chat_sound_tpl() : \Tempcode
get_chatroom_fields(\?AUTO_LINK $id= null
, boolean $is_made_by_me= false
, \SHORT_TEXT $room_name= ''
, \LONG_TEXT $welcome= ''
, \SHORT_TEXT $username= ''
, \LONG_TEXT $allow2= ''
, \LONG_TEXT $allow2_groups= ''
, \LONG_TEXT $disallow2= ''
, \LONG_TEXT $disallow2_groups= ''
) : array
package | chat |
---|
\?AUTO_LINK
The chat room ID (null: new)
boolean
Whether the room is being made as a private room by the current member
\SHORT_TEXT
The room name
\LONG_TEXT
The welcome message
\SHORT_TEXT
The owner username
\LONG_TEXT
The comma-separated list of users that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of users that may NOT access it (blank: no restriction)
\LONG_TEXT
The comma-separated list of usergroups that may NOT access it (blank: no restriction)
array
A pair: The input fields, Hidden fieldsget_chatroom_id(\SHORT_TEXT $room_name, boolean $must_not_be_im = false
) : \?AUTO_LINK
package | chat |
---|
\SHORT_TEXT
The name of the chatroom
boolean
Make sure the room is not an IM room. If it is an IM room, pretend it does not exist.
\?AUTO_LINK
The ID of the chatroom (null: no such chat room)get_chatroom_name(\AUTO_LINK $room_id, boolean $allow_null = false
) : \?SHORT_TEXT
package | chat |
---|
\AUTO_LINK
The room ID
boolean
Allow the chatroom to not be found (i.e. don't die if it can't be)
\?SHORT_TEXT
The room name (null: not found)get_chatters_in_room(\?AUTO_LINK $room_id) : array
package | chat |
---|
\?AUTO_LINK
The room ID (null: lobby)
array
A map of members in the room. User ID=>Usernameget_chatters_in_room_tpl(array $users) : \Tempcode
package | chat |
---|
array
A mapping (user=>username) of the chatters in the room
\Tempcode
The Tempcodeget_effect_set(boolean $only_overridable = false
) : \map
package | chat |
---|
boolean
Map to NULL if it is not overridable.
\map
All available sound effects (mapping between base code, and actual code).get_effect_settings(boolean $full_urls= false
, \?MEMBER $for_member= null
, boolean $all_members= false
) : array
package | chat |
---|
boolean
Whether to use full URLs in the mappings.
\?MEMBER
Get settings overridden for this specific member (null: global settings).
boolean
Get global settings and settings overridden for all members (if this is true we'd expect $for_member to be NULL).
array
The template mappings.get_num_chatposts() : integer
get_num_chatrooms() : integer
get_num_chatters() : integer
handle_chatroom_pruning(array $row) : boolean
package | chat |
---|
array
The row of the chat room to possibly prune
boolean
Whether the room was prunedis_chat_moderator(\MEMBER $member_id, \AUTO_LINK $room_id, \?MEMBER $room_owner) : boolean
package | chat |
---|
\MEMBER
Member ID
\AUTO_LINK
Room ID
\?MEMBER
Room owner (null: none)
boolean
Whether the member is a moderator of the chat roommember_befriended(\MEMBER $member_id) : boolean
package | chat |
---|
\MEMBER
The member being checked
boolean
Whether the member is befriendedparse_allow_list_input(string $_allow) : string
package | chat |
---|
string
A comma-separated list of usernames
string
A comma-separated list of member IDsread_in_chat_perm_fields() : array
render_chat_box(array $row, \ID_TEXT $zone= '_SEARCH'
, boolean $give_context= true
, \ID_TEXT $guid= ''
) : \Tempcode
package | chat |
---|
array
The database field row of it
\ID_TEXT
The zone to use
boolean
Whether to include context (i.e. say WHAT this is, not just show the actual content)
\ID_TEXT
Overridden GUID to send to templates (blank: none)
\Tempcode
A box for it, linking to the full pageshoutbox_script(boolean $ret= false
, \?AUTO_LINK $room_id= null
, \?integer $num_messages= null
) : \?object
package | chat |
---|
boolean
Whether to get the output instead of outputting it directly
\?AUTO_LINK
Chat room ID (null: read from environment)
\?integer
The maximum number of messages to show (null: read from environment)
\?object
Output (null: outputted it already)show_im_contacts(\?MEMBER $member_id= null
, boolean $simpler= false
, \?integer $max= null
) : \Tempcode
package | chat |
---|
\?MEMBER
The member ID (null: current user).
boolean
Whether to show a simpler, more compact, UI.
\?integer
Maximum to show (null: default).
\Tempcode
The contact UI.