WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] How to add an upload field? (4 posts)

  1. Zilli
    Member
    Posted 2 years ago #

    I would like to allow my users to upload a custom photo/gravatar. How can I add this field on the registration form?

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin doesn't really have a way to simply add that functionality to the user side form. But WP already has avatar capability built in. This is found under "Avatars" in the Settings > Discussion menu. This defaults to gravatar, so if your users already have a gravatar image, it will load that.

    On the user side, all you need to do is implement the get_avatar function to display the user's avatar wherever you want to display it. Also, get_avatar is pluggable, so you can create your own version of the function if needed.

  3. aimkbe
    Member
    Posted 2 years ago #

    i have all the fields i need on the registration page. The problem is the email field is out of place which messes up everything below that. How do i change this

    http://international.quackitup.com/loginregister/

    that is the page i want to change

  4. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    @aimkbe,

    You question is only related to this thread in that we are talking about the same plugin. You should have just started a new thread for this.

    The issue you are having is really just a CSS issue. There may be properties that are inherited from another stylesheet, or you may just need to adjust some of the widths on the form elements.

    Here is some information that may help you with customizing the CSS forms:

    http://butlerblog.com/2011/07/25/customize-the-wp-members-stylesheet/

    You only need to specify the location of the custom stylesheet in the plugin settings. But, if you're up to it, a more elegant way of loading a custom stylesheet is wp_enqueue_style:
    http://butlerblog.com/2012/02/20/loading-custom-stylesheets-with-wp_enqueue_style/

    There are three stylesheets included in the plugin download - the default, and two others. This should give you a variety to start from. Ideally, you would create your own stylesheet to fully integrate with your theme, but these give you a good starting framework:
    http://butlerblog.com/2012/02/19/new-css-stylesheets-included-in-wp-members/

    Lastly, when tracking down style issues, I highly recommend Firebug (getfirebug.com). It's a free browser plugin and allows you to right-click and "inspect element" which will show you what properties are applied to a given element and where they are coming from (good for tracking down inherited properties from other stylesheets).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags