Profile photo not uploaded when joining site

Title says all.

 

I deleted the avatar module, because ridiculous and not necessary. All the profiles have grey icons now.

New people who want to join, must upload a profile photo, but this photo does not appear when I look in the members section of admin panel. So it isn't uploaded to the database.

New problem or bug ?

Quote · 14 Jan 2013

Photo uploading is disabled for non-active members.

If you turned on premoderation for profiles then photos from join form will not be uploaded. 

Rules → http://www.boonex.com/terms
Quote · 15 Jan 2013

Not good. Profile photo is mandatory but I don't want to activate profiles automatically because I don't need "unwanted" profiles on my site.

Now how to solve this ?

Quote · 15 Jan 2013

You could move the profile photo block off your join form. 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Jan 2013

No MsScott, because I want my members to add a photo so they can't join unrecognized.

There's enough abuse with dating sites, I only want real people on my site who don't hide themselves for 'some' reason, if you understand what I mean.

Quote · 16 Jan 2013

I have worked this out.

I have the php blocks module installed... I forget who created it, but its very useful.

Anyway, I created a block to add:

define('USER_JOIN_PAGE', true);

Just define a constant, simple.

Now, I edit /siteroot/modules/boonex/photos/classes/BxPhotosUploader.php

Find:

function performPhotoUpload($sTmpFile, $aFileInfo, $bAutoAssign2Profile = false, $isMoveUploadedFile = true, $iChangingPhotoID = 0, $iAuthorId = 0)
{
	global $dir;

	$iLastID = -1;

	if (!$iAuthorId)
		$iAuthorId = $this->_iOwnerId;
	$this->oModule = BxDolModule::getInstance('BxPhotosModule');
	// checker for flash uploader
	if (!$this->oModule->_iProfileId)
		$this->oModule->_iProfileId = $this->_iOwnerId;
	if (!$iAuthorId || file_exists($sTmpFile) == false || !$this->oModule->isAllowedAdd())
		return false;

And modify the last If statement like so:

if (!$iAuthorId || file_exists($sTmpFile) == false || ( ! defined('USER_JOIN_PAGE') && !$this->oModule->isAllowedAdd() ))
		return false;

I'll explain the changes. Before, the statement goes like this:

If there is no authorID or the temporary uploaded filed doesnt exist, or the user doesnt have permission to upload, then deny the upload

 

I change it so if they don't have permission to upload, BUT they are on the join page, it allows it.
I hope this helps some people. Cheers. 

Quote · 14 Mar 2013

MYZONE - This did not work for me.

 

annabel - Did you figure out a solution?  I'm having the same issue.

Quote · 7 Apr 2013

i am just throwing out a suggestion - i have noticed on some sites, that if you have not completely filled out your profile edit, you keep getting sent back to pedit.php to do so when logging in - could the same thing be done with the avatar image. If user has no avatar or profile photo, they keep getting sent to the avatar section to upload one.

caredesign.net
Quote · 7 Apr 2013

ok nvm - check this: http://www.boonex.com/forums/topic/Mandatory-Photo-on-Join-2010-06-18.htm

caredesign.net
Quote · 7 Apr 2013

 

ok nvm - check this: http://www.boonex.com/forums/topic/Mandatory-Photo-on-Join-2010-06-18.htm

I have already modified my database so a profile photo (not to be confused with Avatar) is mandatory on join.  A user cannot complete the join process without selecting an image.

But the image does not actually upload into the photos module.

Quote · 7 Apr 2013

I have modified the module to this:

if (!$iAuthorId || file_exists($sTmpFile) == false || ( ! defined('USER_JOIN_PAGE') && !$this->oModule->isAllowedAdd() ))
		return false;

but it still doesn't save a photo when it is uploaded from the join page.

Quote · 7 Apr 2013

I've expirienced more or less the same problem
If you add a photo through the join form, it was not uploaded.

My solution was quite simple
admin panel -> membership levels -> unferified members

The I've allowed those members to upload avatar.

After this, tings worked fine! 

Quote · 17 Apr 2013

Hi 

Could someone help me with this Im having the same problem the photo will not load on join form and everything I have read I do not understand. 

 

 

Thanks

Quote · 2 Dec 2015
 
 
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.