Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I change the Cropping size in profile page?


  • Alexlim91
    Participant

    @alexlim91

    Hi guys,

    Anyone can help me. I want to change the cropping size in profile page, so I can make the size of picture become more bigger.

    By the way, I also want to know how can i change the “site wide activity” name? Because i plan to change other name.

    Thank You

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

  • Henry Wright
    Moderator

    @henrywright

    Check out the Customizing BuddyPress Avatars article. You’ll see that avatar sizes can be set using constants:

    define( 'BP_AVATAR_FULL_WIDTH', 250 );
    define( 'BP_AVATAR_FULL_HEIGHT', 250 );

    Alexlim91
    Participant

    @alexlim91

    Hi Henry, that one is to increase the picture size right? How about the make cropping radius size? How can i make it?


    danbp
    Moderator

    @danbp

    The cropper fits automatically to the defined width and height.
    The idea behind these functionality is to adjust an image, not the cropper.

    If you fix 20 px, the tool will crop to 20. If you fix 600p, the tool will crop to 600.
    Also, the BP cropper is only used for profile, group and blog photo. Avatar default size is 50px, rarely over 150.


    Alexlim91
    Participant

    @alexlim91

    Hi, can you let me know the file name that can change profile size and the crop size because i could found the file in my file manager.


    danbp
    Moderator

    @danbp

    Please, read henry’s answer and follow the given doc.

    define’s goes to bp-custom.php This file doesn’t exist by default, you have to add it manually via FTP to wp-contet/plugins/


    Alexlim91
    Participant

    @alexlim91

    Hi,

    That mean i need to add this “bp-custom.php” file into my file manager? How about the contain in this file?

    Thank You


    Alexlim91
    Participant

    @alexlim91

    Hi Guys,

    Why i cannot find this line : “#avatar-crop-pane { border-radius: 50%; }” in buddypress core folder?

    Thank You


    danbp
    Moderator

    @danbp

    Searching for code needs a correct search tool. Use Notepad++ and you’ll find 48 occurence to avatar-crop-pane !
    The first of them is in buddypress/bp-core/bp-core-cssjs.php
    Another one is in buddypress\bp-core\css\avatar.css

    But you haven’t to hack core files. All you have to do is to create a child theme from where you can adjust CSS to your need.

    Codex is your friend ! If you accept to read…


    Alexlim91
    Participant

    @alexlim91

    Hi,

    Ok. I try to use notepad++ and find out the code.


    Alexlim91
    Participant

    @alexlim91

    By the way, i want to know if other user got to register an buddypress account then it show”forbidden. Please enable Javascript”. What is the problem?

    Thank You


    Alexlim91
    Participant

    @alexlim91

    Hi,
    For the cropping i still cannot do it, even i follow the buddypress codex. I still would no found the way to increase the cropping size.

    Thank You


    danbp
    Moderator

    @danbp

    Why can’t you do that ?

    Copy/paste this to bp-custom.php and adjust the size to your need (250 to whatever)

    define( 'BP_AVATAR_FULL_WIDTH', 250 );
    define( 'BP_AVATAR_FULL_HEIGHT', 250 );

    And use FTP to upload bp-custom


    Alexlim91
    Participant

    @alexlim91

    Hi,

    For your information, I no a professional web developer or web design, I still fresh and still learning. Because this buddypress is quite new for me. So, I need someone can teach me step by step. For the bp-custom.php, i need to create for it? because i would no found it

    Thank You


    danbp
    Moderator

    @danbp

    Please, read the codex page about bp-custom. It’s explained how to create and use it.
    And sorry, but we are not teachers, just users trying to help.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How can I change the Cropping size in profile page?’ is closed to new replies.
Skip to toolbar