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


PHP BuckysUser::getProfileIcon方法代码示例

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


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

示例1: getNewNotificationAction

 public function getNewNotificationAction()
 {
     global $TNB_GLOBALS, $db;
     $data = $_POST;
     $token = isset($data['TOKEN']) ? trim($data['TOKEN']) : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     $notifications = BuckysActivity::getAppNotifications($userID, $data['page']);
     $results = [];
     foreach ($notifications as $row) {
         $item = [];
         $item['postID'] = $row['postID'];
         $item['userID'] = $row['userID'];
         $query = $db->prepare("SELECT\n                                u.firstName, \n                                u.lastName, \n                                u.userID, \n                                u.thumbnail, \n                                u.current_city, \n                                u.current_city_visibility,\n                                f.friendID \n                          FROM \n                                " . TABLE_USERS . " AS u\n                          LEFT JOIN " . TABLE_FRIENDS . " AS f ON f.userID=%d AND f.userFriendID=u.userID AND f.status='1'\n                          WHERE u.userID=%d", $userID, $item['userID']);
         $data = $db->getRow($query);
         $item['userName'] = $data['firstName'] . " " . $data['lastName'];
         $item['comment_content'] = $row['comment_content'];
         $item['userThumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($data);
         $item['type'] = $row['type'];
         $item['activityType'] = $row['activityType'];
         $item['post_date'] = buckys_api_format_date($userID, $row['post_date']);
         $item['isNew'] = $row['isNew'];
         $results[] = $item;
     }
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "RESULT" => $results]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:30,代码来源:notificationApi.php

示例2: getListAction

 public function getListAction()
 {
     $request = $_GET;
     $token = isset($request['TOKEN']) ? trim($request['TOKEN']) : null;
     $lastDate = isset($request['lastDate']) ? $request['lastDate'] : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     $stream = BuckysPost::getUserPostsStream($userID, $lastDate);
     //Format Result Data
     $result = [];
     foreach ($stream as $post) {
         if ($post['pageID'] != BuckysPost::INDEPENDENT_POST_PAGE_ID) {
             $pageIns = new BuckysPage();
             $pageData = $pageIns->getPageByID($post['pageID']);
         }
         $pagePostFlag = false;
         if (isset($pageData)) {
             $pagePostFlag = true;
         }
         $item = [];
         $item['articleId'] = $post['postID'];
         $item['posterId'] = $post['poster'];
         $item['articleImage'] = "";
         $item['articleVideo'] = "";
         $item['articleVideoId'] = "";
         if ($pagePostFlag) {
             $item['posterName'] = $pageData['title'];
             $item['posterThumbnail'] = buckys_not_null($pageData['logo']) ? THENEWBOSTON_SITE_URL . DIR_WS_PHOTO . "users/" . $pageData['userID'] . "/resized/" . $pageData['logo'] : THENEWBOSTON_SITE_URL . DIR_WS_IMAGE . "newPagePlaceholder.jpg";
         } else {
             $item['posterName'] = $post['posterFullName'];
             $item['posterThumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($post['poster']);
         }
         $item['postedDate'] = buckys_api_format_date($userID, $post['post_date']);
         $item['purePostedDate'] = $post['post_date'];
         $item['articleContent'] = $post['content'];
         if ($post['type'] == 'video') {
             $item['articleVideo'] = $post['youtube_url'];
             $item['articleVideoId'] = buckys_get_youtube_video_id($post['youtube_url']);
         } else {
             if ($post['type'] == 'image') {
                 $item['articleImage'] = THENEWBOSTON_SITE_URL . DIR_WS_PHOTO . 'users/' . $post['poster'] . '/resized/' . $post['image'];
             }
         }
         $item['articleLikes'] = $post['likes'];
         $item['articleComments'] = $post['comments'];
         $item['isLiked'] = !$post['likeID'] ? "no" : "yes";
         $result[] = $item;
     }
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "RESULT" => $result]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:54,代码来源:streamApi.php

示例3: getFriendListAction

 public function getFriendListAction()
 {
     global $TNB_GLOBALS, $db;
     $data = $_POST;
     $keyword = isset($data['keyword']) ? $data['keyword'] : null;
     $token = isset($data['TOKEN']) ? trim($data['TOKEN']) : null;
     $sort = "pop";
     $page = isset($data['page']) ? $data['page'] : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     //Search Results
     $searchIns = new BuckysSearch();
     $pageIns = new BuckysPage();
     $pageFollowerIns = new BuckysPageFollower();
     $db_results = $searchIns->search($keyword, BuckysSearch::SEARCH_TYPE_USER_AND_PAGE, $sort, $page);
     $results = [];
     foreach ($db_results as $item) {
         if ($item['type'] == "user") {
             //Getting Detail Information
             $query = $db->prepare("SELECT \n                                u.firstName, \n                                u.lastName, \n                                u.userID, \n                                u.thumbnail, \n                                u.current_city, \n                                u.current_city_visibility,\n                                f.friendID \n                          FROM \n                                " . TABLE_USERS . " AS u\n                          LEFT JOIN " . TABLE_FRIENDS . " AS f ON f.userID=%d AND f.userFriendID=u.userID AND f.status='1'\n                          WHERE u.userID=%d", $userID, $item['userID']);
             $data = $db->getRow($query);
             if ($data['friendID']) {
                 $row = [];
                 $row['id'] = $item['userID'];
                 $row['name'] = $data['firstName'] . " " . $data['lastName'];
                 $row['description'] = $data['current_city_visibility'] ? $data['current_city'] : "";
                 $row['friendType'] = "user";
                 $row['thumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($data);
                 $results[] = $row;
             }
         }
     }
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "RESULT" => $results]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:38,代码来源:searchApi.php

示例4: getPendingAction

 public function getPendingAction()
 {
     $request = $_GET;
     $token = isset($request['TOKEN']) ? trim($request['TOKEN']) : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     $friends = BuckysFriend::getPendingRequests($userID);
     $results = [];
     foreach ($friends as $row) {
         $item = [];
         $item['id'] = $row['userID'];
         $item['name'] = $row['fullName'];
         $item['thumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($row['userID']);
         $item['description'] = $row['city'];
         $item['friendType'] = $row['status'];
         $results[] = $item;
     }
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "RESULT" => $results]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:23,代码来源:friendApi.php

示例5: trim

                                    <div class="i-title"><?php 
        echo $itemTitle;
        ?>
</div>
                                </div>
                                <div class="clear"></div>
                            </td>
                            <td>

                                <div class="f-user-image">
                                    <a href="/profile.php?user=<?php 
        echo $theirID;
        ?>
" class="profileLink"> <img
                                            src="<?php 
        echo BuckysUser::getProfileIcon($theirID);
        ?>
" class="postIcons"/>
                                    </a>
                                </div>
                                <div class="f-user-desc">
                                    <a href="/profile.php?user=<?php 
        echo $theirID;
        ?>
" class="profileLink">
                                        <span><?php 
        echo trim($theirInfo['firstName'] . ' ' . $theirInfo['lastName']);
        ?>
</span>
                                    </a> <br/>
                                    <?php 
开发者ID:ravi50041,项目名称:Social-Network-Website,代码行数:31,代码来源:feedback.php

示例6: render_single_comment

function render_single_comment($comment, $userID = null, $isReturn = false)
{
    global $BUCKYS_GLOBALS;
    $timeOffset = 0;
    if (buckys_not_null($userID)) {
        $userInfo = BuckysUser::getUserBasicInfo($userID);
        $timeOffset = $BUCKYS_GLOBALS['timezone'][$userInfo['timezone']];
    }
    ob_start();
    ?>
    <div class="comment-item">                 
        <a href="/profile.php?user=<?php 
    echo $comment['commenter'];
    ?>
" class="thumb"><img src="<?php 
    echo BuckysUser::getProfileIcon($comment['commenter']);
    ?>
" class="replyToPostIcons" /></a>
        <div class="comment-content">
            <a href="/profile.php?user=<?php 
    echo $comment['commenter'];
    ?>
" style="font-weight:bold"><?php 
    echo $comment['fullName'];
    ?>
</a>
            <br/>
            <?php 
    echo $comment['content'];
    ?>
            <br/>
            <span style=" color:#999999; "><?php 
    echo buckys_format_date($comment['posted_date']);
    ?>
</span> 
            
            <?php 
    if ($comment['commenter'] == $userID || $comment['poster'] == $userID) {
        ?>
            &middot;
            <a href="/comments.php?action=delete-comment&userID=<?php 
        echo $userID;
        ?>
&commentID=<?php 
        echo $comment['commentID'];
        ?>
&postID=<?php 
        echo $comment['postID'];
        ?>
" class="remove-comment-link">Delete</a>
            <?php 
    }
    if (buckys_not_null($userID) && !$comment['reportID'] && ($comment['commenter'] != $userID && $comment['poster'] != $userID)) {
        ?>
            &middot; <a href="/report_object.php" data-type="comment" data-id="<?php 
        echo $comment['commentID'];
        ?>
" data-idHash="<?php 
        echo buckys_encrypt_id($comment['commentID']);
        ?>
" class="report-link" style="color:#999999;">Report</a>
            <?php 
    }
    ?>
        </div>        
    </div>
    <?php 
    $html = ob_get_contents();
    ob_end_clean();
    if (!$isReturn) {
        echo $html;
    } else {
        return $html;
    }
}
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:75,代码来源:view.php

示例7: foreach

    ?>
>Highest Rated</a>
                            </div>
                        </td>
                    </tr>
                    <?php 
    foreach ($replies as $row) {
        ?>
                    <tr class="reply-tr">
                        <td>
                            <a href='/profile.php?user=<?php 
        echo $row['creatorID'];
        ?>
'>
                                <img class="profileIcon" src="<?php 
        echo BuckysUser::getProfileIcon(array('thumbnail' => $row['thumbnail'], 'userID' => $row['creatorID']));
        ?>
" />
                            </a>
                        </td>
                        <td class="post-content">
                            <a style="font-weight:bold;" href='/profile.php?user=<?php 
        echo $row['creatorID'];
        ?>
'>
                                <?php 
        echo $row['creatorName'];
        ?>
                            </a>
							<br/>
                            <div>
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:topic.php

示例8: buckys_encrypt_id

    ?>
"></a>
						<!-- <a href="#" class="thumb-down" data-id="<?php 
    echo $row['candidateID'];
    ?>
" data-hashed="<?php 
    echo buckys_encrypt_id($row['candidateID']);
    ?>
"></a> -->
                        <div class="loading-wrapper"></div>
                    </div>
                    <a href="/profile.php?user=<?php 
    echo $row['userID'];
    ?>
"><img src="<?php 
    echo BuckysUser::getProfileIcon($row);
    ?>
" class="candidateImg" /></a>
                    <div class="candidate-detail">
                        <a style="font-weight:bold;" href="/profile.php?user=<?php 
    echo $row['userID'];
    ?>
"><?php 
    echo $row['firstName'] . " " . $row['lastName'];
    ?>
</a>
                        <p><?php 
    echo $row['candidateText'];
    ?>
</p>
                        <?php 
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:31,代码来源:moderator.php

示例9:

        ?>
                        Posts on <?php 
        echo $userData['firstName'];
        ?>
's Profile
                    <?php 
    }
    ?>

                </h3>
                <a href="/profile.php?user=<?php 
    echo $userID;
    ?>
"><img
                        src="<?php 
    echo BuckysUser::getProfileIcon($userID);
    ?>
" class="postIcons"/></a>

                <div class="new-post-row">
                    <form method="post" id="newpostform" action="/manage_post.php">
                        <div id="new-post-nav">
                            <a href="#" class="post-text selected">Text</a> <span>|</span> <a href="#"
                                class="post-image">Photo</a> <span>|</span> <a href="#" class="post-video">Video</a>
                        </div>
                        <textarea name="content" class="newPost" placeholder="Create a new post..."></textarea>

                        <div id="new-video-url">
                            <label style="font-weight:bold;font-size:11px;" for="video-url">YouTube URL:</label> <input
                                type="text" name="youtube_url" id="youtube_url" class="input" value=""/></div>
                        <div class='privacy-row'>
开发者ID:ravi50041,项目名称:Social-Network-Website,代码行数:31,代码来源:profile.php

示例10: render_report_link

?>
                <?php 
render_report_link($productData['productID'], 'shop_item', $productData['userID'], $userID, $productData['reportID']);
?>
            </div>

        </div>

        <div class="shop-view-owner">
            <div><span class="titles">Owner Information</span></div>
            <a href="/profile.php?user=<?php 
echo $productData['userID'];
?>
" class="profileLink"> <img
                    src="<?php 
echo BuckysUser::getProfileIcon($productData['userID']);
?>
" class="postIcons"/> <span
                    style="font-weight:bold;"><?php 
echo trim($productData['userInfo']['firstName'] . ' ' . $productData['userInfo']['lastName']);
?>
</span>
            </a>

            <div>
                <?php 
if (is_numeric($totalRating)) {
    echo sprintf('<a href="%s" class="rating">(%d ratings)</a> %s', '/feedback.php?user=' . $productData['userID'], $totalRating, $positiveRating);
} else {
    echo sprintf('(%s ratings)', $totalRating);
}
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:view.php

示例11: getMessageInfoAction

 public function getMessageInfoAction()
 {
     $request = $_GET;
     $token = isset($request['TOKEN']) ? trim($request['TOKEN']) : null;
     $messageId = isset($request['messageID']) ? trim($request['messageID']) : null;
     $messageType = isset($request['messageType']) ? trim($request['messageType']) : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     BuckysMessage::changeMessageStatus($messageId);
     $row = BuckysMessage::getMessageById($messageId);
     if (empty($row)) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('No record found.')];
     }
     $results = [];
     $results['messageID'] = $row['messageID'];
     $results['body'] = $row['body'];
     $results['subject'] = $row['subject'];
     $results['status'] = $row['status'];
     $results['type'] = $messageType;
     $results['sender'] = $row['sender'];
     $results['senderName'] = $row['senderName'];
     $results['senderThumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($row['sender']);
     $results['receiver'] = $row['receiver'];
     $results['receiverName'] = $row['receiverName'];
     $results['receiverThumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($row['receiver']);
     $results['created_date'] = buckys_api_format_date($userID, $row['created_date']);
     $results['nextId'] = BuckysMessage::getNextID($userID, $messageId, $messageType);
     $results['prevId'] = BuckysMessage::getPrevID($userID, $messageId, $messageType);
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "RESULT" => $results]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:34,代码来源:messageApi.php

示例12: getMessagesHTML

 /**
  * Get Messenger Messages HTMl
  * 
  * @param Int $userID
  * @param Int $buddyID
  * @param String $type: 'new', 'old', 'all'
  */
 public function getMessagesHTML($userID, $buddyID, $type = 'new')
 {
     global $db;
     $rows = BuckysPrivateMessenger::getMessages($userID, $buddyID, $type);
     $html = '';
     $userData = BuckysUser::getUserBasicInfo($userID);
     foreach ($rows as $row) {
         $html .= '<div class="single_private_message">
                     <img src="' . BuckysUser::getProfileIcon($row['messageType'] == 1 ? $row : $userData) . '" />
                     <div class="private_message_text"><span class="username">' . ($row['messageType'] == 1 ? $row['fullName'] : $userData['firstName'] . ' ' . $userData['lastName']) . '</span>' . $row['message'] . ' <span class="date">' . BuckysPrivateMessenger::formatDate(strtotime($row['createdDate'])) . '</span></div>
                   </div>';
     }
     return $html;
 }
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:21,代码来源:class.BuckysPrivateMessenger.php

示例13: trim

                    <div class="">This item has been traded.</div>
                <?php 
}
?>
            </div>

        </div>

        <div class="trade-view-owner">
            <div><span class="titles">Owner Information</span></div>
            <a href="/profile.php?user=<?php 
echo $itemData['userID'];
?>
" class="profileLink"> <img
                    src="<?php 
echo BuckysUser::getProfileIcon($itemData['userID']);
?>
" class="postIcons"/> <span
                    style="font-weight:bold;"><?php 
echo trim($itemData['userInfo']['firstName'] . ' ' . $itemData['userInfo']['lastName']);
?>
</span>
            </a>

            <div>
                <?php 
if (is_numeric($totalRating)) {
    echo sprintf('<a href="%s" class="rating">(%d ratings)</a> %s', '/feedback.php?user=' . $theirID, $totalRating, $positiveRating);
} else {
    echo sprintf('(%s ratings)', $totalRating);
}
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:view.php

示例14: getFriendsAction

 public function getFriendsAction()
 {
     $data = $_POST;
     $token = isset($data['TOKEN']) ? trim($data['TOKEN']) : null;
     $page = isset($data['page']) ? $data['page'] : 1;
     $profileID = isset($data['profileId']) ? $data['profileId'] : null;
     if (!$token) {
         return ['STATUS_CODE' => STATUS_CODE_BAD_REQUEST, 'DATA' => buckys_api_get_error_result('Api token should not be blank')];
     }
     if (!($userID = BuckysUsersToken::checkTokenValidity($token, "api"))) {
         return ['STATUS_CODE' => STATUS_CODE_UNAUTHORIZED, 'DATA' => buckys_api_get_error_result('Api token is not valid.')];
     }
     $userData = BuckysUser::getUserData($profileID);
     if (!buckys_not_null($profileID) || !buckys_not_null($userData) || !BuckysUser::checkUserID($profileID, true)) {
         return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => buckys_api_get_error_result(MSG_INVALID_REQUEST)];
     }
     $canViewPrivate = $userID == $profileID || BuckysFriend::isFriend($userID, $profileID) || BuckysFriend::isSentFriendRequest($profileID, $userID);
     //Getting Photos
     //Get Friends
     $friends = BuckysFriend::getAllFriends($profileID, $page, BuckysFriend::$COUNT_PER_PAGE);
     $resultFriends = [];
     foreach ($friends as $data) {
         $row['id'] = $data['userID'];
         $row['name'] = $data['firstName'] . " " . $data['lastName'];
         $row['description'] = $data['current_city_visibility'] ? $data['current_city'] : "";
         $row['friendType'] = BuckysFriend::getRelationType($userID, $data['userID']);
         $row['thumbnail'] = THENEWBOSTON_SITE_URL . BuckysUser::getProfileIcon($data);
         $resultFriends[] = $row;
     }
     return ['STATUS_CODE' => STATUS_CODE_OK, 'DATA' => ["STATUS" => "SUCCESS", "FRIENDS" => $resultFriends]];
 }
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:31,代码来源:profileApi.php

示例15: render_footer_link_content

function render_footer_link_content($type, $data, $outFlag = true)
{
    $userID = buckys_is_logged_in();
    ob_start();
    switch ($type) {
        case 'my':
            foreach ($data as $row) {
                echo BuckysActivity::getActivityHTML($row, $userID);
            }
            echo '<a class="view-detail-links" href="/account.php">View All Notifications</a>';
            break;
        case 'friend':
            $count = 0;
            foreach ($data as $row) {
                $count++;
                if ($count > 5) {
                    break;
                }
                ?>
                <div class="activityComment">
                    <a href="/profile.php?user=<?php 
                echo $row['userID'];
                ?>
"><img
                            src="<?php 
                echo BuckysUser::getProfileIcon($row);
                ?>
"
                            class="dropDownNotificationImages"/></a> <a
                        href="/profile.php?user=<?php 
                echo $row['userID'];
                ?>
"><?php 
                echo $row['fullName'];
                ?>
</a> sent you new friend request
                    <a href="/myfriends.php?action=decline&friendID=<?php 
                echo $row['userID'];
                echo buckys_get_token_param();
                ?>
&return=<?php 
                echo base64_encode("/profile.php?user=" . $row['userID']);
                ?>
"
                        class="redButton">Decline</a> <a
                        href="/myfriends.php?action=accept&friendID=<?php 
                echo $row['userID'];
                echo buckys_get_token_param();
                ?>
&return=<?php 
                echo base64_encode("/profile.php?user=" . $row['userID']);
                ?>
"
                        class="redButton">Approve</a> <br clear="all"/>
                </div>
            <?php 
            }
            ?>
            <a class="view-detail-links" href="/myfriends.php?type=requested"> View All Requests </a>
            <?php 
            break;
        case 'forum':
            foreach ($data as $idx => $row) {
                ?>
                <?php 
                if ($row['activityType'] == 'topic_approved' || $row['activityType'] == 'reply_approved') {
                    ?>
                    <div class="activityComment">
                            <span>                 
                                <a href="/profile.php?user=<?php 
                    echo $row['userID'];
                    ?>
"><img
                                        src="<?php 
                    echo BuckysUser::getProfileIcon($TNB_GLOBALS['user']['userID']);
                    ?>
"
                                        class="dropDownNotificationImages"/></a>
                                <!-- <span class="redBold"><?php 
                    echo $TNB_GLOBALS['user']['firstName'] . " " . $TNB_GLOBALS['user']['lastName'];
                    ?>
</span> <br />-->
                                <?php 
                    if ($row['activityType'] == 'topic_approved') {
                        ?>
                                    Your topic
                                    <a href="/forum/topic.php?id=<?php 
                        echo $row['activityType'] == 'topic_approved' ? $row['objectID'] : $row['actionID'];
                        ?>
"><?php 
                        echo buckys_truncate_string($row['topicTitle'], 30);
                        ?>
</a> has been approved
                                <?php 
                    } else {
                        ?>
                                    Your reply to
                                    <a href="/forum/topic.php?id=<?php 
                        echo $row['activityType'] == 'reply_approved' ? $row['objectID'] : $row['actionID'];
                        ?>
//.........这里部分代码省略.........
开发者ID:HAPwebsite,项目名称:Social-Network-Website,代码行数:101,代码来源:view.php


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