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


PHP IPSMember::makeNameFormatted方法代碼示例

本文整理匯總了PHP中IPSMember::makeNameFormatted方法的典型用法代碼示例。如果您正苦於以下問題:PHP IPSMember::makeNameFormatted方法的具體用法?PHP IPSMember::makeNameFormatted怎麽用?PHP IPSMember::makeNameFormatted使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在IPSMember的用法示例。


在下文中一共展示了IPSMember::makeNameFormatted方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _getMemberNames

 /**
  * Returns possible matches for the string input
  *
  * @return	@e void		Outputs to screen
  */
 protected function _getMemberNames()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $name = IPSText::convertUnicode($this->convertAndMakeSafe($this->request['name'], 0), true);
     $name = IPSText::convertCharsets($name, 'utf-8', IPS_DOC_CHAR_SET);
     //-----------------------------------------
     // Check length
     //-----------------------------------------
     if (IPSText::mbstrlen($name) < 3) {
         $this->returnJsonError('requestTooShort');
     }
     //-----------------------------------------
     // Try query...
     //-----------------------------------------
     $this->DB->build(array('select' => 'm.members_display_name, m.name, m.member_id, m.member_group_id', 'from' => array('members' => 'm'), 'where' => "m.members_l_display_name LIKE '" . $this->DB->addSlashes(strtolower($name)) . "%'", 'order' => $this->DB->buildLength('m.members_display_name') . ' ASC', 'limit' => array(0, 15), 'add_join' => array(array('select' => 'p.*', 'from' => array('profile_portal' => 'p'), 'where' => 'p.pp_member_id=m.member_id', 'type' => 'left'))));
     $this->DB->execute();
     //-----------------------------------------
     // Got any results?
     //-----------------------------------------
     if (!$this->DB->getTotalRows()) {
         $this->returnJsonArray(array());
     }
     $return = array();
     while ($r = $this->DB->fetch()) {
         $photo = IPSMember::buildProfilePhoto($r);
         $group = IPSMember::makeNameFormatted('', $r['member_group_id']);
         $return[$r['member_id']] = array('name' => $r['members_display_name'], 'showas' => '<strong>' . $r['members_display_name'] . '</strong> (' . $group . ')', 'img' => $photo['pp_mini_photo'], 'img_w' => $photo['pp_mini_width'], 'img_h' => $photo['pp_mini_height']);
     }
     $this->returnJsonArray($return);
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:37,代碼來源:findnames.php

示例2: __f__b02dcf2fa1efeb4a0b49e66f3160d9d5

 function __f__b02dcf2fa1efeb4a0b49e66f3160d9d5($rows, $links = "", $defaults = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $session) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t<tr>\n\t\t\t\t<td class='row1'>\n\t\t\t\t\t<img src='{$session['_memberData']['pp_thumb_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $session['_memberData']['members_display_name'] ? $session['_memberData']['members_display_name'] : $this->lang->words['global_guestname']) . "\" width='{$session['_memberData']['pp_thumb_width']}' height='{$session['_memberData']['pp_thumb_height']}' class='photo' />\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . ($session['member_name'] ? "" . ($session['member_id'] ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$session['member_id']}", "public", ''), "{$session['seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "</a>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "\n\t\t\t\t\t\t") . "" : "\n\t\t\t\t\t\t{$this->lang->words['global_guestname']}\n\t\t\t\t\t") . "\n\t\t\t\t\t" . ($session['login_type'] == 1 ? "" . ($this->memberData['g_access_cp'] ? "*" : "") . "" : "") . "\n\t\t\t\t\t" . ($this->memberData['g_access_cp'] ? "\n\t\t\t\t\t\t<span class='ip'>( {$session['ip_address']} )</span>\n\t\t\t\t\t" : "") . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . (!$session['where_line'] || $session['in_error'] ? "\n\t\t\t\t\t\t{$this->lang->words['board_index']}\n\t\t\t\t\t" : "" . (($session['where_link'] and !$session['where_line_more']) ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t{$session['where_line']} \n\t\t\t\t\t\t" . ($session['where_line_more'] ? "&nbsp;\n\t\t\t\t\t\t\t" . ($session['_whereLinkSeo'] ? "\n\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\n\t\t\t\t\t\t\t" : "" . ($session['where_link'] ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>" : "") . "") . "\n\t\t\t\t\t\t\t{$session['where_line_more']}\n\t\t\t\t\t\t\t" . ($session['where_link'] ? "</a>" : "") . "" : "" . ($session['where_link'] ? "</a>" : "") . "") . "") . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($session['running_time'], "long", 1)) . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . (($session['member_id'] and $session['member_name']) ? "<ul class='user_controls clear'>\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($session['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\n\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\n\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($session['memberData']['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($session['memberData']['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;module=user&amp;section=user&amp;user={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_gallery']}'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t</ul>" : "\n\t\t\t\t\t\t<span class='desc'>{$this->lang->words['no_options_available']}</span>\n\t\t\t\t\t") . "\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_online.php

