Forums

BuddyPress
Avatar upload in registration form (12 posts)

  1. snatrott
    Member
    Posted 3 months ago #

    I am using BuddyPress version 1.5.3.1. I would like to have users upload an avatar when filling out the registration form. I have not been able to find any code or plugin that can help me do that. Is there a way to do this? Ideally, I would like Upload Avatar to be right under Confirm Password in the Account Details section.

    http://wordpress.org/extend/plugins/buddypress/

  2. Paul Gibbs
    Member
    Posted 3 months ago #

    Previous versions of BuddyPress worked list this, but we took out uploading avatars while registering for an account in 1.5 because we decided it didn't make much sense to let the user upload an avatar until they had an account created.

    I think you could put it back in, but you'd have to know some PHP/WordPress dev. to be able to do it (or hire a developer). I can point you in the right direction if you're familiar enough with writing custom WordPress plugins.

  3. snatrott
    Member
    Posted 3 months ago #

    I am comfortable working with code. I would love some help getting pointed in the right direction.

  4. Paul Gibbs
    Member
    Posted 3 months ago #

    This was removed from BuddyPress in http://buddypress.trac.wordpress.org/changeset/3691 on http://buddypress.trac.wordpress.org/ticket/2741

    In your theme's register.php, you can just put the deleted bits of the template back in (the part in red).

    For the changes in bp-core-signup.php, I reckon you can copy-paste the red bit into your own function, and hook that into the 'bp_core_screen_signup' action.

  5. snatrott
    Member
    Posted 3 months ago #

    So far I just added the part in the register.php file and nothing is showing up on my register page regarding the avatar http://www.webiforum.com/en/register/

    I haven't tried adding the signup function yet, as I am not sure how to do that. I don't mind editing the code, but I am not completely certain where to go about adding that code.

  6. snatrott
    Member
    Posted 3 months ago #

    Can anyone provide a bit more detail in implementing this? I am very thankful for the information provided so far, but I am just not putting the pieces together to get it working.

  7. Nithin K Variar
    Member
    Posted 2 months ago #

    Hi Paul,
    Nothing happened when I click on Upload button.

  8. James Thomson
    Member
    Posted 2 months ago #

    This ones important to me aswell, can anyone provide a little more detail please.

    My site, http://www.extrafriends.co.uk, is running a multisite Buddypress installation, powered by the Genesis theme framework.

    Thanks!

  9. Paul Gibbs
    Member
    Posted 1 month ago #

    It is a bad idea to allow users to upload images before they have activated (and therefore authenticated) their user account.

  10. James Thomson
    Member
    Posted 1 month ago #

    Hi Paul

    Thanks for your comment.

    How would you suggest we deal the issue of user avatars not being uploaded then?

    Force redirect a user on their first visit to an upload page encouraging people to do it?

  11. Paul Gibbs
    Member
    Posted 1 month ago #

    If you're using private messaging, maybe send them an email, linking to / explaining how they can upload an avatar. Or redirect them to a blog post or a forum on their first log in, where you explain the same. My Welcome Pack plugin will give you these options.

  12. dylanabowman
    Member
    Posted 2 weeks ago #

    Hi Paul, apologies if this is incorrect forum thread use, but I specifically wanted to ask you this question and it is closely related to the original question. I thought this would be the best way of getting your attention. Hope that is ok.

    I am creating a four step "getting started" process that a member goes through after they have signed up (1. profile details 2. contact details 3. avatar 4. about us tutorial) each step is on a custom page that is not the member's profile page. I have got all the steps sorted except the upload avatar step.

    I am using the change-avatar.php code as a base to work from and have copy pasted it into a custom page. However, when I upload an avatar the page refreshes and nothing happens; the cropping tool does not appear as it does on the profile page.

    It looks to me (and I'm no expert) that it is something to do with permissions set in bp-xprofile-screens.php that is stopping the cropping tool from appearing on my custom page. Can you help with the code edit required to make the crop tool and therefore my upload avatar page to work?

    Thanks in advance,
    D

Reply

You must log in to post.

About this Plugin

About this Topic

Tags