If we can't get a list of admins via a usergroup query, we have to disable the staff filter - else the staff filtering can cause disaster at the point of being turned on (because it can't automatically sync).
boolean
disable_staff_filter
()
Get a URL to a forum.
mixed
forum_link
(integer $id, [boolean $tempcode_okay = false])
-
integer
$id: The ID of the forum
-
boolean
$tempcode_okay: Whether it is okay to return the result using Tempcode (more efficient)
Find the usergroup id of the forum guest member.
GROUP
get_guest_group
()
Get a list of usergroups a member is in.
array
get_members_groups
(MEMBER $id, [boolean $skip_secret = false], [boolean $handle_probation = false])
-
MEMBER
$id: The member
-
boolean
$skip_secret: Whether to skip looking at secret usergroups.
-
boolean
$handle_probation: Whether to take probation into account
Get a member's e-mail address.
SHORT_TEXT
get_member_email_address
(MEMBER $id)
Get a list of the moderator usergroups.
array
get_moderator_groups
()
Get the number of new forum posts on the system in the last 24 hours.
integer
get_num_new_forum_posts
()
Get a list of the super admin usergroups.
array
get_super_admin_groups
()
Get the current member's theme identifier.
ID_TEXT
get_theme
([?ID_TEXT $zone_for = NULL])
-
?ID_TEXT
$zone_for: The zone we are getting the theme for (NULL: current zone)
Get a map of forum usergroups (id=>name).
array
get_usergroup_list
([boolean $hide_hidden = false], [boolean $only_permissive = false])
-
boolean
$hide_hidden: Whether to obscure the name of hidden usergroups
-
boolean
$only_permissive: Whether to only grab permissive usergroups
Get a member's username.
?SHORT_TEXT
get_username
(MEMBER $id)
Find whether a member is staff.
boolean
is_staff
(MEMBER $id)
Find whether a member is a super administrator.
boolean
is_super_admin
(MEMBER $id)
Get a URL to a forum join page.
mixed
join_link
()
Get a URL to send a forum member a PM.
mixed
member_pm_link
(MEMBER $id)
-
MEMBER
$id: The forum member
Get a hyperlink (i.e. HTML link, not just a URL) to a forum member's member profile.
tempcode
member_profile_hyperlink
(MEMBER $id, [boolean $definitely_profile = false], [string $_username = ''])
-
MEMBER
$id: The forum member
-
boolean
$definitely_profile: Whether to be insistent that we go to the profile, rather than possibly starting an IM which can link to the profile
-
string
$_username: The username (blank: look it up)
Get a URL to a forum member's member profile.
mixed
member_profile_link
(MEMBER $id, [boolean $definitely_profile = false], [boolean $tempcode_okay = false])
-
MEMBER
$id: The forum member
-
boolean
$definitely_profile: Whether to be insistent that we go to the profile, rather than possibly starting an IM which can link to the profile
-
boolean
$tempcode_okay: Whether it is okay to return the result using Tempcode (more efficient)
Get a URL to a forum 'user online' list.
mixed
online_link
()