本文整理汇总了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';
}