0) { $iProfId = (int)$_GET['ID']; $aProfileInfo = getProfileInfo($iProfId); $aMemberInfo = getProfileInfo($iMemberId); $aProfileInfo['window_width'] = $oTemplConfig->popUpWindowWidth; $aProfileInfo['window_height'] = $oTemplConfig->popUpWindowHeight; $aProfileInfo['anonym_mode'] = $oTemplConfig->bAnonymousMode; $aProfileInfo['member_pass'] = $aMemberInfo['Password']; $aProfileInfo['member_id'] = $iMemberId; $bDisplayType = ( getParam('enable_new_dhtml_popups')=='on' ) ? 0 : 1; $aProfileInfo['display_type'] = $bDisplayType; $aProfileInfo['url'] = BX_DOL_URL_ROOT; $aProfileInfo['status_message'] = process_line_output($aProfileInfo['UserStatusMessage']); //--- Subscription integration ---// $oSubscription = new BxDolSubscription(); $aButton = $oSubscription->getButton($iMemberId, 'profile', '', $iProfId); $aProfileInfo['sbs_profile_title'] = $aButton['title']; $aProfileInfo['sbs_profile_script'] = $aButton['script']; //--- Subscription integration ---// //--- Check for member/non-member ---// if(isMember()) { $aProfileInfo['cpt_edit'] = _t('_EditProfile'); $aProfileInfo['cpt_send_letter'] = _t('_SendLetter'); $aProfileInfo['cpt_fave'] = _t('_Fave'); $aProfileInfo['cpt_befriend'] = _t('_Befriend'); $aProfileInfo['cpt_greet'] = _t('_Greet'); $aProfileInfo['cpt_get_mail'] = _t('_Get E-mail'); $aProfileInfo['cpt_share'] = _t('_Share'); $aProfileInfo['cpt_report'] = _t('_Report Spam'); $aProfileInfo['cpt_block'] = _t('_Block'); } else { $aProfileInfo['cpt_edit'] = ''; $aProfileInfo['cpt_send_letter'] = ''; $aProfileInfo['cpt_fave'] = ''; $aProfileInfo['cpt_befriend'] = ''; $aProfileInfo['cpt_greet'] = ''; $aProfileInfo['cpt_get_mail'] = ''; $aProfileInfo['cpt_share'] = ''; $aProfileInfo['cpt_report'] = ''; $aProfileInfo['cpt_block'] = ''; } $sProfLink = ''.$aProfileInfo['NickName'].' '; $oUserStatus = new BxDolUserStatusView(); $sUserIcon = $oUserStatus->getStatusIcon($iProfId, $aProfileInfo['UserStatus']); $sUserStatus = $oUserStatus->getStatus($iProfId); $aUnit = array( 'status_pic' => getTemplateIcon($sUserIcon), 'profile_status' => _t('_prof_status', $sProfLink, $sUserStatus), 'profile_status_message' => $aProfileInfo['status_message'], 'profile_actions' => $oFunctions->genObjectsActions( $aProfileInfo, 'Profile'), 'bx_if:profile_status_cond' => array( 'condition' => $aProfileInfo['status'] == 'online', 'content' => array('chat_invite' => $sChat) ) ); $sCloseIcon = getTemplateIcon('reduce.png'); ob_start(); ?>
transBox( $sClose . $oSysTemplate->parseHtmlByName($sTemplate, $aUnit) ); } ?>