How to move photo block to center 6.1
If you wanna move the main photo block to center then open:
templates/base/scripts/bxbaseprofileview.php
back it up and lets try it out!
In : function showBlockPhoto( $iCol, $bNoDB = false )
find:
if( $iCol == 1 ) { <<<change 1 to 2
and:
if( $this -> _aProfile['Couple'] && $iCol != 1 ) { <<also change 1 to 2
save and go see
To fix the third picture block popping up use junto's function open templates/base/scripts/bxbaseprofileview.php and replace the whole function bold is added:
function showBlockPhoto( $iCol, $bNoDB = false )
{
if( $iCol == 1 ) {
$iPID = $this -> _iProfileID;
$sNickName = $this -> _aProfile['NickName'];
} elseif( $iCol == 2 ) {
if( !$this -> _aProfile['Couple'] )
return;
} elseif( $iCol == 3 ) {
if( !$this -> _aProfile['Couple'] )
return;
$iPID = $this -> _iProfileID;
//$iPID = (int)$this -> _aProfile['Couple'];
$sNickName = $this -> _aProfile['NickName'] . '(2)';
}
$oPhotos = new ProfilePhotos( $iPID );
$oPhotos -> getActiveMediaArray();
if( $this -> _aProfile['Couple'] && $iCol != 1 ) {
$aCoupleInfo = getProfileInfo($this->_aProfile['Couple']);
if ($aCoupleInfo['Picture']==0) {
$oPhotos = new ProfilePhotos( $this->_aProfile['Couple'] );
$oPhotos -> getActiveMediaArray();
}
$ret = $oPhotos -> getMediaBlock($aCoupleInfo['PrimPhoto'], true);
} else {
$ret = $oPhotos -> getMediaBlock(0);
}
if ($bNoDB) {
return DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
} else {
echo DesignBoxContent( _t( '_PROFILE Photos', $sNickName ), $ret, 1 );
}
}
Unfortunately, I'm experiencing 6.1 displaying two photo blocks on each profile. One is labeled "Nickname Photos" and the second simply "Photos". Your tip moves the "Nickname Photos" block, but the additional block simply moves itself to the top of another column! Any thoughts?
Additionally, I noticed when I attempt to set a new default profile photo, it will not display in the profile and the generic icons disappear from both profile blocks see more
I have been back and forth with Mrpowless several times today, working on this exact problem. I am considering just deleting Dolphin from my server and reinstalling, but I don't want to do that if it won't help.
He proposed to me what seemed to be a viable solution, resetting the "PageCompose" table see more
Go to line 197 :
It looks like this :
---
function showBlockPhoto( $iCol, $bNoDB = false )
{
if( $iCol == 1 ) {
$iPID = $this -> _iProfileID;
$sNickName = $this -> _aProfile['NickName'];
} elseif( $iCol == 2 ) {
if( !$this -> _aProfile['Couple'] )
return;
---
Change it to this:
---
function showBlockPhoto( $iCol, $bNoDB = false )
{
if( $iCol == 1 ) {
$iPID = $this -> _iProfileID;
see more
i have profile page FIRST column at 67%,
and SECOND column at 33%...
and on first column is OK pics, but in second column there is pics cutted on the right side, because second column is 33%.
is there way to change it, so i get SECOND pics on FIRST column?
i asked AndreyP and he says to me i must change it on
templates\base\scripts\BxBaseProfileView.php
function showBlockPhoto( $iCol, $bNoDB = false )
but i don't know what see more
Any chance you might be able to make this a video tutorial as well so we can see the final result after all is done. I have tried to do this from what you have told us but I am not getting any results. All I need is one pic for a couples profile not two. I also don't need all the same duplicate fields for the couples profiles. Ex: zip code,
Thanks,
Tom