Skip to:
Content
Pages
Categories
Search
Top
Bottom

Rectangular profile avatar


  • James
    Participant

    @janismo

    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)

  • James
    Participant

    @janismo

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

    Link


    James
    Participant

    @janismo

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

    thanks!


    @mercime
    Keymaster

    @mercime

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


    James
    Participant

    @janismo

    @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
    Keymaster

    @mercime

    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/


    Brajesh Singh
    Participant

    @sbrajesh

    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
    Keymaster

    @mercime

    Thank you @sbrajesh :-)


    James
    Participant

    @janismo

    @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 :)


    James
    Participant

    @janismo

    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 );`


    James
    Participant

    @janismo

    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