本文整理匯總了PHP中XoopsUser::user_from方法的典型用法代碼示例。如果您正苦於以下問題:PHP XoopsUser::user_from方法的具體用法?PHP XoopsUser::user_from怎麽用?PHP XoopsUser::user_from使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XoopsUser
的用法示例。
在下文中一共展示了XoopsUser::user_from方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sanitize
$text = sanitize($row['com_text']);
$signature = sanitize($row['com_sig']);
$status = sanitize($row['com_status']);
$params = sanitize($row['com_exparams']);
$dohtml = sanitize($row['dohtml']);
$dosmiley = sanitize($row['dosmiley']);
$xcode = sanitize($row['doxcode']);
$doimage = sanitize($row['doimage']);
$linebreak = sanitize($row['dobr']);
$user = new XoopsUser($row['com_uid']);
$avatar = $user->user_avatar($row['com_uid']);
$rank = $user->rank($row['com_uid']);
$rank_title = $rank['title'];
$rank_image = XOOPS_UPLOAD_URL . "/" . $rank['image'];
$regdate = date("d-m-Y", $user->user_regdate($row['com_uid']));
$userLocation = $user->user_from($row['com_uid']);
$numposts = $user->getVar("posts");
$checkstatus = $user->isOnline();
if ($checkstatus > 0) {
$status = "Online";
} else {
$status = "Offline";
}
if ($icon = '') {
$comment_image = '';
} else {
$comment_image = '<img src="' . XOOPS_UPLOAD_URL . "/" . $icon . '" alt=""></img>';
}
if ($avatar == '') {
$avatar = 'blank.gif';
}