示例3: __f__7046da7023dc6898b789bfa2de184ba2

 function __f__7046da7023dc6898b789bfa2de184ba2($rows, $links = "", $defaults = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $session) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\r\n\t\t\t\t\t\t<td>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto(array_merge($session['_memberData'], array('alt' => sprintf($this->lang->words['users_photo'], $session['_memberData']['members_display_name'] ? $session['_memberData']['members_display_name'] : $this->lang->words['global_guestname'])))) : '') . "</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . ($session['_memberData']['member_id'] ? "\r\n\t\t\t\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard(array_merge($session['_memberData'], array('members_display_name' => IPSMember::makeNameFormatted($session['_memberData']['members_display_name'], $session['_memberData']['member_group_id'])))) : '') . "\r\n\t\t\t\t\t\t\t" : "" . ($session['member_name'] ? "\r\n\t\t\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "\r\n\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t{$this->lang->words['global_guestname']}\r\n\t\t\t\t\t\t\t\t") . "") . "\r\n\t\t\t\t\t\t\t" . ($session['login_type'] == 1 ? "" . ($this->memberData['g_access_cp'] || $session['_memberData']['member_id'] == $this->memberData['member_id'] ? "*" : "") . "" : "") . "\r\n\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] ? "\r\n\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t<span class='ip desc lighter ipsText_smaller'>({$session['ip_address']})</span>\r\n\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . (!$session['where_line'] || $session['in_error'] ? "\r\n\t\t\t\t\t\t\t\t{$this->lang->words['board_index']}\r\n\t\t\t\t\t\t\t" : "" . (($session['where_link'] and !$session['where_line_more']) ? "" . ($session['_whereLinkSeo'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\r\n\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>\r\n\t\t\t\t\t\t\t\t\t") . "" : "") . "\r\n\t\t\t\t\t\t\t\t{$session['where_line']} \r\n\t\t\t\t\t\t\t\t" . ($session['where_line_more'] ? "&nbsp;\r\n\t\t\t\t\t\t\t\t\t" . ($session['_whereLinkSeo'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\r\n\t\t\t\t\t\t\t\t\t" : "" . ($session['where_link'] ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>" : "") . "") . "\r\n\t\t\t\t\t\t\t\t\t{$session['where_line_more']}\r\n\t\t\t\t\t\t\t\t\t" . ($session['where_link'] ? "</a>" : "") . "" : "" . ($session['where_link'] ? "</a>" : "") . "") . "") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($session['running_time'], "long", 1)) . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . (($session['member_id'] and $session['member_name']) ? "<ul class='ipsList_inline ipsList_nowrap right'>\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($session['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t") . "" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($session['memberData']['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($session['memberData']['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;user={$session['member_id']}", "public", ''), "{$session['memberData']['members_seo_name']}", "useralbum") . "' title='{$this->lang->words['view_gallery']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t</ul>" : "\r\n\t\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['no_options_available']}</span>\r\n\t\t\t\t\t\t\t") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:12,代碼來源:skin_online.php

示例4: __f__d1fd60508c3bedc7e3ac15eb660de8fe

 function __f__d1fd60508c3bedc7e3ac15eb660de8fe($members, $pages = "", $dropdowns = array(), $defaults = array(), $custom_fields = null, $url = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($members as $member) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t<div class='row touch-row' id=\"mem-{$member['member_id']}\">\n\t\t\t\t<div class='icon'>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'><img src='{$member['pp_mini_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\" class='photo' /></a>\t\n\t\t\t\t</div>\n\t\t\t\t<strong><a class='title' href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$member['members_display_name']}</a></strong>\n\t\t\t\t<br />\n\t\t\t\t<span class='subtext'>" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . " {$this->lang->words['member_posts']} &middot; {$this->lang->words['member_group']}: " . IPSMember::makeNameFormatted($member['group'], $member['member_group_id']) . "\n\t\t\t\t &middot; <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . " {$this->lang->words['gbl_find_my_content']}</a></span>\n\t\t\t</div>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_mlist.php

示例5: __f__85f7a2a7de7bd273e202a92898fb0067

 function __f__85f7a2a7de7bd273e202a92898fb0067($options = array(), $chatters = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($chatters as $data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t\t<li id='user_{$data['user_id']}'>\n\t\t\t\t\t\t<div class='chat-photo'>" . ($data['member']['member_id'] ? "<a target='_blank' href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$data['member']['member_id']}", "public", ''), "{$data['member']['members_seo_name']}", "showuser") . "\" title='{$this->lang->words['view_profile']}' id='link_{$data['member']['member_id']}' class='ipsUserPhotoLink'>" : "") . "<img src='{$data['member']['pp_mini_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $data['member']['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_mini' />" . ($data['member']['member_id'] ? "</a>" : "") . "</div>\n\t\t\t\t\t\t<span class='names ipsPad_half'><a href='#' id='mod_link_{$data['user_id']}' class='chatmodmenu'>" . ($data['member']['members_display_name'] ? "<span title='{$data['member']['members_display_name']}'>" . ($this->settings['ipschat_format_names'] ? "" . IPSMember::makeNameFormatted(IPSText::truncate($data['member']['members_display_name'], 16), $data['member']['member_group_id']) . "" : "" . IPSText::truncate($data['member']['members_display_name'], 16) . "") . "</span>" : "{$data['user_name']}") . "</a></span>\n\t\t\t\t\t</li>\n\t\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_ipchat.php

示例6: __f__79050217f26a5bb7a82436b7e6a3397f

 function __f__79050217f26a5bb7a82436b7e6a3397f($members, $pages = "", $dropdowns = array(), $defaults = array(), $custom_fields = null, $url = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($members as $member) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t\t\t\t\t<li id='member_id_{$member['member_id']}' class='ipsPad clearfix member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\r\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$member['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\r\n\t\t\t\t\t\t\t<div class='ipsBox_withphoto'>\r\n\t\t\t\t\t\t\t\t<ul class='ipsList_inline right'>\r\n\t\t\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$member['member_id']}&amp;pf={$member['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>{$this->lang->words['edit_member']}</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$member['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t") . "" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $member['member_id'] != $this->memberData['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['pp_member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['pp_member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['gbl_find_my_content']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" . (($member['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($member['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;user={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "useralbum") . "' title='{$this->lang->words['view_gallery']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t<h3 class='ipsType_subtitle'>\r\n\t\t\t\t\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$member['members_display_name']}</a></strong>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t" . ($this->settings['pp_allow_member_rate'] && $this->request['pp_rating_real'] ? "<span class='rating'> \r\n\t\t\t\t\t\t\t\t\t\t\t" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\r\n\t\t\t\t\t\t\t\t\t\t</span>" : "") . "\r\n\t\t\t\t\t\t\t\t</h3>\r\n\t\t\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] && $member['pp_reputation_points'] !== null ? "" . ($member['pp_reputation_points'] == 0 || !$member['pp_reputation_points'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation zero ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] > 0 ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation positive ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation negative ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t<span class='number'>{$member['pp_reputation_points']}</span>\r\n\t\t\t\t\t\t\t\t\t\t</p>" : "") . "\r\n\t\t\t\t\t\t\t\t<span class='desc'>\r\n\t\t\t\t\t\t\t\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($member['joined'], "joined", 0)) . "<br />\r\n\t\t\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($member['group'], $member['member_group_id']) . " &middot;\r\n\t\t\t\t\t\t\t\t\t" . ($this->request['sort_key'] == 'members_profile_views' ? "\r\n\t\t\t\t\t\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($member['members_profile_views']) . " {$this->lang->words['m_views']}\r\n\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . " {$this->lang->words['member_posts']}\r\n\t\t\t\t\t\t\t\t\t") . "\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</li>\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:12,代碼來源:skin_mlist.php

示例7: getActiveUserDetails

 /**
  * Returns an array of active users
  *
  * @return	array
  */
 public function getActiveUserDetails()
 {
     $active = array('TOTAL' => 0, 'NAMES' => array(), 'GUESTS' => 0, 'MEMBERS' => 0, 'ANON' => 0);
     if ($this->settings['show_active'] && $this->memberData['gbw_view_online_lists']) {
         if (!$this->settings['au_cutoff']) {
             $this->settings['au_cutoff'] = 15;
         }
         //-----------------------------------------
         // Get the users from the DB
         //-----------------------------------------
         $cut_off = $this->settings['au_cutoff'] * 60;
         $time = time() - $cut_off;
         $rows = array();
         $ar_time = time();
         if ($this->memberData['member_id']) {
             $rows = array($ar_time . '.' . md5(microtime()) => array('id' => 0, 'login_type' => IPSMember::isLoggedInAnon($this->memberData), 'running_time' => $ar_time, 'seo_name' => $this->memberData['members_seo_name'], 'member_id' => $this->memberData['member_id'], 'member_name' => $this->memberData['members_display_name'], 'member_group' => $this->memberData['member_group_id']));
         }
         $this->DB->build(array('select' => 's.id, s.member_id, s.member_name, s.seo_name, s.login_type, s.running_time, s.member_group, s.uagent_type', 'from' => array('sessions' => 's'), 'where' => "running_time > {$time}", 'add_join' => array(array('select' => 'm.member_banned', 'from' => array('members' => 'm'), 'where' => 'm.member_id=s.member_id', 'type' => 'left'))));
         $this->DB->execute();
         //-----------------------------------------
         // FETCH...
         //-----------------------------------------
         while ($r = $this->DB->fetch()) {
             $rows[$r['running_time'] . '.' . $r['id']] = $r;
         }
         krsort($rows);
         //-----------------------------------------
         // cache all printed members so we
         // don't double print them
         //-----------------------------------------
         $cached = array();
         foreach ($rows as $result) {
             //-----------------------------------------
             // Skip Banned
             //-----------------------------------------
             if ($result['member_banned']) {
                 continue;
             }
             //-----------------------------------------
             // Bot?
             //-----------------------------------------
             if (isset($result['uagent_type']) && $result['uagent_type'] == 'search') {
                 /* Skipping bot? */
                 if (!$this->settings['spider_active']) {
                     continue;
                 }
                 //-----------------------------------------
                 // Seen bot of this type yet?
                 //-----------------------------------------
                 if (!$cached[$result['member_name']]) {
                     $active['NAMES'][] = IPSMember::makeNameFormatted($result['member_name'], $result['member_group']);
                     $cached[$result['member_name']] = 1;
                 } else {
                     //-----------------------------------------
                     // Yup, count others as guest
                     //-----------------------------------------
                     $active['GUESTS']++;
                 }
             } else {
                 if (!$result['member_id'] or !$result['member_name']) {
                     $active['GUESTS']++;
                 } else {
                     if (empty($cached[$result['member_id']])) {
                         $cached[$result['member_id']] = 1;
                         $result['member_name'] = IPSMember::makeNameFormatted($result['member_name'], $result['member_group']);
                         /* Reset login type in case the board/group setting got changed */
                         $result['login_type'] = IPSMember::isLoggedInAnon(array('login_anonymous' => $result['login_type']), $result['member_group']);
                         if ($result['login_type']) {
                             if ($this->memberData['g_access_cp'] || $this->memberData['member_id'] == $result['member_id']) {
                                 $active['NAMES'][] = IPSMember::makeProfileLink($result['member_name'], $result['member_id'], $result['seo_name']) . "*";
                                 $active['ANON']++;
                             } else {
                                 $active['ANON']++;
                             }
                         } else {
                             $active['MEMBERS']++;
                             $active['NAMES'][] = IPSMember::makeProfileLink($result['member_name'], $result['member_id'], $result['seo_name']);
                         }
                     }
                 }
             }
         }
         $active['TOTAL'] = $active['MEMBERS'] + $active['GUESTS'] + $active['ANON'];
         $this->users_online = $active['TOTAL'];
     }
     $this->lang->words['active_users'] = sprintf($this->lang->words['active_users'], $this->settings['au_cutoff']);
     return $active;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:93,代碼來源:boards.php

示例8: formIgnoredUsers

 /**
  * Show the ignored users
  *
  * @author	Matt Mecham
  * @return	string		Processed HTML
  */
 public function formIgnoredUsers()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $final_users = array();
     $temp_users = array();
     $uid = intval($this->request['uid']);
     $ignoredUsers = array();
     //-----------------------------------------
     // Do we have incoming?
     //-----------------------------------------
     if ($uid) {
         $newmem = IPSMember::load($uid);
         $this->request['newbox_1'] = $newmem['members_display_name'];
     }
     //-----------------------------------------
     // Get ignored users
     //-----------------------------------------
     $perPage = 25;
     /* Count */
     $count = $this->DB->buildAndFetch(array('select' => 'count(*) as dracula', 'from' => 'ignored_users', 'where' => 'ignore_owner_id=' . $this->memberData['member_id']));
     /* Sort out pagination */
     $st = intval($this->request['st']) >= 0 ? intval($this->request['st']) : 0;
     $pagination = $this->registry->output->generatePagination(array('totalItems' => $count['dracula'], 'itemsPerPage' => $perPage, 'currentStartValue' => $st, 'baseUrl' => 'app=core&module=usercp&tab=core&area=ignoredusers'));
     /* Get em */
     $this->DB->build(array('select' => '*', 'from' => 'ignored_users', 'where' => 'ignore_owner_id=' . $this->memberData['member_id'], 'limit' => array($st, $perPage)));
     $this->DB->execute();
     while ($row = $this->DB->fetch()) {
         $ignoredUsers[$row['ignore_ignore_id']] = $row;
     }
     //-----------------------------------------
     // Get members and check to see if they've
     // since been moved into a group that cannot
     // be ignored
     //-----------------------------------------
     foreach ($ignoredUsers as $_id => $data) {
         if (intval($_id)) {
             $temp_users[] = $_id;
         }
     }
     if (count($temp_users)) {
         $members = IPSMember::load($temp_users, 'all');
         foreach ($members as $m) {
             $m['g_title'] = IPSMember::makeNameFormatted($this->caches['group_cache'][$m['member_group_id']]['g_title'], $m['member_group_id']);
             $final_users[$m['member_id']] = IPSMember::buildDisplayData($m);
             $final_users[$m['member_id']]['ignoreData'] = $ignoredUsers[$m['member_id']];
         }
     }
     $this->request['newbox_1'] = $this->request['newbox_1'] ? $this->request['newbox_1'] : '';
     return $this->registry->getClass('output')->getTemplate('ucp')->membersIgnoredUsersForm($final_users, $pagination);
 }
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:58,代碼來源:usercpForms.php

示例9: whosChatting

 /**
  * Show the who's chatting block on the board index
  *
  * @return	string		HTML output
  */
 public function whosChatting()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $member_ids = array();
     $to_load = array();
     //-----------------------------------------
     // Check module/app
     //-----------------------------------------
     if (!IPSLib::appIsInstalled('ipchat') or !$this->settings['ipschat_online']) {
         return '';
     }
     //-----------------------------------------
     // Check
     //-----------------------------------------
     if (!$this->settings['ipschat_whos_chatting']) {
         return '';
     }
     $access_groups = explode(",", $this->settings['ipschat_group_access']);
     $my_groups = array($this->memberData['member_group_id']);
     if ($this->memberData['mgroup_others']) {
         $my_groups = array_merge($my_groups, explode(",", IPSText::cleanPermString($this->memberData['mgroup_others'])));
     }
     $access_allowed = false;
     foreach ($my_groups as $group_id) {
         if (in_array($group_id, $access_groups)) {
             $access_allowed = 1;
             break;
         }
     }
     if (!$access_allowed) {
         return '';
     }
     //-----------------------------------------
     // Sort and show :D
     //-----------------------------------------
     $_guests = array();
     if (is_array($this->cache->getCache('chatting')) and count($this->cache->getCache('chatting'))) {
         foreach ($this->cache->getCache('chatting') as $data) {
             if ($data['updated'] < time() - 120) {
                 continue;
             }
             if ($data['member_id']) {
                 $to_load[$data['member_id']] = $data['member_id'];
             } else {
                 $_guests[$data['username']] = $data['username'];
             }
         }
     }
     //-----------------------------------------
     // Got owt?
     //-----------------------------------------
     if (count($to_load)) {
         $_seenIds = array();
         $this->DB->build(array('select' => 'm.member_id, m.members_display_name, m.member_group_id, m.members_seo_name', 'from' => array('members' => 'm'), 'where' => "m.member_id IN(" . implode(",", $to_load) . ")", 'add_join' => array(0 => array('select' => 's.id, s.login_type, s.current_appcomponent', 'from' => array('sessions' => 's'), 'where' => 's.member_id=m.member_id', 'type' => 'left'))));
         $this->DB->execute();
         while ($m = $this->DB->fetch()) {
             if (in_array($m['member_id'], $_seenIds)) {
                 continue;
             }
             //-----------------------------------------
             // @link	http://community.invisionpower.com/tracker/issue-20547-logout-from-the-board-still-shown-the-user-active/
             // @see 	ipchatMemberSync
             //-----------------------------------------
             if (!$m['id']) {
                 continue;
             }
             $_seenIds[] = $m['member_id'];
             $_key = $m['members_display_name'];
             $m['members_display_name'] = IPSMember::makeNameFormatted($m['members_display_name'], $m['member_group_id']);
             $member_ids[$_key] = "<a href='" . $this->registry->getClass('output')->buildSEOUrl("showuser={$m['member_id']}", 'public', $m['members_seo_name'], 'showuser') . "'>{$m['members_display_name']}</a>";
         }
     }
     $member_ids = array_merge($_guests, $member_ids);
     ksort($member_ids);
     //-----------------------------------------
     // Got owt?
     //-----------------------------------------
     $html = '';
     $this->lang->loadLanguageFile(array('public_chat'), 'ipchat');
     if (count($member_ids)) {
         $html = $this->registry->getClass('output')->getTemplate('ipchat')->whoschatting_show(intval(count($member_ids)), $member_ids);
     } else {
         if (!$this->settings['ipschat_hide_chatting']) {
             $html = $this->registry->getClass('output')->getTemplate('ipchat')->whoschatting_empty();
         }
     }
     return $html;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:95,代碼來源:hooks.php

示例10: _viewModern


//.........這裏部分代碼省略.........
         $default_tab = 'core:info';
     }
     $friends = $this->_getRandomFriends($member);
     /* Check USER permalink... */
     $this->registry->getClass('output')->checkPermalink($member['members_seo_name'] ? $member['members_seo_name'] : IPSText::makeSeoTitle($member['members_display_name']));
     /* Build data */
     $member = IPSMember::buildDisplayData($member, array('customFields' => 1, 'cfSkinGroup' => 'profile', 'checkFormat' => 1, 'cfGetGroupData' => 1, 'signature' => 1, 'spamStatus' => 1));
     //-----------------------------------------
     // Recent visitor?
     //-----------------------------------------
     if ($member['member_id'] != $this->memberData['member_id'] && !IPSMember::isLoggedInAnon($this->memberData)) {
         $this->_addRecentVisitor($member, $this->memberData['member_id']);
     }
     //-----------------------------------------
     // DST?
     //-----------------------------------------
     if ($member['dst_in_use'] == 1) {
         $member['time_offset'] += 1;
     }
     //-----------------------------------------
     // Format extra user data
     //-----------------------------------------
     $member['_age'] = $member['bday_year'] ? date('Y') - $member['bday_year'] : 0;
     if ($member['bday_month'] > date('n')) {
         $member['_age'] -= 1;
     } else {
         if ($member['bday_month'] == date('n')) {
             if ($member['bday_day'] > date('j')) {
                 $member['_age'] -= 1;
             }
         }
     }
     $member['_local_time'] = $member['time_offset'] != "" ? gmstrftime($this->settings['clock_long'], time() + $member['time_offset'] * 3600 + $time_adjust * 60) : '';
     $member['g_title'] = IPSMember::makeNameFormatted($member['g_title'], $member['g_id'], $member['prefix'], $member['suffix']);
     $member['_bday_month'] = $member['bday_month'] ? $this->lang->words['M_' . $member['bday_month']] : 0;
     //-----------------------------------------
     // Visitors
     //-----------------------------------------
     if ($member['pp_setting_count_visitors']) {
         $_pp_last_visitors = unserialize($member['pp_last_visitors']);
         $_visitor_info = array();
         if (is_array($_pp_last_visitors)) {
             krsort($_pp_last_visitors);
             $_members = IPSMember::load(array_values($_pp_last_visitors), 'extendedProfile');
             foreach ($_members as $_id => $_member) {
                 $_visitor_info[$_id] = IPSMember::buildDisplayData($_member, array('reputation' => 0, 'warn' => 0));
             }
             foreach ($_pp_last_visitors as $_time => $_id) {
                 if (!$_visitor_info[$_id]['members_display_name_short']) {
                     $_visitor_info[$_id] = IPSMember::buildDisplayData(IPSMember::setUpGuest(), array('reputation' => 0, 'warn' => 0));
                 }
                 $_visitor_info[$_id]['_visited_date'] = ipsRegistry::getClass('class_localization')->getDate($_time, 'TINY');
                 $_visitor_info[$_id]['members_display_name_short'] = $_visitor_info[$_id]['members_display_name_short'] ? $_visitor_info[$_id]['members_display_name_short'] : $this->lang->words['global_guestname'];
                 $visitors[] = $_visitor_info[$_id];
                 if (count($visitors) == 5) {
                     break;
                 }
             }
         }
     }
     //-----------------------------------------
     // Online location
     //-----------------------------------------
     $member = IPSMember::getLocation($member);
     //-----------------------------------------
     // Add profile view
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:67,代碼來源:view.php

示例11: memberSearchResult

 function memberSearchResult($r, $resultAsTitle = false)
 {
     $IPBHTML = "";
     $IPBHTML .= "<span class='icon'>\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto(array_merge($r, array('_customClass' => 'ipsUserPhoto_medium'))) : '') . "\n</span>\n<div class='result_info'>\n\t<h3>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r) : '') . "</h3>\n\t<span class='desc lighter breadcrumb'>\n\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['joined'], "short", 0)) . "<br />\n\t\t" . IPSMember::makeNameFormatted($r['group'], $r['member_group_id']) . " &middot; " . $this->registry->getClass('class_localization')->formatNumber($r['posts']) . " {$this->lang->words['member_posts']}\n\t</span>\n</div>";
     return $IPBHTML;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:6,代碼來源:skin_search.php

示例12: __f__31165f0ae25e57ec43fffe3309bcc3e7

 function __f__31165f0ae25e57ec43fffe3309bcc3e7($data, $relId)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($data as $mid => $data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n                        <li class='clearfix ipsPad_half " . ($data['like_is_anon'] ? "faded" : "") . "'>\n                                <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$data['member_id']}", "public", ''), "{$data['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'>\n                                        <img src='{$data['pp_small_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />\n                                </a>\n                                <div class='list_content'>\n                                        <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$data['member_id']}", "public", ''), "{$data['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'><strong>{$data['members_display_name']}</strong></a>\n                                        <em class='desc'>{$this->lang->words['likeadded']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($data['rep_date'], "short", 0)) . "</em>\n                                        <p class='desc'>\n                                                " . IPSMember::makeNameFormatted($data['g_title'], $data['g_id']) . "\n                                        </p>\n                                </div>\n                        </li>\n                \n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:12,代碼來源:skin_global_other.php

示例13: groupsOverviewRow

    /**
     * Group row
     *
     * @param	array 		Group
     * @return	string		HTML
     */
    public function groupsOverviewRow($r = "")
    {
        $IPBHTML = "";
        //--starthtml--//
        $r['_can_acp_img'] = $r['_can_acp'] ? 'accept.png' : 'cross.png';
        $r['_can_supmod_img'] = $r['_can_supmod'] ? 'accept.png' : 'cross.png';
        $r['_title'] = IPSMember::makeNameFormatted($r['g_title'], $r['g_id']);
        $IPBHTML .= <<<HTML
<tr class='ipsControlRow'>
  <td><img src='{$this->settings['skin_acp_url']}/images/icons/group.png' /></td>
  <td><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=edit&amp;id={$r['g_id']}' style='font-weight:bold'>{$r['_title']}</a> <small>({$this->lang->words['g_id']}: {$r['g_id']})</small></td>
  <td align='center'><img src='{$this->settings['skin_acp_url']}/images/icons/{$r['_can_acp_img']}' alt='-' /></td>
  <td align='center'><img src='{$this->settings['skin_acp_url']}/images/icons/{$r['_can_supmod_img']}' alt='-' /></td>
  <td align='center'>
HTML;
        if ($r['g_id'] != $this->settings['guest_group']) {
            $_extraLink = '';
            if ($this->request['showSecondary']) {
                $_extraLink = "&amp;f_inc_secondary=1";
            }
            $IPBHTML .= <<<HTML
\t<a href='{$this->settings['_base_url']}app=members&amp;section=members&amp;module=members#do_results=1&amp;__update=1&amp;f_primary_group={$r['g_id']}{$_extraLink}' title='{$this->lang->words['g_listusers']}'>{$r['count']}</a>
HTML;
        } else {
            $IPBHTML .= <<<HTML
    {$r['count']}
HTML;
        }
        $IPBHTML .= <<<HTML
  </td>\t\t\t\t\t\t\t\t\t\t\t\t
  <td class='col_buttons'>
\t<ul class='ipsControlStrip'>
\t\t<li class='i_edit'><a href='{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=edit&amp;id={$r['g_id']}' title='{$this->lang->words['g_editg']}'>{$this->lang->words['g_editg']}</a></li>
HTML;
        if (!in_array($r['g_id'], array($this->settings['auth_group'], $this->settings['guest_group'], $this->settings['member_group']))) {
            $IPBHTML .= <<<HTML
\t\t<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&amp;{$this->form_code}&amp;do=delete&amp;_admin_auth_key={$this->registry->getClass('adminFunctions')->_admin_auth_key}&amp;id={$r['g_id']}");' title='{$this->lang->words['g_deleteg']}'>{$this->lang->words['g_deleteg']}</a></li>
HTML;
        } else {
            $IPBHTML .= <<<HTML
\t\t<li class='i_delete disabled'><a href='#' onclick='return false;' title='{$this->lang->words['g_cannotdel']}' title='{$this->lang->words['g_cannotdel']}'>{$this->lang->words['g_cannotdel']}</a></li>
HTML;
        }
        $IPBHTML .= <<<HTML
\t</ul>
  </td>
</tr>
HTML;
        //--endhtml--//
        return $IPBHTML;
    }
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:57,代碼來源:cp_skin_groups.php

示例14: __f__cf9e32adedfd3d5b1b2f4c86fd98c614

 function __f__cf9e32adedfd3d5b1b2f4c86fd98c614($friends, $pages)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($friends as $friend) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t" . ($this->request['tab'] == 'pending' ? "<li id='member_id_{$friend['member_id']}' class='ipsPad clearfix member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$friend['member_id']}", "public", ''), "{$friend['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$friend['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $friend['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\n\t\t\t\t\t<div class='ipsBox_withphoto'>\n\t\t\t\t\t\t<ul class='ipsList_inline right'>\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=moderate&amp;pp_option=approve&amp;pp_friend_id[{$friend['member_id']}]=1&amp;md5check={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['approve_request']}' class='ipsButton_secondary'>{$this->lang->words['approve_request']}</a></li>\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=moderate&amp;pp_option=delete&amp;pp_friend_id[{$friend['member_id']}]=1&amp;md5check={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['deny_request']}' class='ipsButton_secondary important'>{$this->lang->words['deny_request']}</a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<h3 class='ipsType_subtitle'>\n\t\t\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$friend['member_id']}", "public", ''), "{$friend['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$friend['members_display_name']}</a></strong>\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($friend['pp_reputation_points'] == 0 || !$friend['pp_reputation_points'] ? "\n\t\t\t\t\t\t\t\t<p class='reputation zero ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($friend['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation positive ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($friend['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation negative ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<span class='number'>{$friend['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t</p>" : "") . "\n\t\t\t\t\t\t<span class='desc'>\n\t\t\t\t\t\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($friend['joined'], "joined", 0)) . "<br />\n\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($friend['group'], $friend['member_group_id']) . " &middot; " . $this->registry->getClass('class_localization')->formatNumber($friend['posts']) . " {$this->lang->words['member_posts']}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t</li>" : "<li id='member_id_{$friend['member_id']}' class='ipsPad clearfix member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$friend['member_id']}", "public", ''), "{$friend['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$friend['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $friend['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\n\t\t\t\t\t<div class='ipsBox_withphoto'>\n\t\t\t\t\t\t<ul class='ipsList_inline right'>\n\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] == 1 && $friend['member_id'] != $this->memberData['member_id'] ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$friend['member_id']}&amp;pf={$friend['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>{$this->lang->words['supmod_edit_member']}</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $friend['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($friend['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_mlist_{$friend['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$friend['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\n\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_mlist_{$friend['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$friend['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $friend['member_id'] != $this->memberData['member_id']) ? "\n\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$friend['pp_member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$friend['pp_member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$friend['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['gbl_find_my_content']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "</a></li>\n\t\t\t\t\t\t\t" . (($friend['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$friend['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($friend['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;user={$friend['member_id']}", "public", ''), "{$friend['members_seo_name']}", "useralbum") . "' title='{$this->lang->words['view_gallery']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<h3 class='ipsType_subtitle'>\n\t\t\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$friend['member_id']}", "public", ''), "{$friend['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$friend['members_display_name']}</a></strong>\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($friend['pp_reputation_points'] == 0 || !$friend['pp_reputation_points'] ? "\n\t\t\t\t\t\t\t\t<p class='reputation zero ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($friend['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation positive ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($friend['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation negative ipsType_small left'>\n\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<span class='number'>{$friend['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t</p>" : "") . "\n\t\t\t\t\t\t<span class='desc'>\n\t\t\t\t\t\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($friend['joined'], "joined", 0)) . "<br />\n\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($friend['group'], $friend['member_group_id']) . " &middot; " . $this->registry->getClass('class_localization')->formatNumber($friend['posts']) . " {$this->lang->words['member_posts']}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t</li>") . "\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:12,代碼來源:skin_profile.php

示例15: getUsersIn


//.........這裏部分代碼省略.........
     }
     /* We're a viewer too? Get our session separately */
     $_extraWhere = empty($options['excludeViewer']) ? "s.id='{$this->member->session_id}' OR " : '';
     /* Dee bee */
     $this->DB->build(array('select' => 's.*, s.id as row_session_id', 'from' => array('sessions' => 's'), 'where' => "{$_extraWhere}({$where})", 'add_join' => $_joins));
     $this->DB->execute();
     while ($session = $this->DB->fetch()) {
         /* Reset for possible bad joins */
         $session['id'] = $session['row_session_id'];
         /* Update our own session properly? */
         if ($session['id'] == $this->member->session_id) {
             $session = array_merge($session, $this->member->sessionClass()->returnCurrentSession());
         }
         $rows[$session['running_time'] . '.' . $session['id']] = $session;
     }
     /* No rows? */
     if (!count($rows)) {
         return $return;
     }
     krsort($rows);
     /* Are we parsing online entries or want only the names */
     if (empty($options['skipParsing'])) {
         /* Process them */
         $filename = IPSLib::getAppDir($app) . '/extensions/coreExtensions.php';
         if (is_file($filename)) {
             $classToLoad = IPSLib::loadLibrary($filename, 'publicSessions__' . $app, $app);
             $loader = new $classToLoad();
             if (method_exists($loader, 'parseOnlineEntries')) {
                 $rows = $loader->parseOnlineEntries($rows);
             }
         }
         /* No rows? */
         if (!count($rows)) {
             return $return;
         }
     }
     /* Sort through */
     foreach ($rows as $id => $result) {
         $last_date = $this->registry->getClass('class_localization')->getTime($result['running_time']);
         /* ROBOT - or DODOT! */
         if (strstr($result['id'], '_session')) {
             $botname = preg_replace('/^(.+?)=/', "\\1", $result['id']);
             if (!$cached['srch_' . $result['member_name']]) {
                 $result = IPSMember::buildProfilePhoto($result);
                 $result['parsedMemberName'] = $result['member_name'];
                 $return['rows']['bots'][$result['id']] = $result;
                 $return['names'][$result['id']] = $result['parsedMemberName'];
                 $cached['srch_' . $result['member_name']]['count'] = 1;
             } else {
                 $cached['srch_' . $result['member_name']]['count']++;
             }
             $return['stats']['bots']++;
         } else {
             if (!$result['member_id']) {
                 $result = IPSMember::buildProfilePhoto(0);
                 $result['parsedMemberName'] = $this->lang->words['global_guestname'];
                 $return['rows']['guests'][$result['id']] = $result;
                 $return['stats']['guests']++;
             } else {
                 if (empty($cached[$result['member_id']])) {
                     $cached[$result['member_id']] = 1;
                     $result = IPSMember::buildProfilePhoto($result);
                     $result['parsedMemberName'] = IPSMember::makeNameFormatted($result['member_name'], $result['member_group']);
                     /* Reset login type in case the board/group setting got changed */
                     $result['login_type'] = IPSMember::isLoggedInAnon(array('login_anonymous' => $result['login_type']), $result['member_group_id']);
                     if ($result['login_type']) {
                         if ($this->memberData['g_access_cp'] || $this->memberData['member_id'] == $result['member_id']) {
                             $result['parsedMemberName'] = IPSMember::makeProfileLink($result['parsedMemberName'], $result['member_id'], $result['seo_name']);
                             $result['parsedMemberName'] .= '*';
                             # Add anonymous asterisk
                             $return['rows']['anon'][$result['id']] = $result;
                             $return['names'][$result['id']] = $result['parsedMemberName'];
                         }
                         $return['stats']['anon']++;
                     } else {
                         $result['parsedMemberName'] = IPSMember::makeProfileLink($result['parsedMemberName'], $result['member_id'], $result['seo_name']);
                         $return['rows']['members'][$result['id']] = $result;
                         $return['names'][$result['id']] = $result['parsedMemberName'];
                         $return['stats']['members']++;
                     }
                 }
             }
         }
     }
     /* Process bots */
     foreach ($cached as $name => $val) {
         if ($val['count'] && substr($name, 0, 5) == 'srch_') {
             foreach ($return['rows']['bots'] as $row) {
                 if ($row['parsedMemberName'] == substr($name, 5)) {
                     $return['rows']['bots'][$row['id']]['parsedMemberName'] .= ' (' . $val['count'] . ')';
                     $return['rows']['bots'][$row['id']]['member_name'] = $return['rows']['bots'][$row['id']]['parsedMemberName'];
                     $return['names'][$row['id']] = $return['rows']['bots'][$row['id']]['parsedMemberName'];
                     break;
                 }
             }
         }
     }
     $return['stats']['total'] = intval($return['stats']['bots']) + intval($return['stats']['guests']) + intval($return['stats']['anon']) + intval($return['stats']['members']);
     return $return;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:101,代碼來源:api.php


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