-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
executable file
·43 lines (32 loc) · 1.4 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Plugin Name: Avatars
Author: Andrew Billits, Ulrich Sossou
Files:
----------------------------------------------------------------------
avatars.php - goes in /wp-content/mu-plugins
avatars-files/ - goes in /wp-content/mu-plugins
Instructions:
----------------------------------------------------------------------
2) Place the files in the specified directories
Avatars Functions:
----------------------------------------------------------------------
User Avatars:
get_avatar(ID_OR_EMAIL,SIZE,DEFAULT)
ID_OR_EMAIL = ID or email of the user
SIZE = '16', '32', '48', '96', '128'
DEFAULT = 'mystery', 'gravatar_default', 'identicon', 'wavatar', 'monsterid'
Example:
<?php echo get_avatar(1,'32','identicon'); ?>
Blog Avatars:
get_blog_avatar(ID,SIZE,DEFAULT)
ID_OR_EMAIL = Blog ID
SIZE = '16', '32', '48', '96', '128'
DEFAULT = 'mystery', 'gravatar_default', 'identicon', 'wavatar', 'monsterid'
Example:
<?php echo get_blog_avatar(1,'32','identicon'); ?>
Extras:
----------------------------------------------------------------------
avatar-bbpress.php - add avatars to your bbpress template. BBPress must be using the WPMU user tables.
Troubleshooting:
----------------------------------------------------------------------
1) Have you checked that all the .php files have been uploaded to the correct directories
2) Check if the upload directory 'wp-content/uploads' is writable