• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_member_thumbnail函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_member_thumbnail函数的典型用法代码示例。如果您正苦于以下问题:PHP get_member_thumbnail函数的具体用法?PHP get_member_thumbnail怎么用?PHP get_member_thumbnail使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: PrintSearhResult

 /**
  * @description : function will generate profile block (used the profile template );
  * @return : Html presentation data ;
  */
 function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)
 {
     global $site;
     global $aPreValues;
     $iVisitorID = getLoggedId();
     $bExtMode = !empty($_GET['mode']) && $_GET['mode'] == 'extended' || !empty($_GET['search_result_mode']) && $_GET['search_result_mode'] == 'ext';
     $isShowMatchPercent = $bExtMode && $iVisitorID && $iVisitorID != $aProfileInfo['ID'] && getParam('view_match_percent') && getParam('enable_match');
     $sProfileThumb = get_member_thumbnail($aProfileInfo['ID'], 'none', !$bExtMode, 'visitor');
     $sProfileMatch = $isShowMatchPercent ? $GLOBALS['oFunctions']->getProfileMatch($iVisitorID, $aProfileInfo['ID']) : '';
     $sProfileNickname = '<a href="' . getProfileLink($aProfileInfo['ID']) . '">' . getNickName($aProfileInfo['ID']) . '</a>';
     $sProfileInfo = $GLOBALS['oFunctions']->getUserInfo($aProfileInfo['ID']);
     $sProfileDesc = strmaxtextlen($aProfileInfo['DescriptionMe'], 130);
     $sProfileZodiac = $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aProfileInfo['DateOfBirth']) : '';
     $sProfile2ASc1 = $sProfile2ASc2 = $sProfile2Nick = $sProfile2Desc = $sProfile2Info = $sProfile2Zodiac = '';
     if ($aCoupleInfo) {
         $sProfile2Nick = '<a href="' . getProfileLink($aCoupleInfo['ID']) . '">' . getNickName($aCoupleInfo['ID']) . '</a>';
         $sProfile2Info = $GLOBALS['oFunctions']->getUserInfo($aCoupleInfo['ID']);
         $sProfile2Desc = strmaxtextlen($aCoupleInfo['DescriptionMe'], 130);
         $sProfile2Zodiac = $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aCoupleInfo['DateOfBirth']) : '';
         $sProfile2ASc1 = 'float:left;width:31%;margin-right:10px;';
         $sProfile2ASc2 = 'float:left;width:31%;display:block;';
     } else {
         $sProfile2ASc2 = 'display:none;';
     }
     $aKeys = array('thumbnail' => $sProfileThumb, 'match' => $sProfileMatch, 'nick' => $sProfileNickname, 'info' => $sProfileInfo, 'i_am_desc' => $sProfileDesc, 'zodiac_sign' => $sProfileZodiac, 'nick2' => $sProfile2Nick, 'info2' => $sProfile2Info, 'i_am_desc2' => $sProfile2Desc, 'zodiac_sign2' => $sProfile2Zodiac, 'add_style_c1' => $sProfile2ASc1, 'add_style_c2' => $sProfile2ASc2);
     if ($aExtendedKey and is_array($aExtendedKey) and !empty($aExtendedKey)) {
         foreach ($aExtendedKey as $sKey => $sValue) {
             $aKeys[$sKey] = $sValue;
         }
     } else {
         $aKeys['ext_css_class'] = '';
     }
     return $oCustomTemplate ? $oCustomTemplate->parseHtmlByName($sTemplateName, $aKeys) : $GLOBALS['oSysTemplate']->parseHtmlByName($sTemplateName, $aKeys);
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:38,代码来源:BxBaseSearchProfile.php


示例2: blockInformation

 function blockInformation($aSite)
 {
     $this->addCss(array('block_info.css'));
     $aResult = array('author_unit' => get_member_thumbnail($aSite['ownerid'], 'none', true), 'date' => getLocaleDate($aSite['date'], BX_DOL_LOCALE_DATE_SHORT), 'date_ago' => defineTimeInterval($aSite['date'], false), 'cats' => $this->parseCategories($aSite['categories']), 'tags' => $this->parseTags($aSite['tags']), 'fields' => '');
     $this->_checkOwner($aSite, $aResult);
     return $this->parseHtmlByName('entry_view_block_info.html', $aResult);
 }
开发者ID:boonex,项目名称:dolphin.pro,代码行数:7,代码来源:BxSitesTemplate.php


示例3: getFileAuthor

 function getFileAuthor($aInfo)
 {
     if (empty($aInfo)) {
         return '';
     }
     return $this->parseHtmlByName('media_info.html', array('memberPic' => get_member_thumbnail($aInfo['medProfId'], 'none', TRUE)));
 }
开发者ID:noormcs,项目名称:studoro,代码行数:7,代码来源:BxDolFilesTemplate.php


示例4: blockInformation

 function blockInformation($aSite)
 {
     $this->addCss(array('block_info.css'));
     $aResult = array('owner_thumb' => get_member_thumbnail($aSite['ownerid'], 'none'), 'date_icon' => $this->getIconUrl('clock.png'), 'date' => getLocaleDate($aSite['date'], BX_DOL_LOCALE_DATE_SHORT), 'date_ago' => defineTimeInterval($aSite['date']), 'cats_icon' => $this->getIconUrl('folder.png'), 'cats' => $this->parseCategories($aSite['categories']), 'tags' => $this->parseTags($aSite['tags']), 'tags_icon' => $this->getIconUrl('tgs.gif'));
     $this->_checkOwner($aSite, $aResult);
     return $this->parseHtmlByName('block_info.html', $aResult);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:7,代码来源:BxSitesTemplate.php


示例5: getBlockCode_GetMembers

 function getBlockCode_GetMembers($iGroupId)
 {
     $sSearchUnitTmpl = $this->getHtml('ps_search_unit.html');
     $aIds = $this->_oDb->getMembersIds($iGroupId);
     $sResult = "";
     foreach ($aIds as $aId) {
         $sResult .= $this->parseHtmlByContent($sSearchUnitTmpl, array('action' => 'del', 'member_id' => $aId['id'], 'member_thumbnail' => get_member_thumbnail($aId['id'], 'none', true)));
     }
     return $sResult;
 }
开发者ID:newton27,项目名称:dolphin.pro,代码行数:10,代码来源:BxBasePrivacyView.php


示例6: getFileInfo

 function getFileInfo($aInfo)
 {
     if (empty($aInfo)) {
         return '';
     }
     $aMediaInfo = array();
     $aMediaInfo['memberPic'] = get_member_thumbnail($aInfo['medProfId'], 'none', false);
     $aMediaInfo['memberUrl'] = getProfileLink($aInfo['medProfId']);
     $aMediaInfo['memberNick'] = $aInfo['NickName'];
     $aMediaInfo['dateIcon'] = $this->getIconUrl('clock.png');
     $aMediaInfo['dateInfo'] = getLocaleDate($aInfo['medDate'], BX_DOL_LOCALE_DATE_SHORT);
     $aMediaInfo['dateInfoAgo'] = defineTimeInterval($aInfo['medDate']);
     return $this->parseHtmlByName('media_info.html', $aMediaInfo);
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:14,代码来源:BxDolFilesTemplate.php


示例7: PrintSearhResult

 /**
  * @description : function will generate profile block (used the profile template );
  * @return      : Html presentation data ;
  */
 function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)
 {
     global $site;
     global $aPreValues;
     $iVisitorID = getLoggedId();
     $bExtMode = !empty($_GET['mode']) && $_GET['mode'] == 'extended' || !empty($_GET['search_result_mode']) && $_GET['search_result_mode'] == 'ext';
     $isShowMatchPercent = $bExtMode && $iVisitorID && $iVisitorID != $aProfileInfo['ID'] && getParam('view_match_percent') && getParam('enable_match');
     $bPublic = $bExtMode ? bx_check_profile_visibility($aProfileInfo['ID'], $iVisitorID, true) : true;
     if ($bPublic && $iVisitorID != $aProfileInfo['ID'] && !isAdmin()) {
         $oPrivacy = new BxDolPrivacy('sys_page_compose_privacy', 'id', 'user_id');
         $iBlockID = $GLOBALS['MySQL']->getOne("SELECT `ID` FROM `sys_page_compose` WHERE `Page` = 'profile' AND `Func` = 'Description' AND `Column` != 0");
         $iPrivacyId = (int) $GLOBALS['MySQL']->getOne("SELECT `id` FROM `sys_page_compose_privacy` WHERE `user_id`='{$aProfileInfo['ID']}' AND `block_id`='{$iBlockID}' LIMIT 1");
         $bPublic = !$iBlockID || !$iPrivacyId || $oPrivacy->check('view_block', $iPrivacyId, $iVisitorID);
     }
     $sProfileThumb = get_member_thumbnail($aProfileInfo['ID'], 'none', !$bExtMode, 'visitor');
     $sProfileMatch = $isShowMatchPercent ? $GLOBALS['oFunctions']->getProfileMatch($iVisitorID, $aProfileInfo['ID']) : '';
     $sProfileNickname = '<a href="' . getProfileLink($aProfileInfo['ID']) . '">' . getNickName($aProfileInfo['ID']) . '</a>';
     $sProfileInfo = $GLOBALS['oFunctions']->getUserInfo($aProfileInfo['ID']);
     $sProfileDesc = $bPublic ? strmaxtextlen($aProfileInfo['DescriptionMe'], 130) : _t('_sys_profile_private_text_title');
     $sProfileZodiac = $bPublic && $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aProfileInfo['DateOfBirth']) : '';
     $sProfile2ASc1 = $sProfile2ASc2 = $sProfile2Nick = $sProfile2Desc = $sProfile2Info = $sProfile2Zodiac = '';
     if ($aCoupleInfo) {
         $sProfile2Nick = '<a href="' . getProfileLink($aCoupleInfo['ID']) . '">' . getNickName($aCoupleInfo['ID']) . '</a>';
         $sProfile2Info = $GLOBALS['oFunctions']->getUserInfo($aCoupleInfo['ID']);
         $sProfile2Desc = $bPublic ? strmaxtextlen($aCoupleInfo['DescriptionMe'], 130) : _t('_sys_profile_private_text_title');
         $sProfile2Zodiac = $bPublic && $bExtMode && getParam('zodiac') ? $GLOBALS['oFunctions']->getProfileZodiac($aCoupleInfo['DateOfBirth']) : '';
         $sProfile2ASc1 = 'float:left;width:31%;margin-right:10px;';
         $sProfile2ASc2 = 'float:left;width:31%;display:block;';
     } else {
         $sProfile2ASc2 = 'display:none;';
     }
     $aKeys = array('thumbnail' => $sProfileThumb, 'match' => $sProfileMatch, 'nick' => $sProfileNickname, 'info' => $sProfileInfo, 'i_am_desc' => $sProfileDesc, 'zodiac_sign' => $sProfileZodiac, 'nick2' => $sProfile2Nick, 'info2' => $sProfile2Info, 'i_am_desc2' => $sProfile2Desc, 'zodiac_sign2' => $sProfile2Zodiac, 'add_style_c1' => $sProfile2ASc1, 'add_style_c2' => $sProfile2ASc2);
     if ($aExtendedKey and is_array($aExtendedKey) and !empty($aExtendedKey)) {
         foreach ($aExtendedKey as $sKey => $sValue) {
             $aKeys[$sKey] = $sValue;
         }
     } else {
         $aKeys['ext_css_class'] = '';
     }
     return $oCustomTemplate ? $oCustomTemplate->parseHtmlByName($sTemplateName, $aKeys) : $GLOBALS['oSysTemplate']->parseHtmlByName($sTemplateName, $aKeys);
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:45,代码来源:BxBaseSearchProfile.php


示例8: getFriendList

function getFriendList($id)
{
    global $site;
    global $max_thumb_width;
    global $max_thumb_height;
    $id = (int) $id;
    $friend_list_query = "SELECT `Profiles`.* FROM `FriendList`\r\n\t\t\t\t\t\t\t\t LEFT JOIN `Profiles` ON (`Profiles`.`ID` = `FriendList`.`Profile` AND `FriendList`.`ID` = '{$id}' OR `Profiles`.`ID` = `FriendList`.`ID` AND `FriendList`.`Profile` = '{$id}')\r\n\t\t\t\t\t\t\t\t WHERE (`FriendList`.`Profile` = '{$id}' OR `FriendList`.`ID` = '{$id}') AND `FriendList`.`Check` = '1' ORDER BY `Profiles`.`Picture` DESC";
    $friend_list_res = db_res("{$friend_list_query}");
    $iCounter = 0;
    while ($friend_list_arr = mysql_fetch_assoc($friend_list_res)) {
        $iCounter++;
        $sKey = '1';
        if ($iCounter == 3) {
            $sKey = '1';
        }
        $ret .= '<div class="friends_thumb_' . $sKey . '">' . get_member_thumbnail($friend_list_arr['ID'], 'none') . '<div class="browse_nick"><a href="' . getProfileLink($friend_list_arr['ID']) . '">' . $friend_list_arr['NickName'] . '</a></div><div class="clear_both"></div></div>';
        if ($iCounter == 3) {
            $iCounter = 0;
        }
    }
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:22,代码来源:viewFriends.php


示例9: ActionPrintAdvertisement


//.........这里部分代码省略.........
    <input type="hidden" name="mode" value="compose" />
    <input type="hidden" name="recipient_id" value="{$aSqlResStr['IDProfile']}" />
    <input type="hidden" name="subject" value="{$aSqlResStr['Subject']}" />
</form>
EOF;
            }
            $sEntryUrl = $this->genUrl($iAdvertisementID, $aSqlResStr['EntryUri'], 'entry');
            $sMediaIDs = $this->_oDb->getMediaOfAd($iAdvertisementID);
            if ($sMediaIDs != '') {
                $aReadyMedia = explode(',', $sMediaIDs);
                $sPictureSectContent = $this->_blockPhoto($aReadyMedia, $iOwnerID);
            }
            $sPictureSect = $sPictureSectContent != '' ? DesignBoxContent(_t('_bx_ads_Ad_photos'), $sPictureSectContent, 1) : '';
            $this->sTAPhotosContent = $sPictureSectContent;
            bx_import('BxDolSubscription');
            $oSubscription = BxDolSubscription::getInstance();
            $aButton = $oSubscription->getButton($this->_iVisitorID, $this->_oConfig->getUri(), '', $iAdvertisementID);
            $aActionKeys = array('BaseUri' => $this->_oConfig->getBaseUri(), 'visitor_id' => $this->_iVisitorID, 'owner_id' => $aNameRet['ID'], 'admin_mode' => "'" . $this->bAdminMode . "'", 'ads_id' => $iAdvertisementID, 'ads_status' => $aSqlResStr['Status'], 'ads_act_type' => $aSqlResStr['Status'] == 'active' ? 'inactive' : 'active', 'ads_featured' => (int) $aSqlResStr['Featured'], 'sure_label' => $sSureC, 'ads_entry_url' => $sEntryUrl, 'only_menu' => 0, 'sbs_ads_title' => $aButton['title'], 'sbs_ads_script' => $aButton['script'], 'TitleShare' => $this->isAllowedShare($aSqlResStr) ? _t('_Share') : '');
            $sActionsTable = $GLOBALS['oFunctions']->genObjectsActions($aActionKeys, 'bx_ads', false);
            $sSubsAddon = $oSubscription->getData();
            $sActionsSectContent = $sSubsAddon . $sMemberActionForms . $sActionsTable;
            $sActionsSect = $this->_iVisitorID > 0 || $this->bAdminMode ? DesignBoxContent($sActionsC, $sActionsSectContent, 1) : '';
            $this->sTAActionsContent = $this->_iVisitorID > 0 || $this->bAdminMode ? $sActionsSectContent : '';
            bx_import('Cmts', $this->_aModule);
            $this->oCmtsView = new BxAdsCmts($this->_oConfig->getCommentSystemName(), $iAdvertisementID);
            $sCommentsSectContent = $this->oCmtsView->getExtraCss();
            $sCommentsSectContent .= $this->oCmtsView->getExtraJs();
            $sCommentsSectContent .= !$this->oCmtsView->isEnabled() ? '' : $this->oCmtsView->getCommentsFirst();
            $this->sTACommentsContent = $sCommentsSectContent;
            $sCommSect = DesignBoxContent($aCaptions['Comments'], $sCommentsSectContent, 1);
            $sUserOtherListing = $this->getMemberAds($aSqlResStr['IDProfile'], 2, $iAdvertisementID);
            $sDataTimeFormatted = getLocaleDate($aSqlResStr['DateTime_UTS']);
            $iViews = (int) $aSqlResStr['Views'];
            $sOwnerThumb = get_member_thumbnail($aSqlResStr['IDProfile'], 'none', true);
            $sAdsMessage = process_html_output($aSqlResStr['Message']);
            $sCategLink = $this->bUseFriendlyLinks ? BX_DOL_URL_ROOT . 'ads/cat/' . $aSqlResStr['CEntryUri'] : "{$this->sCurrBrowsedFile}?bClassifiedID={$aSqlResStr['CatID']}";
            $sSCategLink = $this->bUseFriendlyLinks ? BX_DOL_URL_ROOT . 'ads/subcat/' . $aSqlResStr['SEntryUri'] : "{$this->sCurrBrowsedFile}?bSubClassifiedID={$aSqlResStr['SubID']}";
            $aSubjVariables = array('author_unit' => $sOwnerThumb, 'date' => $sDataTimeFormatted, 'date_ago' => $sTimeAgo, 'cats' => $this->_oTemplate->parseHtmlByTemplateName('category', array('cat_link' => $sCategLink, 'sub_cat_link' => $sSCategLink, 'cat_name' => $aSqlResStr['Name'], 'sub_cat_name' => $aSqlResStr['NameSub'])), 'tags' => $sTags, 'fields' => '');
            $sSubjectSectContent = $this->_oTemplate->parseHtmlByName('entry_view_block_info.html', $aSubjVariables);
            $sSubjectSect = DesignBoxContent(_t('_Info'), $sSubjectSectContent, 1);
            $this->sTAInfoContent = $sSubjectSectContent;
            $sDescriptionContent = '<div class="dbContent bx-def-bc-margin bx-def-font-large">' . $sAdsMessage . '</div>';
            $sDescriptionSect = DesignBoxContent(_t('_Description'), $sDescriptionContent, 1);
            $this->sTADescription = $sDescriptionContent;
            //adding form
            $aForm = array('form_attrs' => array('name' => 'custom_values_form', 'action' => $oAds->sCurrBrowsedFile), 'inputs' => array('Country' => array('type' => 'value', 'name' => 'Country', 'caption' => _t('_Country'), 'value' => $sCountryName . $sCountryPic), 'City' => array('type' => 'value', 'name' => 'City', 'caption' => _t('_City'), 'value' => $aSqlResStr['City'])));
            if ($aSqlResStr['CustomFieldName1'] && $aSqlResStr['CustomFieldValue1']) {
                $aForm['inputs']['Custom1'] = array('type' => 'value', 'name' => 'Custom1', 'caption' => $aSqlResStr['CustomFieldName1'], 'value' => $aSqlResStr['Unit1'] . $aSqlResStr['CustomFieldValue1']);
            }
            if ($aSqlResStr['CustomFieldName2'] && $aSqlResStr['CustomFieldValue2']) {
                $aForm['inputs']['Custom2'] = array('type' => 'value', 'name' => 'Custom2', 'caption' => $aSqlResStr['CustomFieldName2'], 'value' => $aSqlResStr['Unit2'] . $aSqlResStr['CustomFieldValue2']);
            }
            $oForm = new BxTemplFormView($aForm);
            $sOtherInfoContent = $oForm->getCode();
            $sOtherInfoSect = DesignBoxContent(_t('_bx_ads_Custom_Values'), $sOtherInfoContent, 1);
            $this->sTAOtherInfo = $sOtherInfoContent;
            $bPossibleToRate = $this->oPrivacy->check('rate', $iAdvertisementID, $this->_iVisitorID);
            $oVotingView = new BxTemplVotingView('ads', $iAdvertisementID);
            $iVote = $oVotingView && $oVotingView->isEnabled() && $bPossibleToRate ? 1 : 0;
            $sVotePostRating = $oVotingView->getBigVoting($iVote);
            $sRatingSect = DesignBoxContent(_t('_Rate'), $sVotePostRating, 1);
            $this->sTARateContent = '<div class="bx-def-bc-margin">' . $sVotePostRating . '</div>';
            $sOtherListingContent = <<<EOF
<div class="dbContent">
    {$sUserOtherListing}
</div>
开发者ID:newton27,项目名称:dolphin.pro,代码行数:67,代码来源:BxAdsModule.php


示例10: showBlockMutualFriends

 function showBlockMutualFriends($sCaption, $bNoDB = false)
 {
     $iViewer = getLoggedId();
     if ($this->_iProfileID == $iViewer) {
         return;
     }
     if ($this->iCountMutFriends > 0) {
         $sCode = $sPaginate = '';
         $iPerPage = $this->iFriendsPerPage;
         $iPage = (int) $_GET['page'] > 0 ? (int) $_GET['page'] : 1;
         $aTmplVars = array('bx_repeat:friends' => array());
         foreach ($this->aMutualFriends as $iKey => $sValue) {
             $aTmplVars['bx_repeat:friends'][] = array('content' => get_member_thumbnail($iKey, 'none', true));
         }
         $sCode = $GLOBALS['oSysTemplate']->parseHtmlByName('profile_friends.html', $aTmplVars);
         if ($this->iCountMutFriends > $iPerPage) {
             $oPaginate = new BxDolPaginate(array('page_url' => BX_DOL_URL_ROOT . 'profile.php', 'count' => $this->iCountMutFriends, 'per_page' => $iPerPage, 'page' => $iPage, 'on_change_page' => 'return !loadDynamicBlock({id}, \'' . getProfileLink($this->_iProfileID) . '?page={page}&per_page={per_page}\');'));
             $sPaginate = $oPaginate->getSimplePaginate('', -1, -1, false);
         }
         if ($bNoDB) {
             return array($sCode, array(), $sPaginate, true);
         } else {
             return DesignBoxContent(_t($sCaption), $sCode, 1);
         }
     }
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:26,代码来源:BxBaseProfileView.php


示例11: genReplayMessage

 /**
  * Function will generate window with reply message or new compose message;
  *
  * @param        : $iRecipientID (integer) - recipient's ID ;
  * @param        : $iMessageID (integer) - message ID (optional parameter);
  * @return        : Html presentation data;
  */
 function genReplayMessage($iRecipientID, $iMessageID = 0)
 {
     global $oSysTemplate;
     $iMessageID = (int) $iMessageID;
     $iRecipientID = (int) $iRecipientID;
     // init some needed variables ;
     $sOutputHtml = '';
     $aMemberInfo = getProfileInfo($this->aMailBoxSettings['member_id']);
     $aRecipientInfo = getProfileInfo($iRecipientID);
     $aLanguageKeys = array('information' => $iMessageID ? _t('_Reply') : _t('_COMPOSE_H1'), 'cancel' => bx_js_string(_t('_Cancel')), 'send' => bx_js_string(_t('_Send')), 'send_copy' => _t('_Send copy to personal email', $aRecipientInfo['NickName']), 'send_copy_my' => _t('_Send copy to my personal email'), 'notify' => _t('_Notify by e-mail', $aRecipientInfo['NickName']), 'error_message' => bx_js_string(_t('_please_fill_next_fields_first')));
     if (!empty($aMemberInfo) && !empty($aRecipientInfo)) {
         // ** generate recipient's information ;
         $sMemberIcon = get_member_thumbnail($this->aMailBoxSettings['member_id'], 'none');
         $sMemberNickName = $aMemberInfo['NickName'];
         $sMemberLocation = getProfileLink($aMemberInfo['ID']);
         $sClockImgPath = getTemplateIcon('clock.png');
         $sCurrentDate = date('d.m.Y G:i');
         $sMessageSubject = $iMessageID ? $this->addReToSubject(db_value("\r\n                            SELECT \r\n                                `Subject` \r\n                            FROM \r\n                                `sys_messages` \r\n                            WHERE \r\n                                `ID` = {$iMessageID} \r\n                                    AND \r\n                                (\r\n                                `Sender` = {$this->aMailBoxSettings['member_id']} \r\n                                    OR \r\n                                `Recipient` = {$this->aMailBoxSettings['member_id']}\r\n                                )\r\n                            ")) : null;
         $aForm = array('form_attrs' => array('action' => null, 'method' => 'post'), 'params' => array('remove_form' => true, 'db' => array('submit_name' => 'do_submit')), 'inputs' => array('actions' => array('type' => 'input_set', 'colspan' => 'true', 0 => array('type' => 'button', 'value' => $aLanguageKeys['send'], 'attrs' => array('onclick' => 'if(typeof oMailBoxReplayMessage != \'undefined\') oMailBoxReplayMessage.sendMessage(' . $iRecipientID . ')')), 1 => array('type' => 'button', 'value' => $aLanguageKeys['cancel'], 'attrs' => array('onclick' => 'if(typeof oMailBoxReplayMessage != \'undefined\') oMailBoxReplayMessage.cancelReplay()')))));
         $oForm = new BxTemplFormView($aForm);
         $sMessageBoxActions = $oForm->getCode();
         $aTemplateKeys = array('error_message' => $aLanguageKeys['error_message'], 'current_page' => 'mail.php', 'information' => $aLanguageKeys['information'], 'member_thumbnail' => $sMemberIcon, 'member_nick_name' => $sMemberNickName, 'member_location' => $sMemberLocation, 'clock_img' => $sClockImgPath, 'date_create' => $sCurrentDate, 'message_subject' => $sMessageSubject, 'send_copy_my' => $aLanguageKeys['send_copy_my'], 'send_copy_to' => $aLanguageKeys['send_copy'], 'notify' => $aLanguageKeys['notify'], 'action_buttons' => $sMessageBoxActions);
         $sOutputHtml = $oSysTemplate->parseHtmlByName($this->aUsedTemplates['message_replay'], $aTemplateKeys);
     }
     return $sOutputHtml;
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:33,代码来源:BxBaseMailBox.php


示例12: getProcessingRows

 /**
  * Function will generate received rows ;
  *
  * @return  : Html presentation data ;
  */
 function getProcessingRows($bShowEmpty = true)
 {
     global $oSysTemplate, $site, $oFunctions;
     // ** init some needed variables ;
     $sPageContent = $sActionsList = $sSettings = '';
     $bShowSettings = false;
     $aRows = array();
     $sEmptyMessage = '_Empty';
     $sRowsTemplName = $this->aUsedTemplates['communicator_page'];
     $sJsObject = $this->_getJsObject();
     // define the member's nickname;
     $sMemberNickName = getNickName($this->aCommunicatorSettings['member_id']);
     // all primary language's keys ;
     $aLanguageKeys = array('author' => _t('_Author'), 'type' => _t('_Type'), 'date' => _t('_Date'), 'click_sort' => _t('_Click to sort'), 'from_me' => _t('_From') . ' ' . $sMemberNickName, 'to_me' => _t('_To') . ' ' . $sMemberNickName, 'accept' => _t('_sys_cnts_btn_fr_accept'), 'reject' => _t('_sys_cnts_btn_fr_reject'), 'delete' => _t('_Delete'), 'back_invite' => _t('_Back Invite'), 'fave' => _t('_sys_cnts_btn_fave'), 'visitor' => _t('_Visitor'), 'unblock' => _t('_Unblock'), 'block' => _t('_Block'), 'select' => _t('_Select'), 'all' => _t('_All'), 'none' => _t('_None'), 'read' => _t('_Read'), 'unread' => _t('_Unread'));
     // get all requests from DB ;
     switch ($this->aCommunicatorSettings['communicator_mode']) {
         case 'friends_requests':
             $sEmptyMessage = '_sys_cnts_msg_fr_empty';
             $sRowsTemplName = $this->aUsedTemplates['communicator_page_fr'];
             $aTypes = array('from' => _t('_MEMBERS_INVITE_YOU_FRIENDLIST'), 'to' => _t('_MEMBERS_YOU_INVITED_FRIENDLIST'));
             $aRows = $this->getRequests('sys_friend_list', $aTypes, ' AND `sys_friend_list`.`Check` = 0 ');
             break;
         case 'hotlist_requests':
             $aTypes = array('from' => _t('_MEMBERS_YOU_HOTLISTED'), 'to' => _t('_MEMBERS_YOU_HOTLISTED_BY'));
             $aRows = $this->getRequests('sys_fave_list', $aTypes);
             break;
         case 'greeting_requests':
             $aTypes = array('from' => _t('_MEMBERS_YOU_KISSED'), 'to' => _t('_MEMBERS_YOU_KISSED_BY'), 'specific_key' => '_N times');
             $aRows = $this->getRequests('sys_greetings', $aTypes, null, 'Number');
             break;
         case 'blocks_requests':
             $aTypes = array('from' => _t('_MEMBERS_YOU_BLOCKLISTED'), 'to' => _t('_MEMBERS_YOU_BLOCKLISTED_BY'));
             $aRows = $this->getRequests('sys_block_list', $aTypes);
             break;
         case 'friends_list':
             $aTypes = array('from' => _t('_Friend list'), 'to' => _t('_Friend list'));
             $aRows = $this->getRequests('sys_friend_list', $aTypes, ' AND `sys_friend_list`.`Check` = 1 OR ( `sys_friend_list`.`ID` = ' . $this->aCommunicatorSettings['member_id'] . ' AND `sys_friend_list`.`Check` = 1 )');
             break;
         default:
             $aTypes = array('from' => _t('_MEMBERS_INVITE_YOU_FRIENDLIST'), 'to' => _t('_MEMBERS_YOU_INVITED_FRIENDLIST'));
             $aRows = $this->getRequests('sys_friend_list', $aTypes, ' AND `sys_friend_list`.`Check` = 0 ');
     }
     if (empty($aRows) && !$bShowEmpty) {
         return '';
     }
     // ** Generate the page's pagination ;
     // fill array with all necessary `get` parameters ;
     $aNeededParameters = array('communicator_mode', 'person_switcher', 'sorting');
     // collect the page's URL ;
     $sRequest = BX_DOL_URL_ROOT . 'communicator.php?action=get_page';
     // add additional parameters ;
     foreach ($aNeededParameters as $sKey) {
         $sRequest .= (array_key_exists($sKey, $this->aCommunicatorSettings) and $this->aCommunicatorSettings[$sKey]) ? '&' . $sKey . '=' . $this->aCommunicatorSettings[$sKey] : null;
     }
     $sCuttedUrl = $sRequest;
     $sRequest .= '&page={page}&per_page={per_page}';
     // create  the pagination object ;
     $oPaginate = new BxDolPaginate(array('page_url' => $sRequest, 'count' => $this->iTotalRequestsCount, 'per_page' => $this->aCommunicatorSettings['per_page'], 'sorting' => $this->aCommunicatorSettings['sorting'], 'page' => $this->aCommunicatorSettings['page'], 'per_page_changer' => false, 'page_reloader' => true, 'on_change_page' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".getPaginatePage('{$sRequest}')", 'on_change_per_page' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".getPage(this.value, '{$sCuttedUrl}')"));
     $sPagination = $oPaginate->getPaginate();
     // process received requests;
     if ($aRows) {
         $iIndex = 1;
         foreach ($aRows as $iKey => $aItems) {
             // if member not a visitor ;
             if ($aItems['member_id']) {
                 // ** some member's information ;
                 $aProfileInfo = getProfileInfo($aItems['member_id']);
                 // member's Icon ;
                 $sMemberIcon = get_member_thumbnail($aProfileInfo['ID'], 'left', $this->aCommunicatorSettings['communicator_mode'] != 'friends_requests');
                 // member's profile location ;
                 $sMemberLocation = getProfileLink($aProfileInfo['ID']);
                 // member's nickname ;
                 $sMemberNickName = getNickName($aProfileInfo['ID']);
                 // define the member's age ;
                 $sMemberAge = $aProfileInfo['DateOfBirth'] != "0000-00-00" ? _t("_y/o", age($aProfileInfo['DateOfBirth'])) : null;
                 // define the member's country, sex, etc ... ;
                 $sMemberCountry = $aProfileInfo['Country'];
                 $sMemberFlag = $site['flags'] . strtolower($sMemberCountry) . $this->sMembersFlagExtension;
                 $sMemberSexImg = $oFunctions->genSexIcon($aProfileInfo['Sex']);
                 if ($sMemberCountry) {
                     $sMemberCountryFlag = '<img src="' . $sMemberFlag . '" alt="' . $sMemberCountry . '" />';
                 }
                 $iMemberMutualFriends = getMutualFriendsCount($aItems['member_id'], getLoggedId());
             } else {
                 // ** if it's a visitor
                 // member's Icon ;
                 $sMemberIcon = $aLanguageKeys['visitor'];
                 // member's profile location ;
                 $sMemberLocation = null;
                 $sMemberSexImg = null;
                 $sMemberAge = null;
                 $sMemberCountryFlag = null;
                 $sMemberCountry = null;
             }
             $aProcessedRows[] = array('js_object' => $sJsObject, 'row_value' => $aItems['member_id'], 'member_icon' => $sMemberIcon, 'member_nick_name' => $sMemberNickName, 'member_location' => $sMemberLocation ? '<a href="' . $sMemberLocation . '">' . $sMemberNickName . '</a>' : '', 'member_sex_img' => $sMemberSexImg ? ' <img src="' . $sMemberSexImg . '" alt="' . $aProfileInfo['Sex'] . '" />' : '', 'member_age' => $sMemberAge, 'member_flag' => $sMemberCountryFlag, 'member_country' => $sMemberCountry, 'member_mutual_friends' => _t('_sys_cnts_txt_mutual_friends', $iMemberMutualFriends > 0 ? $iMemberMutualFriends : _t('_sys_cnts_txt_mf_no')), 'type' => $aItems['type'], 'message_date' => $aItems['date']);
//.........这里部分代码省略.........
开发者ID:noormcs,项目名称:studoro,代码行数:101,代码来源:BxBaseCommunicator.php


示例13: PageCompGroupMembers

/**
 * page code function
 */
function PageCompGroupMembers()
{
    global $memberID;
    global $groupID;
    global $arrGroup;
    global $site;
    global $oTemplConfig;
    ob_start();
    ?>
		<div class="group_members_pre1">
	<?php 
    $numberMembers = $oTemplConfig->iGroupMembersPreNum;
    $query = "\r\n\t\tSELECT\r\n\t\t\t`GroupsMembers`.`memberID` AS `ID`,\r\n\t\t\t`Profiles`.`NickName`\r\n\t\tFROM `GroupsMembers`, `Profiles`\r\n\t\tWHERE\r\n\t\t\t`GroupsMembers`.`groupID` = {$groupID} AND\r\n\t\t\t`GroupsMembers`.`Status` = 'Active' AND\r\n\t\t\t`GroupsMembers`.`memberID` = `Profiles`.`ID`\r\n\t\tORDER BY RAND()\r\n\t\tLIMIT {$numberMembers}\r\n\t;";
    $resMembers = db_res($query);
    while ($arrMember = mysql_fetch_assoc($resMembers)) {
        ?>
			<div class="group_member_pre">
				<?php 
        echo get_member_thumbnail($arrMember['ID'], 'none');
        ?>
				<a href="<?php 
        echo getProfileLink($arrMember['ID']);
        ?>
"><?php 
        echo htmlspecialchars_adv($arrMember['NickName']);
        ?>
</a>
			</div>
		<?php 
    }
    ?>
		</div>
		<div class="clear_both"></div>
		<div class="view_all_link">
			<a href="<?php 
    echo $site['url'];
    ?>
group_members.php?ID=<?php 
    echo $groupID;
    ?>
"><?php 
    echo _t("_View all members");
    ?>
</a>
		</div>
	<?php 
    $ret = ob_get_clean();
    if ($arrGroup['creatorID'] == $memberID) {
        $creatorEditMembers = "<div class=\"caption_item\"><a href=\"{$site['url']}group_members.php?mode=edit&amp;ID={$groupID}\">" . _t('_Edit members') . "</a></div>";
    } else {
        $creatorEditMembers = '';
    }
    return DesignBoxContent(_t("_Group members"), $ret, 1, $creatorEditMembers);
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:57,代码来源:group.php


示例14: PrintSearhResult

 /**
  * @description : function will generate profile block (used the profile template );
  * @return 		: Html presentation data ;
  */
 function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)
 {
     global $site;
     global $aPreValues;
     $iVisitorID = getLoggedId();
     $bExtMode = !empty($_GET['mode']) && $_GET['mode'] == 'extended' || !empty($_GET['search_result_mode']) && $_GET['search_result_mode'] == 'ext';
     $enable_zodiac = $bExtMode ? getParam('zodiac') : false;
     if ($bExtMode && count($this->aAllovedAvtionsOfVisitor) == 0) {
         //like init
         $aCheckGreet = checkAction($iVisitorID, ACTION_ID_SEND_VKISS);
         $this->aAllovedAvtionsOfVisitor['GREET'] = $aCheckGreet;
         $aCheckMess = checkAction($iVisitorID, ACTION_ID_SEND_MESSAGE);
         $this->aAllovedAvtionsOfVisitor['MESS'] = $aCheckMess;
     }
     $aOnline = array();
     if (isset($aProfileInfo['is_online'])) {
         $aOnline['is_online'] = $aProfileInfo['is_online'];
     }
     $sProfileThumb = get_member_thumbnail($aProfileInfo['ID'], 'none', !$bExtMode, 'visitor', $aOnline);
     // profile Nick/Age/Sex etc.
     $sAgeStr = $aProfileInfo['DateOfBirth'] != "0000-00-00" ? _t("_y/o", age($aProfileInfo['DateOfBirth'])) . ' ' : "";
     $sAgeOnly = $aProfileInfo['DateOfBirth'] != "0000-00-00" ? age($aProfileInfo['DateOfBirth']) : "";
     $y_o_sex = $sAgeStr;
     $city = _t("_City") . ": " . process_line_output($aProfileInfo['City']);
     $country = $aProfileInfo['Country'] ? _t("_Country") . ": " . _t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']) . '&nbsp;<img src="' . ($site['flags'] . strtolower($aProfileInfo['Country'])) . '.gif" alt="flag" />' : '';
     // country flag
     $sFlag = $aProfileInfo['Country'] != '' ? '&nbsp;<img src="' . ($site['flags'] . strtolower($aProfileInfo['Country'])) . '.gif" alt="flag" />' : '';
     $sCityName = $aProfileInfo['City'] ? process_line_output($aProfileInfo['City']) . ', ' : null;
     if (!empty($aProfileInfo['Country'])) {
         $city_con = $sFlag . ' ' . $sCityName . _t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']);
     } else {
         $city_con = '';
     }
     $id = _t("_ID") . ": " . $aProfileInfo['ID'];
     // description
     $i_am = $i_am2 = _t("_I am");
     $i_am_desc = trim(strip_tags($aProfileInfo['DescriptionMe']));
     if (mb_strlen($i_am_desc) > 130) {
         $i_am_desc = mb_substr($i_am_desc, 0, 130) . '...';
     }
     $you_are = $you_are2 = _t("_You are");
     $sCity = $aProfileInfo['City'];
     //--- Greeting start ---//
     if ($bExtMode && $aAllovedAvtionsOfVisitor['GREET'][CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED && $iVisitorID != $aProfileInfo['ID']) {
         $iKissIcon = getTemplateIcon('action_greet_small.gif');
         $sAiKiss = "<img alt=\"" . _t("_Greet") . "\" class=\"links_image\" name=i01{$aProfileInfo['ID']} src=\"" . $iKissIcon . "\" />";
         $al_kiss = '<a target=_blank href="greet.php?sendto=' . $aProfileInfo[ID] . '"';
         $al_kiss .= ">";
         $al_kiss = "<span class=\"links_span\">" . $sAiKiss . $al_kiss . _t("_Greet") . "</a></span>";
     } else {
         $al_kiss = '';
     }
     //--- Greeting end ---//
     //--- Contact start ---//
     if ($bExtMode && $aAllovedAvtionsOfVisitor['MESS'][CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED && $iVisitorID != $aProfileInfo['ID']) {
         $sSendMsgIcon = getTemplateIcon('action_send_small.gif');
         $ai_sendmsg = "<img alt=\"" . _t("_SEND_MESSAGE") . "\" name=i02{$aProfileInfo['ID']} src=\"{$sSendMsgIcon}\" class=\"links_image\" />";
         $al_sendmsg = "<a href=\"compose.php?ID={$aProfileInfo['ID']}\"";
         $al_sendmsg .= ">";
         $al_sendmsg = "<span class=\"links_span\">" . $ai_sendmsg . $al_sendmsg . _t("_Contact") . "</a></span>";
     } else {
         $al_sendmsg = '';
     }
     //--- Contact end ---//
     $more = '<a href="' . getProfileLink($aProfileInfo['ID']) . '" target="_blank">';
     $more .= '<img src="' . $site['icons'] . 'desc_more.gif" alt="' . _t('_more') . '" />';
     $more .= '</a>';
     $sProfile2ASc1 = $sProfile2ASc2 = $sProfile2Nick = $sProfile2AgeSex = $sProfile2CityCon = $sProfile2Desc = $sProfile2Match = '';
     if ($aCoupleInfo) {
         // profile Nick/Age/Sex etc.
         $sNickName2 = '<a href="' . getProfileLink($aCoupleInfo['ID']) . '">' . $aCoupleInfo['NickName'] . '</a>';
         $sAgeStr2 = $aCoupleInfo['DateOfBirth'] != "0000-00-00" ? _t("_y/o", age($aCoupleInfo['DateOfBirth'])) . ' ' : "";
         $sAgeOnly2 = $aCoupleInfo['DateOfBirth'] != "0000-00-00" ? age($aCoupleInfo['DateOfBirth']) : "";
         $y_o_sex2 = $sAgeStr2;
         // . _t("_".$aCoupleInfo['Sex']);
         $city2 = _t("_City") . ": " . process_line_output($aCoupleInfo['City']);
         $country2 = _t("_Country") . ": " . _t($aPreValues['Country'][$aCoupleInfo['Country']]['LKey']) . '&nbsp;<img src="' . ($site['flags'] . strtolower($aCoupleInfo['Country'])) . '.gif" alt="flag" />';
         $city_con2 = '&nbsp;&nbsp;' . $sFlag . ' ' . process_line_output($aCoupleInfo['City']) . ", " . _t($aPreValues['Country'][$aCoupleInfo['Country']]['LKey']);
         $city_con2 = preg_replace("/,\$/", '', trim($city_con2));
         $id2 = _t("_ID") . ": " . $aCoupleInfo['ID'];
         // description
         $i_am = $i_am2 = _t("_I am");
         $i_am_desc2 = trim(strip_tags($aCoupleInfo['DescriptionMe']));
         if (mb_strlen($i_am_desc2) > 130) {
             $i_am_desc2 = mb_substr($i_am_desc2, 0, 130) . '...';
         }
         $sCity2 = $aCoupleInfo['City'];
         $sProfile2ASc1 = 'float:left;width:31%;margin-right:10px;';
         $sProfile2ASc2 = 'float:left;width:31%;display:block;';
         $sProfile2Nick = $sNickName2;
         $sProfile2AgeSex = $y_o_sex2;
         $sProfile2CityCon = $city_con2;
         $sProfile2Desc = $i_am_desc2;
         $sProfile2Match = $bExtMode && isLogged() && $iVisitorID != $aCoupleInfo['ID'] && getParam('view_match_percent') ? $GLOBALS['oFunctions']->getProfileMatch($iVisitorID, $aCoupleInfo['ID']) : '';
     } else {
         $sProfile2ASc2 = 'display:none;';
//.........这里部分代码省略.........
开发者ID:dalinhuang,项目名称:shopexts,代码行数:101,代码来源:BxBaseSearchProfile.php


示例15: displaySearchUnit

 function displaySearchUnit($aData)
 {
     global $oSysTemplate;
     return $oSysTemplate->parseHtmlByContent($this->_sSearchUnitTmpl, array('action' => 'add', 'member_id' => $aData['id'], 'member_thumbnail' => get_member_thumbnail($aData['id'], 'none', true)));
 }
开发者ID:noormcs,项目名称:studoro,代码行数:5,代码来源:BxDolPrivacySearch.php


示例16: displayFriendAccept

 function displayFriendAccept($aEvent)
 {
     $aOwner = $this->_oDb->getUser($aEvent['owner_id']);
     $aFriend = $this->_oDb->getUser($aEvent['object_id']);
     if (empty($aOwner) || empty($aFriend)) {
         return array('perform_delete' => true);
     }
     if ($aOwner['status'] != 'Active' || $aFriend['status'] != 'Active') {
         return "";
     }
     $sOwner = getNickName((int) $aEvent['owner_id']);
     $iFriend = (int) $aFriend['id'];
     $sFriend = getNickName($iFriend);
     return array('title' => $sOwner . ' ' . _t('_wall_friends_with') . ' ' . $aFriend['username'], 'description' => '', 'content' => $this->parseHtmlByName('f_accept.html', array('cpt_user_name' => $sOwner, 'cpt_friend_url' => getProfileLink($aFriend['id']), 'cpt_friend_name' => $sFriend, 'cnt_friend' => get_member_thumbnail($iFriend, 'none', true), 'post_id' => $aEvent['id'])));
 }
开发者ID:noormcs,项目名称:studoro,代码行数:15,代码来源:BxWallTemplate.php


示例17: actionGetThumbnail

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_member_url函数代码示例发布时间:2022-05-15
下一篇:
PHP get_member_level_select函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap