Hi all
When members upload their profile photo but don't click on "make primary", their avatar doesn't show in the members photo gallery. I have tried to fix the problem by using the following code from Mrpowless, but it doesn't seen to work for me.
Any thoughts?
Thanks and happy day.
******************
primary photo fix
13.12.2008
1) Open filename : inc/classes/BxDolMedia.php
2) Look in : function insertMediaToDb( $sFileName )
3) After this line :
if( 0 < $iResult )
{
Insert this :
// START bug fixed -- first photo upload make primary
if ( $this -> aMedia['0']['PrimPhoto'] == 0 )
{
$iLastID = mysql_insert_id();
$this -> oMediaQuery -> setPrimaryPhoto( $this -> iProfileID, $iLastID );
$this -> aMedia['0']['PrimPhoto'] = $iLastID;
$this -> iMediaCount = $this -> iMediaCount + 1;
}
// END bug fixed -- first photo upload make primary




News