当前位置: 首页>>代码示例>>PHP>>正文


PHP XoopsUser::user_regdate方法代码示例

本文整理汇总了PHP中XoopsUser::user_regdate方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsUser::user_regdate方法的具体用法?PHP XoopsUser::user_regdate怎么用?PHP XoopsUser::user_regdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XoopsUser的用法示例。


在下文中一共展示了XoopsUser::user_regdate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sanitize

 $title = sanitize($row['com_title']);
 $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

示例2: while

     $pagenav_args .= '&sortby=' . $sortby;
 }
 $num_users = $xoopsDB->getRowsNum($result);
 //number of users per sorted and limit query
 if ($totalcount > 0) {
     while ($userinfo = $xoopsDB->fetchArray($result)) {
         $userinfo = new XoopsUser($userinfo['uid']);
         $user = array();
         $avatar = $userinfo->user_avatar();
         if ($avatar == 'blank.gif' && $xoopsModuleConfig['defaultavatar']) {
             $user['avatar'] = "<img src='" . XOOPS_URL . "/modules/membership/images/davatar.gif' alt='' width='64' height='64' />";
         } else {
             $user['avatar'] = "<img src='" . XOOPS_URL . "/uploads/" . $userinfo->user_avatar() . "' alt='' width='64' height='64' />";
         }
         $user['nickname'] = "<a href='" . XOOPS_URL . "/userinfo.php?uid=" . $userinfo->uid() . "'>" . $userinfo->uname("E") . "</a>";
         $user['regdate'] = formatTimeStamp($userinfo->user_regdate(), "m");
         $showmail = 0;
         if ($userinfo->user_viewemail()) {
             $showmail = 1;
         } else {
             if ($is_admin) {
                 $showmail = 1;
             }
         }
         if ($showmail) {
             $user['email'] = "<a href='mailto:" . $userinfo->email("E") . "'>";
             $user['email'] .= "<img src='" . XOOPS_URL . "/images/icons/email.gif' border='0' alt='" . sprintf(_SENDEMAILTO, $userinfo->uname("E")) . "' /></a>";
         } else {
             $user['email'] = "";
         }
         if ($xoopsUser) {
开发者ID:trabisdementia,项目名称:xuups,代码行数:31,代码来源:index.php


注:本文中的XoopsUser::user_regdate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。