|
1.1.4: user_prefs
Description
Get the preferences of a certain user. This is only a certain small part of the user table,
which is used to render pages. The following fields of the usertable will be returned:
status, show_days, avatar_enable, language and theme.
Function call
user_prefs($username);
Input
Parameter | Description |
$username | The username of the user from which the preferences have to be returned. |
|
Output
The output is an object:
Var | Description |
$result->status | The status of the user (0 = disabled, 1 = user, 2 = moderator, 3 = administrator). |
$result->show_days | The number of days of which topics must be shown by GPB. |
$result->avatar_enable | If set to "1" avatars may be shown, if set to "0" hide them. |
$result->language | The language of the user (i.e. "en" or "nl"). |
$result->theme | The theme of the user (i.e. "simple" or "ubb"). |
|
|