Skip to:
Content
Pages
Categories
Search
Top
Bottom

Rectangular profile avatar

  • @janismo

    Participant

    Hi,

    Is there a possibility to have rectangular profile avatar, but square avatars in all other places (cropped not narrowed), same to how it is happening on facebook?

    thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • @janismo

    Participant

    I assume something like this was done in this theme, but what is the name?

    Link

    @janismo

    Participant

    ok, after a bit of searching looks like it is old bp-default, does it mean that it is removed functionality?

    thanks!

    @mercime

    Participant

    @janismo please clarify what you mean about
    – “this theme”
    – “old bp-default” and about
    – “number of bp-default from the link”

    @janismo

    Participant

    @mercime thank you for reply!

    – Is it bp-default in the link? (link in the 2nd post in this topic)
    – if yes, what version is it and where it can be downloaded?
    – was such feature as “Rectangular profile avatar” with resizing for a square thumb in any of bp-default and why it was removed?

    @mercime

    Participant

    BuddyPress avatars have always been square since BP alpha version if I remember well :-)
    I was going to refer you to @sbrajesh but I see you’ve already posted there http://buddydev.com/buddypress/changing-default-avatar-size-croppedused-by-buddypress/

    @sbrajesh

    Participant

    Thank you @mercime for the mention.
    @jainsmo just replied to your post there. It is possible to have rectangular avatar.
    do you want to have rectangular avatar for profile but square for groups etc or you want to have square for thumb but rectangular for larger image ?

    @mercime

    Participant

    Thank you @sbrajesh :-)

    @janismo

    Participant

    @sbrajesh @mercime
    thank you guys! from example/link above I cannot agree to you mercime :) yes, Brajesh, “square for thumb but rectangular for larger image” is exactly what I want. I have just replied at your site, probably, we should use one web page for this conversation, you are welcome to chose :)

    @janismo

    Participant

    can it be done using these lines (?):

    `$thumb_cropped = wp_crop_image( $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, bp_core_avatar_thumb_width(), bp_core_avatar_thumb_height(), false, $avatar_folder_dir . ‘/’ . $thumb_filename );`

    @janismo

    Participant

    hi @sbrajesh
    could you please take a look on this, if you will have time..

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Rectangular profile avatar’ is closed to new replies.
Skip to toolbar