params; if ( $part == '' ) { // Profile view: //positions: head left middle right tabmain underall $this->wLeft = isset( $this->userViewTabs['cb_left'] ) ? 100 : 0; $this->wMiddle = isset( $this->userViewTabs['cb_middle'] ) ? 100 : 0; $this->wRight = isset( $this->userViewTabs['cb_right'] ) ? 100 : 0; $this->nCols = intval( ( $this->wLeft + $this->wMiddle + $this->wRight ) / 100 ); switch ( $this->nCols ) { case 0 : case 1 : break; case 2 : $this->wLeft = $this->wLeft ? intval( $ueConfig['left2colsWidth'] ) - 1 : 0; $this->wMiddle = $this->wMiddle ? ( $this->wLeft ? 100 - intval( $ueConfig['left2colsWidth'] ) - 1 : intval( $ueConfig['left2colsWidth'] ) - 1 ) : 0; $this->wRight = $this->wRight ? 100 - intval( $ueConfig['left2colsWidth'] ) - 1 : 0; break; case 3 : $this->wLeft = intval( $ueConfig['left3colsWidth'] ) - 1; $this->wMiddle = 100 - intval( $ueConfig['left3colsWidth'] ) - intval( $ueConfig['right3colsWidth'] ) - 1; $this->wRight = intval( $ueConfig['right3colsWidth'] ) - 1; break; } } // else: Edit profile view: nothing to setup return parent::draw( $part ); } /** * Renders by ECHO the User Profile view * here typically if you prefer to include a view-type php-html file you would include it. */ function _render( ) { /* // add any html in html head section: global $_CB_framework; $_CB_framework->document->addHeadStyleSheet( selectTemplate() . 'file.css' ); $_CB_framework->document->addHeadStyleInline( 'input { border: red 1px solid; }'); */ // Display "head" tabs: (Menu + shortest connection path / Degree of relationship + Uname Profile Page) if ( isset( $this->userViewTabs['cb_head'] ) ) { echo '
'; echo $this->userViewTabs['cb_head']; echo '
'; } if ( $this->nCols != 0 ) { echo "\n\t\t
"; // Display "Left" tabs if ( isset( $this->userViewTabs['cb_left'] ) ) { echo "\n\t\t\t
wLeft . "%;\">"; echo $this->userViewTabs['cb_left']; echo '
'; } // Display "Middle" tabs (User Avatar/Image): if ( isset( $this->userViewTabs['cb_middle'] ) ) { echo "\n\t\t\t
wMiddle . "%;\">"; echo $this->userViewTabs['cb_middle']; echo '
'; } // Display "Right" tabs (User Status): if ( isset( $this->userViewTabs['cb_right'] ) ) { echo "\n\t\t\t
wRight . "%;\">"; echo $this->userViewTabs['cb_right']; echo '
'; } echo '
'; } if ( isset( $this->userViewTabs['cb_tabmain'] ) ) { echo "\n\t\t
"; echo $this->userViewTabs['cb_tabmain']; echo '
'; } if ( isset( $this->userViewTabs['cb_underall'] ) ) { echo "\n\t\t
"; echo $this->userViewTabs['cb_underall']; echo '
'; } // New CB 1.2 grid layout: $line = null; $tabsIdxes = array_keys( $this->userViewTabs ); foreach ( $tabsIdxes as $k => $v ) { if ( $v && $v[0] == 'L' ) { $L = $v[1]; if ( $line === null ) { // new line: mark begin: $line = $k; } if ( ! ( isset( $tabsIdxes[$k + 1] ) && ( $tabsIdxes[$k + 1][1] == $L ) ) ) { // line is now complete, next entry, if exists, is another line: generate line: $cols = $k - $line + 1; $width = 100; $step = floor( $width / $cols ); echo "\n\t\t" . '
'; for ( $i = $line ; $i <= $k ; $i++ ) { if ( $i == $k ) { $step = $width - ( ( $cols - 1 ) * $step ); } echo "\n\t\t" . '
'; echo $this->userViewTabs[$tabsIdxes[$i]]; echo '
'; } echo '
'; $line = null; } } } } /** * Renders by ECHO the user profile edit view * here typically if you prefer to include a view-type php-html file you would include it. */ function _renderEdit( ) { echo $this->tabcontent; ?>
bottomIcons; ?>
moduleContent ) { if ( $this->introMessage ) { ?>
loginOrRegisterTitle; ?>
introMessage; ?>
' . _LOGIN_TITLE . '
'; echo $this->moduleContent; echo '
'; } ?>
registerTitle; ?>
topIcons ) { echo '
'; echo $this->topIcons; echo '
'; } echo $this->regFormTag; // '' } /** * Renders by ECHO the Registration form view NEW DIVs view: * here typically if you prefer to include a view-type php-html file you would include it. */ function _renderdivs( ) { $this->_renderRegistrationHead(); ?>
introMessage && ( ! $this->moduleContent ) ) { ?>
introMessage; ?>
tabcontent; // outputs conclusion text and different default values: ?>
conclusionMessage ) { echo $this->conclusionMessage; } else { echo " "; } ?>
_renderRegistrationFooter(); } /** * Renders by ECHO the Registration form view OLD TABLE view * here typically if you prefer to include a view-type php-html file you would include it. */ function _render( ) { $this->_renderRegistrationHead(); ?> introMessage && ( ! $this->moduleContent ) ) { ?> tabcontent; // outputs conclusion text and different default values: ?>
introMessage; ?>
conclusionMessage ) { echo $this->conclusionMessage; } else { echo " "; } ?>
_renderRegistrationFooter(); } /** * Renders by ECHO the Registration form view * here typically if you prefer to include a view-type php-html file you would include it. */ function _renderRegistrationFooter( ) { echo ''; if ( $this->bottomIcons ) { echo '
'; echo $this->bottomIcons; echo '
'; } echo '
'; if ( $this->moduleContent ) { echo '
'; } echo "
"; } } // class CBProfileView_default /** * VIEW: User profile view class * */ class CBListView_html_default extends cbListView { /** * Renders by ECHO the list header view * here typically if you prefer to include a view-type php-html file you would include it. */ function _renderHead( ) { global $_CB_framework; ?>
lists ) > 0 ) || $this->searchTabContent ) { ?>
lists ) > 0 ) { foreach ( $this->lists as $kname => $ncontent ) { ?>
searchTabContent ) { if ( ! $this->searchResultDisplaying ) { ?>
' . _UE_LIST_ALL . '
'; } } ?>
listDescription ) ) { // to remove description from front-end display as was before CB 1.2: change TRUE to FALSE. // List description: ?>
listDescription; ?>
totalIsAllUsers ) { echo $_CB_framework->getCfg( 'sitename' ) . " " . _UE_HAS . " " . $this->total . " " . _UE_USERS; } else { echo "" . $this->total . " " . _UE_USERPENDAPPRACTION . ":"; } ?>
searchTabContent ) { ?>
searchTabContent; ?>
searchResultsTitleHtml ) { ?>
searchResultsTitleHtml; ?>

columns ); foreach ( $this->columns as $column ) { echo "\t\t\t\n"; } ?> users ) && count( $this->users ) > 0 ) { foreach ( $this->users as $userIdx => $user) { $class = "sectiontableentry" . ( 1 + ( $i % 2 ) ); // evenodd class if ( $this->allow_profilelink ) { $style = "style=\"cursor:hand;cursor:pointer;\""; $style .= " id=\"cbU".$i."\"" ; } else { $style = ""; } if ( $user->banned ) { echo "\t\t\n"; } echo "\t\t\n"; foreach ( array_keys( $this->columns ) as $colIdx ) { echo "\t\t\t\n"; } echo "\t\t\n"; $i++; } } else { echo "\t\t\n"; } ?>
" . $column->titleRendered . "
"._UE_BANNEDUSER." ("._UE_VISIBLE_ONLY_MODERATOR.") :
" . $this->_getUserListCell( $this->tableContent[$userIdx][$colIdx] ) . "\t\t\t
"._UE_NO_USERS_IN_LIST."

value !== null ) { if ( $fieldView->title ) { $title = '' . $fieldView->title . ':' . ' '; } else { $title = ''; } $html[] = '
' . $title . '' . $fieldView->value . '' . '
'; } } return "\n\t\t\t\t" . implode( "\n\t\t\t\t", $html ) . "\n"; } } ?>