WordPress.org

Ready to get started?Download WordPress

Forums

Avatar for users (1 post)

  1. wewa
    Member
    Posted 6 years ago #

    Hy!

    I'd like to add an avatar for my wordpress users.
    The url to the avatar should be posted in the "usermeta" table with the meta_key "avatar".

    I've edited the users-edit.php

    <fieldset>
    <legend><?php _e('Avatar'); ?></legend>
    <p><label><?php _e('Your avatar-url:') ?><br />
    <input type="text" name="avatar" value="<?php echo $profileuser->avatar ?>" /></label></p>
    </fieldset>

    and now an input-field is posted in "users>>edit" (and if I've inserted an "avatar"-entry in the table the link is printed in the text-field for the avatar-url).

    But I'm not able to update the entry in the sql-table. I've added update_usermeta( $user_id, 'avatar', $avatar); to the file "registration.php" but this has no effect.

    Can you tell me which files or. functions I have to edit that the avatar-url is inserted into the table?

Topic Closed

This topic has been closed to new replies.

About this Topic