User Photo Plugin
-
I have successfuly installed User Photo plugin by weston ruter. When attempting to upload a photo from a file on my hard disk in the user management screen I receive the following message:
Upload error: The userphoto upload content directory does not exist and could not be created. Please ensure that you have write permissions for the /wp-content/uploads/ directory.
The readme instructions are a bit obtuse for me:
== 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.
User photos may be displayed within a post or a comment to
help identify the author. New template tags introduced are:*
userphoto_the_author_photo()
*userphoto_the_author_thumbnail()
*userphoto_comment_author_photo()
*userphoto_comment_author_thumbnail()
The first two should be placed in the posts loop near
the_author()
, and the second two in the comments
loop nearcomment_author()
(or their respective equivalents). Furthermore,userphoto_the_author_photo()
anduserphoto_the_author_thumbnail()
may be called anywhere (i.e. sidebar) if$authordata
is set.The output of these template tags may be modified by passing four parameters:
$before
,$after
,
$attributes
, and$default_src
, as in:userphoto_the_author_photo($before, $after, $attributes, $default_src)
.
If the user photo exists (or$default_src
is supplied), then the text provided in the$before
and$after
parameters is respectively
prefixed and suffixed to the generatedimg
tag (a common pattern in WordPress). If attributes are provided in the$attributes
parameter, then they are returned as attributes of the generatedimg
element. For example:userphoto_the_author_photo('', '', array(style => 'border:0'))
Uploaded images may be moderated by administrators via the “Edit User” page.
I don’t know if I need to edit files in the theme editor or if I need to place the photo files on the server somewhere.
Any help would be appreciated.
Jim
- The topic ‘User Photo Plugin’ is closed to new replies.