(→id) |
m (→username) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
===possibly_robot=== | ===possibly_robot=== | ||
bool. Is true if the agent matches a known spider if the feature is enabled, and | bool. Is true if the agent matches a known spider if the feature is enabled, and if disabled, makes an educated guess. | ||
===id=== | ===id=== | ||
Line 17: | Line 17: | ||
===username=== | ===username=== | ||
string | string. Login name may be different than display name. | ||
===name=== | ===name=== | ||
Line 40: | Line 40: | ||
===last_login=== | ===last_login=== | ||
int. Unix timestamp. | |||
===ip=== | ===ip=== | ||
Line 77: | Line 78: | ||
===ignoreboards=== | ===ignoreboards=== | ||
String. The list of boards they | String. The list of boards they have ignored delimited by commas. | ||
===ignoreusers=== | ===ignoreusers=== | ||
Line 85: | Line 86: | ||
===warning=== | ===warning=== | ||
int. Their warning points. | |||
===permissions=== | ===permissions=== | ||
===query_see_board=== | ===query_see_board=== | ||
The list of all the boards they can see as part of a prepared SQL statement. | |||
===query_wanna_see_board=== | ===query_wanna_see_board=== | ||
Line 94: | Line 97: | ||
===mod_cache=== | ===mod_cache=== | ||
Moderator cache. | [[Moderator cache]]. | ||
===is_mod=== | ===is_mod=== |
Latest revision as of 23:28, 7 February 2020
This article needs some work for the following reason: (no reason given) This template may be removed when cleanup is complete. |
$user_info
These are all the keys defined for $user_info in loadUserSettings(). Some are self-explanatory, for sure.
groups
array. All possible membergroups attached too a user. Keys do not matter. Values are the groups, sanitized as int, just in case. This includes:
- Primary group
- Post count group
- Additional groups. These are stored in the database as a comma-delimited string.
possibly_robot
bool. Is true if the agent matches a known spider if the feature is enabled, and if disabled, makes an educated guess.
id
int Corresponds to the member's database value 'id_member'.
username
string. Login name may be different than display name.
name
string. Their displayed name.
string
passwd
string
language
string
is_guest
bool
is_admin
bool
theme
last_login
int. Unix timestamp.
ip
$_SERVER['REMOTE_ADDR']
ip2
$_SERVER['BAN_CHECK_IP']
posts
int. Post count.
time_format
string. Custom format for strtftime().
time_offset
int. User's hourly offset from the forum time.
avatar
array
- url: string
- filename: string
- custom_dir: bool
- id_attach: int
smiley_set
messages
int. Number of PMs they have.
unread_messages
int. Number of unread PMs they have.
total_time_logged_in
buddies
String. The list of their buddies delimited by commas.
ignoreboards
String. The list of boards they have ignored delimited by commas.
ignoreusers
String. The list of users they have opted to ignore delimited by commas.
- In SMF 1.1.x only PMs get ignored.
- In SMF 2.0.x and onwards, this feature has been improved to also hide the posts of the ignored user.
warning
int. Their warning points.
permissions
query_see_board
The list of all the boards they can see as part of a prepared SQL statement.
query_wanna_see_board
The list of boards they WANT to see as part of a prepared SQL statement.
mod_cache
is_mod
Boolean. Is false except in boards where the member is a moderator. It is always set.