Unclassified NewsBoard Code Reference

UnbGetUserStatusText function

Return the descriptive User Status

function UnbGetUserStatusText ($userid, $mask = '%s', $notnormal = false, $short = false, $numerus = 1);

Parameters:

userid
(int) user id to get status text for
mask  –  optional, default: '%s'
(string) mask to insert status description into. %s will be replaced with the info
notnormal  –  optional, default: false
(bool) true: only return not "user" text | false: return any text, also "user"
short  –  optional, default: false
(bool) use short form of text
numerus  –  optional, default: 1
(int) how many things should be described? use singular/plural/other forms of the word

Return value:

(string) $mask parameter with %s replaced by the status text

Implementation file: unb_lib/common_out.lib.php, line 1603

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.