Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Avatar Upload Page


  • operapreneur
    Participant

    @operapreneur

    I’m very interested in creating a page where members can change their profile picture. It is part of a custom “getting started” signup up process, so the member has completed registration and the following code is only displayed to logged in members.I have found very little documentation or examples out there, especially since the changes that took place in BP 2.3.

    I’m not looking to abandon the current approach or fallbacks. So far I have the basic “change avatar” template by placing the template part on my page template:
    bp_get_template_part( 'members/single/profile/change-avatar' );

    When testing, the avatar is not being uploaded not to mention none of the additional scripts are being loaded. Through my research I did see suggestions to add:

    wp_enqueue_style( 'jcrop' );
    wp_enqueue_script( 'jcrop', array( 'jquery' ) );
    add_action( 'wp_footer', 'bp_core_add_cropper_inline_js' );
    add_action( 'wp_footer', 'bp_core_add_cropper_inline_css' );

    but are they still relevant to the changes since 2.3?

    First question: what is restricting the avatar from being uploaded on a page outside of the member profile?

    Second question: are the current parts (styles/scripts…) not being loaded via bp_avatar_get_templates because I need to alter the bp_avatar_is_front_edit filter?

    Thanks! Any directions is greatly appreciated.

Viewing 1 replies (of 1 total)

  • operapreneur
    Participant

    @operapreneur

    Still looking for any direction or examples where I can create a separate page (outside of the BP member registration or member profile) where members can upload and crop there avatar using the new BP_Attachment_Avatar introduced in 2.3.

    The most help/up-to-date info seems to stem from this post.

    @imath Would you be able to point me in the right direction? What is restricting the avatar from being uploaded on a page outside of the member profile?

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Avatar Upload Page’ is closed to new replies.
Skip to toolbar