Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • CR
    Participant

    @creay

    I posted this in another thread on the topic, but I thought I would post it here too in case it helps anyone. I don’t know if this was anyone else’s issue, but this was my problem and the solution I found.

    SET UP: Running BuddyPress on a single install (not MU) and using the default BuddyPress theme with an assortment of plugins (but removing all the plugins did not help my problem).

    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.

    Again, don’t know if that helps anyone else, it might have been something quirky in my set up maybe, but it did the trick for me so I figured I’d share it just in case.


    CR
    Participant

    @creay

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar