當前位置: 首頁>>代碼示例>>PHP>>正文


PHP XoopsUser::user_from方法代碼示例

本文整理匯總了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';
 }
開發者ID:severnaya99,項目名稱:Sg-2010,代碼行數:31,代碼來源:display_comments.php


注:本文中的XoopsUser::user_from方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。