HomeUnityBlogs
 
 
johno

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

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?
bad
-2
good
 
 

Comments

zmoos
zmoos 51 days agocomment permalink
 
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.
 
bad
0
good
 
 
johno
johno 51 days agocomment permalink
 
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
 
bad
0
good
 
 
LHAdmin
LHAdmin 51 days agocomment permalink
 
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.
 
bad
0
good
 
 
AndreyP
AndreyP 51 days agocomment permalink
 
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 ($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 );
}
}
}
 
bad
0
good
 
 
LHAdmin
LHAdmin 50 days agocomment permalink
 
Bingo! Outstanding, sir. Thanks.
 
bad
0
good
 
 
gohanz
gohanz 50 days agocomment permalink
 
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!!
 
bad
0
good
 
 
LHAdmin
LHAdmin 50 days agocomment permalink
 
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)
 
bad
0
good
 
 
famarx
famarx(positive) 7 days agocomment permalink
 
Thanks a lot guys!
 
bad
0
good
 
 


Post a Comment

Please login to post a comment.

This Post
 
 
johno Blog
All Blogs
Found a bug? Have a suggestion? We really value your feedback!
 
© 2008 BoonEx Ltd
ABN 27 127 966 581
 
PET:0.587264060974