Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatars Original Max not bein saved?

  • @brooker

    Member

    Hey guys,
    I just took at look at the bp-core-avatars.php and on line 31 it as

    if ( !defined( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’ ) )
    define( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 450 );

    So I went to the wp-content/uploads/avatars and I dont see the original max width avatar bein saved, I only see the bpfull and the bpthumb
    is there an option to allow origianl max? I would like to have it available in the users profile page so when you click on the users avatar the bpfull a lightbox with the original max will show up…

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • @cnorris23

    Participant

    bpfull should be the original file. It just gets renamed. At least that’s how it looks in the code.

    @brooker

    Member

    bpfull is only 150px… and the bpthumb is 50px

    those are the only 2 files saved in the uploads/avatars….

    @cnorris23

    Participant

    Hmm… I’ll poke around later.

    @r-a-y

    Keymaster

    BP_AVATAR_ORIGINAL_MAX_WIDTH is used during the initial upload. However, during the cropping phrase, this original image is deleted.

    It would be possible to do what you’re asking, but it would entail hooking into the avatar cropping process (so the original image isn’t removed) and filtering bp_core_fetch_avatar() to grab this original image when you want to call it.

    @brooker

    Member

    @r-a-y is there a tutorial in how to get this done?
    Thank you so much for your help =)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Avatars Original Max not bein saved?’ is closed to new replies.
Skip to toolbar