hi guys,
any tips on how i can make the default photo album sort of the avatar photo ? So when i upload a photo to the default album it also becomes my avatar ? I know u can set a photo as your avatar so i think it could be possible.
hi guys,
|
well i managed to do a bit of testing and narrowed it down a bit..... in BxPhotosUploader.php just under: if ($bAutoAssign2Profile && $iLastID > 0) {
//Adds this as the avatar Which added the photo i was uploading as the new avatar. However this only works with the Regular / Simple uploader but actually hangs after upload is complete. Also it does not work with the flash uploader at all, just returns a error 500. |
anybody ? would appreciate any help on this 1 :) |
I like to have this option too as some of my members just can't figure out to click on Add Avatar to display the avatar but unfortunately I don't know anything to help with the code. Hope fully someone can help. |
well i managed to do a bit of testing and narrowed it down a bit..... in BxPhotosUploader.php just under: if ($bAutoAssign2Profile && $iLastID > 0) {
//Adds this as the avatar
Which added the photo i was uploading as the new avatar. However this only works with the Regular / Simple uploader but actually hangs after upload is complete. Also it does not work with the flash uploader at all, just returns a error 500.
This maybe can help solve your problem regarding "Simple uploader but actually hangs after upload is complete" $aOwnerInfo = getProfileInfo($iAuthorId);
$bAutoAssign2Profile = ($aOwnerInfo['Avatar']==0) ? true : $bAutoAssign2Profile;
$ava_module = BxDolService::call ('avatar', 'make_avatar_from_shared_photo_auto', array ($iLastID));
if ($bAutoAssign2Profile && $iLastID > 0) {
$this->setPrimarySharedPhoto($iLastID, $iAuthorId);
serviceMakeAvatarFromSharedPhotoAuto($iLastID);
createUserDataFile($iAuthorId);
}
|
Current Dolphin allows using profile photo as the avatar, no changes in code needed. Just go to admin and choose which you want. Geeks, making the world a better place |