Unwanted photo block when adding a 3rd column in profile!!!!!!!!!!!!!!!!!!!!!!!!!!

johno posted 15th of May 2008 in Community Voice. 8 comments.
When adding a new/3rd column in the profile view, the system automatically creates a Photo Block at the top of the 3rd column.  First of all it does not need to be there, second it is affected by the turning on and off of the New Gallery Feature in the Admin Section, when the New Galery Feature is turned on, the block is empty, when it is turned off the block has an Avatar in it.  Not this Block is on the right in the new 3rd column and not the 1st column on the left.  Any ideas on how to fix it?
 
Comments
·Oldest
·Top
Please login to post a comment.
zmoos
Yes, I can confirm this bug as well... i just haven't gotten around to reporting yet. I figured it was SO obvious that it would have been taken care of already. But I guess people aren't using the 3rd column too much yet.

BTW, I'm not sure of people will take your post too seriously since you posted it twice, and with dozens of exclamation points.
johno
zmoos....yeah the posting more than once was actually a genuine mistake as I kept pressing the back button on my browser, each time I did that it posted a NEW post. Then when I went to delete them I was unable to, silly actually, that should be a function. The exclamation marks were my desperate attempt to get someone to notice this as I posted it a few days back and had no response. Anyway I managed to get it fixed from looking at an earlier post. Thanks
LHAdmin
Rats. I'm just new testing that. I brought attention to it before the 6.1.1 patch. I thought (hoped) it had been resolved with the patch. Nope!
I see the membership types aren't being updated correctly still either in the Users list. I hope this gets corrected soon.
AndreyP
To fix make changes in 'BxBaseProfileView.php'
.. look an necessary code:


function showBlockPhoto( $iCol, $bNoDB = false )
{
$iPID = 0;
if( $iCol == 1 ) {
$iPID = $this -> _iProfileID;
$sNickName = $this -> _aProfile['NickName'];
} elseif( $iCol == 2 ) {
if( !$this -> _aProfile['Couple'] )
return;

$iPID = $this -> _iProfileID;
//$iPID = (int)$this -> _aProfile['Couple'];
$sNickName = $this -> _aProfile['NickName'] . '(2)';
}

if see more ($iPID > 0) {
$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 );
}
}
}
LHAdmin
Bingo! Outstanding, sir. Thanks.
gohanz
Hello,

I'm not good in programming, so do I just copy paste the code to replace the existing one? I am also having this problem.

Thanks!!
LHAdmin
If you do a comparison to the code you have now versus what Andry porivded, is there are only 3 lines of code that are different and need to be added are:

$iPID = 0;

if ($iPID > 0) {

} (at the end)
 
 
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.
PET:0.055271863937378