Re: Avatar Upload Issues
Don’t know if this was anyone else’s issue, but this was my problem and the solution I found.
PROBLEM: jcrop function wouldn’t work after an avatar was uploaded either on the registration or edit avatar pages within buddypress. The image and thumbnail would show, but there was no crop box to change what was selected for the thumbnail. Very frustrating.
SOLUTION: stupidly simple once I finally found it – for some reason there was no link to the external jcrop javascript file appearing in the header of the pages! (This can be checked by viewing the page source of the problem pages via your browser) To fix this I edited the bp-core-cssjs.php file which is inside the bp-core folder inside buddypress. Right after this line:
`$aspect_ratio = (int) constant( ‘BP_AVATAR_FULL_WIDTH’ ) / (int) constant( ‘BP_AVATAR_FULL_HEIGHT’ ); ?>`
I added:
`<script src="/wp-includes/js/jcrop/jquery.Jcrop.js”>`
And now the crop tool is showing up and everything works perfectly! Note that you may need to change the path to the Jcrop.js file depending on your site setup. Before this I had also downloaded the latest version of jcrop from http://deepliquid.com/content/Jcrop.html and updated it on my site, so I don’t know if that plays in at all or not.
Anyway, don’t know if that helps anyone else, but it did the trick for me so I figured I’d share it just in case.