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


PHP IPSMember::buildNoPhoto方法代碼示例

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


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

示例1: getEditorHtml

 /**
  * Returns the editor for viewing ...
  * @param unknown_type $member
  */
 public function getEditorHtml(array $member)
 {
     /* Fetch member data */
     $member = IPSMember::buildDisplayData(IPSMember::load($member['member_id'], 'all'));
     $p_w = "";
     $p_h = "";
     $cur_photo = "";
     $rand = urlencode(microtime());
     $data = array('currentPhoto' => array('tag' => ''), 'custom' => array('tag' => ''), 'gravatar' => array('tag' => ''), 'twitter' => array('tag' => ''));
     /* Photo type */
     $data['type'] = $member['pp_photo_type'] = $this->getPhotoType($member);
     /* Got gravatar? */
     $member['pp_gravatar'] = $member['pp_gravatar'] ? $member['pp_gravatar'] : $member['email'];
     /* Quick permission check */
     if (!IPSMember::canUploadPhoto($member, TRUE)) {
         return false;
     }
     /* Set the current photo */
     $data['currentPhoto']['tag'] = IPSMember::buildProfilePhoto($member, 'full', IPS_MEMBER_PHOTO_NO_CACHE);
     /* Set up custom */
     $data['custom']['tag'] = $member['pp_photo_type'] != 'custom' ? IPSMember::buildNoPhoto($member, 'thumb', false, true) : "<img src='" . $member['pp_thumb_photo'] . '?__rand=' . $rand . "' width='" . $member['pp_thumb_width'] . "' height='" . $member['pp_thumb_height'] . "' />";
     /* Set up Gravatar */
     $data['gravatar']['tag'] = "<img src='http://www.gravatar.com/avatar/" . md5($member['pp_gravatar']) . "?s=100' alt='' />";
     /* Twitter linked? */
     if (IPSLib::twitter_enabled() && $member['twitter_token'] && $member['twitter_secret']) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/twitter/connect.php', 'twitter_connect');
         $twitter = new $classToLoad($this->registry, $member['twitter_token'], $member['twitter_secret']);
         $userData = $twitter->fetchUserData();
         if ($userData['profile_image_url']) {
             $data['twitter']['tag'] = "<img src='" . str_replace('_normal.', '.', $userData['profile_image_url']) . "' />";
         }
     }
     /* Facebook linked? */
     if (IPSLib::fbc_enabled() && $member['fb_uid']) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/facebook/connect.php', 'facebook_connect');
         $facebook = new $classToLoad($this->registry);
         /* Now get the linked user */
         $linkedMemberData = IPSMember::load(intval($member['fb_uid']), 'all', 'fb_uid');
         $userData = $facebook->fetchUserData();
         if ($userData['pic_big']) {
             $data['facebook']['tag'] = "<img src='" . $userData['pic_big'] . "' />";
         } else {
             if ($userData['pic']) {
                 $data['facebook']['tag'] = "<img src='" . $userData['pic'] . "' />";
             }
         }
     }
     $this->uploadFormMax = 5000 * 1024;
     return $this->registry->getClass('output')->getTemplate('profile')->photoEditor($data, $member);
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:54,代碼來源:photo.php

示例2: userSmallPhoto

 function userSmallPhoto($member = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_global', $this->_funcHooks['userSmallPhoto'])) {
         $count_82ad645103bd9793e710479e9fd6131b = is_array($this->functionData['userSmallPhoto']) ? count($this->functionData['userSmallPhoto']) : 0;
         $this->functionData['userSmallPhoto'][$count_82ad645103bd9793e710479e9fd6131b]['member'] = $member;
     }
     $IPBHTML .= "" . ($member['member_id'] && ($this->memberData['g_is_supmod'] || $this->memberData['g_mem_info'] && !IPSMember::isInactive($member)) ? "\n\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' class='ipsUserPhotoLink left'>\n" : "\n\t<div class='left'>\n") . "\n" . ($member['member_id'] ? "<img src='{$member['pp_small_photo']}' alt='" . ($member['alt'] ? "{$member['alt']}" : "{$this->lang->words['photo']}") . "' class='ipsUserPhoto " . (empty($member['_customClass']) ? "ipsUserPhoto_mini" : "{$member['_customClass']}") . "' />" : "\n\t" . IPSMember::buildNoPhoto(0, 'mini') . "\n") . "\n" . ($member['member_id'] && ($this->memberData['g_is_supmod'] || $this->memberData['g_mem_info'] && !IPSMember::isInactive($member)) ? "\n\t</a>\n" : "\n\t</div>\n") . "";
     return $IPBHTML;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:10,代碼來源:skin_global.php

示例3: postOutput

 /**
  * Post output class setup
  * 
  * @return	@e void
  */
 public static function postOutput()
 {
     if (!self::$data_store['member_id']) {
         self::$data_store = IPSMember::buildNoPhoto(self::$data_store);
     }
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:11,代碼來源:ipsRegistry.php

示例4: __f__429bfb10574c73d38d4f1b0d0333b61a

 function __f__429bfb10574c73d38d4f1b0d0333b61a($notifications, $error = '', $pages = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($notifications as $notification) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["notify"]) . " " . (!$notification['notify_read'] ? "unread" : "") . "'>\n\t\t\t\t\t<td class=\"col_n_icon altrow short\">" . ($notification['notify_read'] ? "" . $this->registry->getClass('output')->getReplacement("t_read_dot") . "" : "" . $this->registry->getClass('output')->getReplacement("t_unread_dot") . "") . "</td>\n\t\t\t\t\t<td class='col_n_photo short'>\n\t\t\t\t\t\t" . ($notification['member']['member_id'] ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$notification['member']['member_id']}", "public", ''), "{$notification['member']['members_seo_name']}", "showuser") . "' class='ipsUserPhotoLink'>\n\t\t\t\t\t\t\t\t<img src='{$notification['member']['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t" . IPSMember::buildNoPhoto(0, 'mini') . "\n\t\t\t\t\t\t") . "\n\t\t\t\t\t</td>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t<h4>" . (strpos($notification['notify_title'], '<a href') === false ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core&amp;area=viewNotification&amp;do=view&amp;view={$notification['notify_id']}", "public", ''), "", "") . "'>" : "") . "\n\t\t\t\t\t\t{$notification['notify_title']}\n\t\t\t\t\t\t" . (strpos($notification['notify_title'], '<a href') === false ? "</a>" : "") . "\n\t\t\t\t\t\t</h4>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td class=\"col_n_date desc\"><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core&amp;area=viewNotification&amp;do=view&amp;view={$notification['notify_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_notification_logentry']}'>{$this->lang->words['th_sent']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($notification['notify_sent'], "long", 0)) . "</a></td>\n\t\t\t\t\t<td class=\"short col_n_mod\"><input class='input_check checkall' type=\"checkbox\" name=\"notifications[]\" value=\"{$notification['notify_id']}\" /></td>\n\t\t\t\t</tr>\n\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:12,代碼來源:skin_ucp.php


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