=== User Photo === Contributors: Detective Tags: users, photos, images, avatar, Detective, profile Requires at least: 0.9.0.2 Tested up to: 1.0 alpha Stable tag: 1.0 Allows a user to associate a photo with their account and for this photo to be displayed in their posts and profile. == Description == Allows a user to associate a profile photo with their account through their "Your Profile" page. Admins may add a user profile photo by accessing the "Edit User" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image correspondingly is also generated. This plugin is based on the original User Photo for WordPress by Weston Ruster. It has been ported and simplified by Eduardo Graells. TODOs: * Make an options page. * Improve the upload form. == Installation == Upload the folder `user-photo-bbpress` in your `my-plugins` directory. Edit the following defines at the beginning of the file user-photo.php: ` define('USERPHOTO_PATH', ABSPATH . "my-plugins/user-photo-bbpress/avatars/"); define('USERPHOTO_URL', 'my-plugins/user-photo-bbpress/avatars/'); ` Edit the paths according to your needs: * `USERPHOTO_PATH` should be the path to a folder with permissions set to 777. * `USERPHOTO_URL` should be the url to the previous folder. If you have bbPress integrated with WordPress, you must set the same paths in both installations if you have User Photo for WP. Also, edit the following variables: `USERPHOTO_FULL_SIZE`, `USERPHOTO_THUMBNAIL_SIZE` and `USERPHOTO_JPEG_COMPRESSION`. Finally, add the following code in the template `profile-edit.php` (inside the form): ` ID); ?> ` Display of avatars (resized and smaller photo) is automatic. To display the photo you can use the following code: ` ` Where `$id` is the user ID (in a profile, you can use `$user->ID`).