Profile arrangement

SoOooOo im trying to get the the profile info like nickname, headline, age, etc to show up inside the action window beside profile pic show up. Here's where i'm confused.

im in '/templates/base/scripts/BxBaseProfileView.php'

and i see on on line 83 the code:

'function getBlockCode_Topest($iColumn, $sContent) {
return '<div id="PFP" class="page_block_container">' . $this->oProfileV->showBlockPhoto($iColumn, true) . '</div>'</div>';
}

which returns the action block with the profile picture (i have the profile gallery feature on)

i added 2 dividers into the string as so:

function getBlockCode_Topest($iColumn, $sContent) {
return '<div id="PFP" class="page_block_container"><div class="PFPPBlock">' . $this->oProfileV->showBlockPhoto($iColumn, true) . '</div>' . $this->oProfileV->showBlockPFBlock('', $sContent, true) . '</div>';
}

i see showBlockPFBlock pulls the info and display it into to tables and so forth: heres the code:

function showBlockPFBlock( $sCaption, $sContent, $bNoDB = false ) {
$iBlockID = (int)$sContent;
if( !isset( $this -> aPFBlocks[$iBlockID] ) or empty( $this -> aPFBlocks[$iBlockID]['Items'] ) )
return '';
$aItems = $this -> aPFBlocks[$iBlockID]['Items'];


$sRet = '<table class="profile_info_block" cellspacing="0" cellpadding="1">';

foreach( $aItems as $aItem ) {
$sValue1 = $this -> oPF -> getViewableValue( $aItem, $this -> _aProfile[ $aItem['Name'] ] );
if( !$sValue1 ) //if empty, do not draw
continue;

if($aItem['Name'] == "DateOfBirth")
{

$sRet .= '<tr>';
$sRet .=         '<td class="profile_info_label">' . _t( "_Age" ) . ':</td>';

$ageValue1 = age($sValue1);
if( $this -> bCouple ) {
if( in_array( $aItem['Name'], $this -> aCoupleMutualItems ) ) {
$sRet .= '<td class="profile_info_value" colspan="2">' . $ageValue1 . '</td>';
} else {
$sValue2 = $this -> oPF -> getViewableValue( $aItem, $this -> _aCouple[ $aItem['Name'] ] );

$ageValue2 = age($sValue2);

$sRet .= '<td class="profile_info_value1">' . $ageValue1 . '</td>';
$sRet .= '<td class="profile_info_value2">' . $ageValue2 . '</td>';
}
} else {
$sRet .=     '<td class="profile_info_value" >' . $ageValue1 . '</td></div>';
}

}else{

$sRet .= '<tr>';
$sRet .=         '<td class="profile_info_label">' . htmlspecialchars( _t( $aItem['Caption'] ) ) . ':</td>';

if( $this -> bCouple ) {
if( in_array( $aItem['Name'], $this -> aCoupleMutualItems ) ) {
$sRet .= '<td class="profile_info_value" colspan="2">' . $sValue1 . '</td>';
} else {
$sValue2 = $this -> oPF -> getViewableValue( $aItem, $this -> _aCouple[ $aItem['Name'] ] );

$sRet .= '<td class="profile_info_value1">' . $sValue1 . '</td>';
$sRet .= '<td class="profile_info_value2">' . $sValue2 . '</td>';
}
} else {
$sRet .=     '<td class="profile_info_value" >' . $sValue1 . '</td>';
}
}
$sRet .= '</tr>';
}

$sRet .= '</table>';

if ($bNoDB) {
return $sRet;
} else {
echo DesignBoxContent( _t($sCaption), $sRet, 1 );
}
}

now what im trying to do is just pull the main info (Nickname, headline, member ID, status, age, city and state) which i under General info block which i called the caption "Intro".

how can i just pull the info from the "Intro" block to put in the div beside the profile pic that i made for it?

$this->oProfileV->showBlockPFBlock('', ***what do i put here to call just the "Intro" caption and its info?*** $sContent, true)

will it work this way? plz heeelllppppp

Quote · 19 Nov 2009

check out a profile on my page so u can see where i'm at: uknoe.com/MRNK

Quote · 19 Nov 2009

Any Ideas or insight on how the block structer is built? basically all im trying to do is move the general info block into the profile photo block like the ones on 4ppl.com (ex. http://www.4ppl.com/long_4u_only)

someone plzzz help

Quote · 19 Nov 2009

I figured it out. For people who may be looking for the same result this is what i did on my test server:

First

move the block that u want to appear beside the profile picture and move it under it.

Next, in BXBaseProfileView (in the script folder under ur template, eg: templates/temp_uni/scripts/)

find the line:

function getBlockCode_Topest($iColumn) {
return '<div class="page_block_container">' . $this->oProfileV->showBlockPhoto($iColumn, true) . '</div>';
}

and switch the div class to whatever name u want

and under general css add that class and add "float:left;" (and any other attribute u seem fit)

next , go to /inc/classes/bxdolpageview.php

and find the line:

function genBlock( $iBlockID, $aBlock, $bAddWrapper = true) {

switch it too:

function genBlock( $iBlockID, $aBlock, $bAddWrapper = false ) {

now go to ur DB (eg. phpmyadmin)

and go to page compose, find the block u want to put beside the picture and set the design box to 2 (one thing i figured out is if you want to add more design boxes make sure u add them into design.inc.php as well)

after that, go to designbox_2.html under ur template folder (not base template)


and add

<div class="disignBoxFirst">
<div class="boxFirstHeader">__title____caption_item__</div>
<div class="boxContent">__designbox_content__</div>
</div>

switchout class="disignBoxFirst" to the class name of ur choice and add it to general.css (and add to it "float:right;" and any other customization u seem fit as well)


(u can switch the other 2 as well for extended customization)


and save

now if designbox_2.html isnt picking it, most likely u have to switch it in ur /inc/db_cached/pageview.inc as well

and it should work.

OH, also

u need to set the profile picture size to smaller than 340x340 (i gotmines at like 200x200) and everything should fit well. I'm typing this on the fly so if u have any issues, plz let me know!

i will be adding it to my site this evening so check out uknoe.com later tonight to see the final result

Quote · 20 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.