Unclassified NewsBoard Code Reference

UnbMakeUserLink function

Make a link to a user's profile displaying the username

function UnbMakeUserLink ($userid, $name, $bold = false, $email = false, $t2h = true);

Parameters:

userid
(int) user ID (no link if 0)
name
(string) user name
bold  –  optional, default: false
(bool) make <b> tags
email  –  optional, default: false
(bool) point link to e-mail page
t2h  –  optional, default: true
(bool) HTML-encode the name. set to false to include HTML code (like an image) to display

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

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