SourceForge Logo
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
ParameterDescription
$usernameThe username of the user from which the preferences have to be returned.


Output
The output is an object:

VarDescription
$result->statusThe status of the user (0 = disabled, 1 = user, 2 = moderator, 3 = administrator).
$result->show_daysThe number of days of which topics must be shown by GPB.
$result->avatar_enableIf set to "1" avatars may be shown, if set to "0" hide them.
$result->languageThe language of the user (i.e. "en" or "nl").
$result->themeThe theme of the user (i.e. "simple" or "ubb").

« Previous | Index | Next »