User Photo - Version 0.9.4

Version Description

Download this release

Release Info

Developer westonruter
Plugin Icon wp plugin User Photo
Version 0.9.4
Comparing to
See all releases

Code changes from version 0.7 to 0.9.4

admin.css CHANGED
@@ -21,6 +21,9 @@
21
  /*padding:3px;*/
22
  padding:4px 0 4px 5px;
23
  }
 
 
 
24
 
25
  #userphoto_level_moderated option.none,
26
  #userphoto_admin_notified option.none {
@@ -34,6 +37,7 @@
34
  float:left;
35
  margin-right:20px;
36
  margin-bottom:0;
 
37
  }
38
  #userphoto hr {
39
  clear:both;
21
  /*padding:3px;*/
22
  padding:4px 0 4px 5px;
23
  }
24
+ #userphoto-approvalstatus-controls select {
25
+ vertical-align:middle;
26
+ }
27
 
28
  #userphoto_level_moderated option.none,
29
  #userphoto_admin_notified option.none {
37
  float:left;
38
  margin-right:20px;
39
  margin-bottom:0;
40
+ background-color:white;
41
  }
42
  #userphoto hr {
43
  clear:both;
localization/template.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-01-02 18:25+0100\n"
6
+ "Last-Translator: Paco Orozco <paco@eiraworks.com>\n"
7
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Spanish\n"
12
+ "X-Poedit-Country: SPAIN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/paco/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/paco/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr ""
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr ""
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr ""
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr ""
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr ""
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr ""
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr ""
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr ""
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr ""
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr ""
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr ""
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr ""
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr ""
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr ""
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr ""
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr ""
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr ""
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr ""
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr ""
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr ""
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr ""
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr ""
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr ""
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr ""
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr ""
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr ""
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr ""
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr ""
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr ""
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr ""
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr ""
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr ""
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr ""
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr ""
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr ""
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr ""
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr ""
171
+
localization/user-photo-ca.mo ADDED
Binary file
localization/user-photo-ca.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2009-03-13 10:09+0100\n"
6
+ "Last-Translator: Robert Buj <rbuj@wanadoo.es>\n"
7
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Catalan\n"
12
+ "X-Poedit-Country: SPAIN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/paco/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/paco/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "El plugin User Photo no pot utilitzar-se en aquest sistema, perqué el canvi de mida d'imatge no està disponible, específicament imagecopyresampled() i funcions connexes. S'ha desactivat."
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "No puc esborrar la fotografia."
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "El fitxer pujat exedeix el tamany màxim de pujada."
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "El fitxer només s'ha carregat parcialment."
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "El fitxer s'ha pujat."
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Directori temporal no trobat."
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "S'ha produït un error a l'intentar escriure al disc."
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "S'ha aturat la càrrega d'arxius per extensió."
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "S'ha produït un error desconegut durant la càrrega del fitxer."
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "El fitxer &ldquo;%s&rdquo; no ha estat carregat. Ha proporcionat un nom de fitxer correcte?"
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "Carregar el tipus de fitxer &ldquo;%s&rdquo; no està permés."
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "No puc obtindre les dimensions de la imatge."
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "El directori de càrregues de Userphoto no existeix i no pot ser creat. Si us plau, assegureu-vos que el directori té permisos d'escriptura /wp-content/uploads/."
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "No es pot moure l'arxiu al directori de càrregues de fotografies d'usuari."
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "La vostra fotografia"
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Fotografia d'usuari"
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "La foto del teu perfil s'ha presentat per a la seva revisió."
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "La seva foto triada pel perfil ha estat rebutjada."
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "raó:"
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Pujar el fitxer d'imatge:"
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "màxim tamany de pujada %s"
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Estat d'aprovació:"
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "pendent"
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "rebutjat"
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "aprovat"
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "La fotografia és inapropiada."
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Esborrar forografia?"
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Opcions desades."
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Dimensió màxima:"
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Dimensió de la miniatura:"
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "Compressió JPEG:"
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Notificar a l'administrador per correu electrònic quan l'usuari necessiti l'aprovació de fotografies:"
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Exigir moderació de la foto d'usuari per a tots els usuaris dins o per sota d'aquest nivell:"
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Opcions d'actualització &raquo;"
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Tipus de fitxer no suportat."
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Format d'imatge no reconegut."
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Ruta incorrecta de la miniatura"
171
+
localization/user-photo-de_DE.mo ADDED
Binary file
localization/user-photo-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-08-13 15:09+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: German\n"
12
+ "X-Poedit-Country: GERMANY\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: user-photo/\n"
16
+ "X-Poedit-SearchPath-0: user-photo\n"
17
+
18
+ #: user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "Userfoto-Plugin wurde deaktiviert, da auf diesem System die imageccopyresamled() und verwandte Funktionen nicht verf&uuml;gbar sind!"
21
+
22
+ #: user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "Foto konnte nicht gel&ouml;scht werden!"
25
+
26
+ #: user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "Die hochgeladene Datei &uuml;berschreitet die maximale Dateigr&ouml;&szlig;e!"
29
+
30
+ #: user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "Die Datei konnte nicht richtig hochgeladen werden!"
33
+
34
+ #: user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "Es wurde keine Datei hochgeladen!"
37
+
38
+ #: user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Tempor&auml;res Verzeichnis ist nicht verf&uuml;gbar!"
41
+
42
+ #: user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Fehler beim Schreiben der Datei!"
45
+
46
+ #: user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "Dateiupload wurde von einer Erweiterung gestoppt!"
49
+
50
+ #: user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Fileupload ist aufgrund eines unbekannten Fehlers fehlgeschlagen!"
53
+
54
+ #: user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "Die Datei &ldquo;%s&rdquo; wurde nicht hochgeladen. Wurde der Dateiname korrekt angegeben?"
58
+
59
+ #: user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "Der ausgew&auml;hlte Dateityp &ldquo;%s&rdquo; ist nicht erlaubt!"
63
+
64
+ #: user-photo/user-photo.php:195
65
+ #: user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Bildgr&ouml;&szlig;e konnte nicht festgestellt werden!"
68
+
69
+ #: user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "Das Userfoto-Upload-Verzeichnis existiert nicht and konnte nicht erstellt werden. Bitte sicherstellen, dass Schreibrechte f&uuml;r /wp-content/uploads eingestellt sind!"
72
+
73
+ #: user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "Datei konnte nicht ins Userfoto-Upload-Verzeichnis verschoben werden!"
76
+
77
+ #: user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "Userfoto"
80
+
81
+ #: user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Userfoto"
84
+
85
+ #: user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "Userfoto wurde an einen Administrator zur Moderation &uuml;bermittelt"
88
+
89
+ #: user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "Userfoto wurde von einem Administrator abgelehnt"
92
+
93
+ #: user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Grund:"
96
+
97
+ #: user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Bild hochladen:"
100
+
101
+ #: user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "max. Gr&ouml;&szlig;e %s"
105
+
106
+ #: user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Moderationsstatus:"
109
+
110
+ #: user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "ausstehend"
113
+
114
+ #: user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "zur&uuml;ckgewiesen"
117
+
118
+ #: user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "genehmigt"
121
+
122
+ #: user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "Das Userfoto ist ungeeignet"
125
+
126
+ #: user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Userfoto l&ouml;schen?"
129
+
130
+ #: user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Einstellungen wurden gespeichert"
133
+
134
+ #: user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Maximale Gr&ouml;&szlig;e:"
137
+
138
+ #: user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Thumbnail-Gr&ouml;&szlig;e:"
141
+
142
+ #: user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "JPEG-Komprimierung:"
145
+
146
+ #: user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Folgenden Administrator benachrichtigen, wenn eine Userfoto-Moderation ausst&auml;ndig ist:"
149
+
150
+ #: user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Userfoto-Moderation unter diesem Level erforderlich:"
153
+
154
+ #: user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Änderungen speichern &raquo;"
157
+
158
+ #: user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Dateityp wird nicht unterst&uuml;tzt"
161
+
162
+ #: user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Unbekanntes Bildformat"
165
+
166
+ #: user-photo/user-photo.php:597
167
+ #: user-photo/user-photo.php:602
168
+ #: user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Thumbnail-Pfad ist ung&uuml;ltig"
171
+
localization/user-photo-es_ES.mo ADDED
Binary file
localization/user-photo-es_ES.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-01-02 18:17+0100\n"
6
+ "Last-Translator: Paco Orozco <paco@eiraworks.com>\n"
7
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Spanish\n"
12
+ "X-Poedit-Country: SPAIN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/paco/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/paco/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "El plugin User Photo no puede usarse en este sistema, ya que no se pueden editar imágenes. No se ha encontrado la función imagecopyresampled() así como otras necesarias. El plugin se ha desactivado."
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "No he podido borrar una imagen."
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "El fichero subido superar el tamaño máximo permitido."
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "El fichero sólo fue subido parcialmente."
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "No se ha subido ningún fichero."
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "No encuentro un directorio temporal."
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Error al guardar el fichero en disco."
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "El fichero no tiene una extensión permitida."
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Se ha producido un error desconocido."
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "El fichero &ldquo;%s&rdquo; no fue subido. ¿Ha ingresado el nombre correctamente?"
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "El tipo de fichero &ldquo;%s&rdquo; no esta permitido."
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Imposible obtener dimensiones de la imagen."
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "El directorio para subir imágenes no existe y no se ha podido crear. Por favor, compruebe los permisos del directorio wp-content/uploads/."
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "Imposible mover el dichero al directorio para subir imágenes de usuario."
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "Tu imagen"
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Imagen del usuario"
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "Tu perfil ha sido enviado para revisión"
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "La imagen que escogiste ha sido rechazada."
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Razón:"
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Subir un fichero de imagen:"
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "tamaño máximo %s"
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Estado aprobación:"
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "pendiente"
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "rechazada"
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "aprobada"
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "La imagen es inapropiada."
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "¿Borrar imagen?"
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Opciones guardadas."
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Dimensión máxima:"
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Dimensión de la miniatura:"
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "Compresión JPEG:"
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Notificar a este administrador por correo cuando una imagen necesita aprobación:"
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Se requiere moderación de las imágenes para aquellos usuarios de inferior o igual nivel a:"
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Actualizar opciones &raquo;"
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Tipo de fichero no soportado."
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Formato de imagen no reconocido."
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Camino a la miniatura no válido."
171
+
localization/user-photo-fr_FR.mo ADDED
Binary file
localization/user-photo-fr_FR.po ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-11-30 11:16+0100\n"
6
+ "PO-Revision-Date: 2008-11-30 11:23+0100\n"
7
+ "Last-Translator: jpicot <jpicot@free.fr>\n"
8
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Spanish\n"
13
+ "X-Poedit-Country: SPAIN\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-Basepath: /mjc/user-photo/\n"
17
+ "X-Poedit-SearchPath-0: /mjc/user-photo\n"
18
+
19
+ #: /mjc/user-photo/user-photo.php:36
20
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
21
+ msgstr "Le plugin User Photo ne fonctionera pas sur votre système car le redimensionnement d'image n'est pas disponible. En particulier le réechantillonnage d'image a été désactivé."
22
+
23
+ #: /mjc/user-photo/user-photo.php:38
24
+ msgid "The required <a href='http://www.php.net/gd'>GD module</a> is not available on your system."
25
+ msgstr "Le module requis <a href='http://www.php.net/gd'>GD </a> n'est pas disponible sur ce système."
26
+
27
+ #: /mjc/user-photo/user-photo.php:330
28
+ msgid "Unable to delete photo."
29
+ msgstr "Imposible de supprimer la photo"
30
+
31
+ #: /mjc/user-photo/user-photo.php:355
32
+ msgid "The uploaded file exceeds the max upload size."
33
+ msgstr "Le fichier dépasse la taille maximum autorisée."
34
+
35
+ #: /mjc/user-photo/user-photo.php:358
36
+ msgid "The uploaded file was only partially uploaded."
37
+ msgstr "Le fichier a été partiellement chargé ."
38
+
39
+ #: /mjc/user-photo/user-photo.php:361
40
+ msgid "No file was uploaded."
41
+ msgstr "Aucun fichier n'a été téléchargé."
42
+
43
+ #: /mjc/user-photo/user-photo.php:364
44
+ msgid "Missing a temporary folder."
45
+ msgstr "Il manque un répertoire temporaire."
46
+
47
+ #: /mjc/user-photo/user-photo.php:367
48
+ msgid "Failed to write file to disk."
49
+ msgstr "Le fichier n'a pas pu être écrit sur le disque."
50
+
51
+ #: /mjc/user-photo/user-photo.php:370
52
+ msgid "File upload stopped by extension."
53
+ msgstr "Le téléchargement a été interrompu a cause d'une extension incompatible."
54
+
55
+ #: /mjc/user-photo/user-photo.php:373
56
+ msgid "File upload failed due to unknown error."
57
+ msgstr "Le téléchargement a été interrompu a cause d'une erreur inconnue."
58
+
59
+ #: /mjc/user-photo/user-photo.php:377
60
+ #, php-format
61
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
62
+ msgstr "Le fichier &ldquo;%s&rdquo; n'a pas été téléchargé. avez vous fourni le nom correct ?"
63
+
64
+ #: /mjc/user-photo/user-photo.php:379
65
+ #, php-format
66
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
67
+ msgstr "Le type de fichier &ldquo;%s&rdquo; n'est pas autorisé."
68
+
69
+ #: /mjc/user-photo/user-photo.php:392
70
+ #: /mjc/user-photo/user-photo.php:820
71
+ msgid "Unable to get image dimensions."
72
+ msgstr "Impossible d'obtenir les dimensions de l'image."
73
+
74
+ #: /mjc/user-photo/user-photo.php:410
75
+ #, php-format
76
+ msgid "The userphoto upload content directory does not exist and could not be created. Please ensure that you have write permissions for the '%s' directory. Did you put slash at the beginning of the upload path in Misc. settings? It should be a path relative to the WordPress root directory. <code>wp_upload_dir()</code> returned:<br /> <code style='white-space:pre'>%s</code>"
77
+ msgstr "Le répertoire de téléchargement n'existe pas ou ne peut être créé. Vérifiez que vous avez les droits ne écriture sur le répertoire '%s'. Avez vous mis un slash au début du chemin dans les options divers ? Ce devrait être un chemin relatif au répertoire racine de Wordpress. <code>wp_upload_dir()</code> renvoie:<br /> <code style='white-space:pre'>%s</code>"
78
+
79
+ #: /mjc/user-photo/user-photo.php:421
80
+ #, php-format
81
+ msgid "Unable to place the user photo at: %s"
82
+ msgstr "Imposible de placer la photo à: %s"
83
+
84
+ #: /mjc/user-photo/user-photo.php:571
85
+ #: /mjc/user-photo/user-photo.php:576
86
+ msgid "Your Photo"
87
+ msgstr "Votre photo"
88
+
89
+ #: /mjc/user-photo/user-photo.php:571
90
+ #: /mjc/user-photo/user-photo.php:576
91
+ msgid "User Photo"
92
+ msgstr "Photo de l'utilisateur"
93
+
94
+ #: /mjc/user-photo/user-photo.php:597
95
+ msgid "Your profile photo has been submitted for review."
96
+ msgstr "Votre profil photo a été soumis pour validation."
97
+
98
+ #: /mjc/user-photo/user-photo.php:599
99
+ msgid "Your chosen profile photo has been rejected."
100
+ msgstr "La photo que vous avez choisie pour votre profil a été refusée."
101
+
102
+ #: /mjc/user-photo/user-photo.php:602
103
+ msgid "Reason: "
104
+ msgstr "Raison:"
105
+
106
+ #: /mjc/user-photo/user-photo.php:615
107
+ msgid "Upload image file:"
108
+ msgstr "Télécharger l'image:"
109
+
110
+ #: /mjc/user-photo/user-photo.php:618
111
+ #, php-format
112
+ msgid "max upload size %s"
113
+ msgstr "taille maximum %s"
114
+
115
+ #: /mjc/user-photo/user-photo.php:623
116
+ msgid "Approval status:"
117
+ msgstr "Statut de l'approbation:"
118
+
119
+ #: /mjc/user-photo/user-photo.php:625
120
+ msgid "pending"
121
+ msgstr "en cours"
122
+
123
+ #: /mjc/user-photo/user-photo.php:626
124
+ msgid "rejected"
125
+ msgstr "rejeté"
126
+
127
+ #: /mjc/user-photo/user-photo.php:627
128
+ msgid "approved"
129
+ msgstr "approuvé"
130
+
131
+ #: /mjc/user-photo/user-photo.php:631
132
+ msgid "The photo is inappropriate."
133
+ msgstr "La photo n'est pas acceptée."
134
+
135
+ #: /mjc/user-photo/user-photo.php:636
136
+ msgid "Delete photo?"
137
+ msgstr "supprimer la photo ?"
138
+
139
+ #: /mjc/user-photo/user-photo.php:696
140
+ msgid "Options saved."
141
+ msgstr "Options enregistrées."
142
+
143
+ #: /mjc/user-photo/user-photo.php:720
144
+ msgid "Maximum dimension: "
145
+ msgstr "Taille maximum:"
146
+
147
+ #: /mjc/user-photo/user-photo.php:727
148
+ msgid "Thumbnail dimension: "
149
+ msgstr "Taille de la miniature:"
150
+
151
+ #: /mjc/user-photo/user-photo.php:734
152
+ msgid "Serve Avatar as Fallback: "
153
+ msgstr "Afficher l'avatar en remplacement:"
154
+
155
+ #: /mjc/user-photo/user-photo.php:738
156
+ msgid "In case the user does not have a photo uploaded or approved, their avatar will be fetched for them. Respects the 'Avatar Display' setting under <b>Discussion</b>."
157
+ msgstr "Dans le cas ou l'utilisateur n'a pas de photo ou si celle-ci n'est pas encore approuvée, son avatar sera affiché à la place. En conformité avec les options d'affichage des avatars dans l'onglet <b>Discussion</b>."
158
+
159
+ #: /mjc/user-photo/user-photo.php:742
160
+ msgid "Override Avatar with User Photo: "
161
+ msgstr "Remplacer l'avatar par la photo de l'utilisateur."
162
+
163
+ #: /mjc/user-photo/user-photo.php:746
164
+ msgid "When making calls to <code>get_avatar()</code>, the user's photo will be used instead if it is available. Respects the 'Avatar Display' setting under <b>Discussion</b>."
165
+ msgstr "Lors des appels <code>get_avatar()</code>, la photo de l'utilisateur sera affichée à la place. En conformité avec les options d'affichage des avatars dans l'onglet <b>Discussion</b>."
166
+
167
+ #: /mjc/user-photo/user-photo.php:750
168
+ msgid "JPEG compression: "
169
+ msgstr "Compression JPEG:"
170
+
171
+ #: /mjc/user-photo/user-photo.php:757
172
+ msgid "Notify this administrator by email when user photo needs approval: "
173
+ msgstr "Avertir l'administrateur s' il est nécessaire de valider la photo de l'utilisateur:"
174
+
175
+ #: /mjc/user-photo/user-photo.php:780
176
+ msgid "Require user photo moderation for all users at or below this level: "
177
+ msgstr "Nécessite une modération des photos pour tous les utilisateurs dont le niveau est inférieur à ce niveau:"
178
+
179
+ #: /mjc/user-photo/user-photo.php:803
180
+ msgid "Update options &raquo;"
181
+ msgstr "Mettre à jour les options &raquo;"
182
+
183
+ #: /mjc/user-photo/user-photo.php:830
184
+ msgid "Filetype not supported."
185
+ msgstr "Type de fichier non accepté."
186
+
187
+ #: /mjc/user-photo/user-photo.php:844
188
+ msgid "Unrecognized image format."
189
+ msgstr "Format de l'image inconnu."
190
+
191
+ #: /mjc/user-photo/user-photo.php:876
192
+ #: /mjc/user-photo/user-photo.php:881
193
+ #: /mjc/user-photo/user-photo.php:886
194
+ msgid "Thumbnail path invalid"
195
+ msgstr "Chemin de la miniature inconnu."
196
+
197
+ #~ msgid ""
198
+ #~ "The userphoto upload content directory does not exist and could not be "
199
+ #~ "created. Please ensure that you have write permissions for the /wp-"
200
+ #~ "content/uploads/ directory."
201
+ #~ msgstr ""
202
+ #~ "Le répertoire userphoto n'existe pas et ne peut pas être créé. Vérifiez "
203
+ #~ "que vous avez les droits en écriture sur le répertoire /wp-content/"
204
+ #~ "uploads/ ."
205
+ #~ msgid "Unable to move the file to the user photo upload content directory."
206
+ #~ msgstr "Impossible de déplacer le fichier vers le répertoire userphoto"
207
+
localization/user-photo-hu_HU.mo ADDED
Binary file
localization/user-photo-hu_HU.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2009-01-06 22:43+0100\n"
6
+ "Last-Translator: Csaba nemes <preamp@freemail.hu>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: German\n"
12
+ "X-Poedit-Country: GERMANY\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: user-photo/\n"
16
+ "X-Poedit-SearchPath-0: user-photo\n"
17
+
18
+ #: user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "A Userfoto-Plugin nem használható ebben a rendszerben, mert a kép átméretezés nem elérhető (a imagecopyresampled() és hasonló függvények). A plugint kikapcsolva."
21
+
22
+ #: user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "Nem lehet törölni a képet"
25
+
26
+ #: user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "A feltöltendő kép mérete nagyobb a megengedettnél."
29
+
30
+ #: user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "A kép csak részlegesen lett feltöltve."
33
+
34
+ #: user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "Nem lett feltöltve semmi."
37
+
38
+ #: user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Hiányzó átmeneti könyvtár."
41
+
42
+ #: user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Lemez írási hiba."
45
+
46
+ #: user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "A feltöltés megszakadt a kiterjesztés hibája miatt."
49
+
50
+ #: user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Ismeretlen hiba."
53
+
54
+ #: user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "A &ldquo;%s&rdquo; fájl nem lett feltöltve. Helyesen adtad meg a fájlnevet?"
58
+
59
+ #: user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "A feltöltött &ldquo;%s&rdquo; fájl típusa nem engedélyezett."
63
+
64
+ #: user-photo/user-photo.php:195
65
+ #: user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Nem lehet lekérdezni a kép méreteit."
68
+
69
+ #: user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "A Userphoto feltöltési könyvtára nem elérhető, és nem sikerült létrehozni. Ellenőrizd az írási jogosultságot a /wp-content/uploads/ könyvtárban!"
72
+
73
+ #: user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "A fájlt nem lehetett átmásolni a feltöltési könyvtárba."
76
+
77
+ #: user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "Avatár (fotó rólad)"
80
+
81
+ #: user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Felhasználói fotó"
84
+
85
+ #: user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "A fotód moderálásra vár."
88
+
89
+ #: user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "A fotódat elutasították."
92
+
93
+ #: user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Ok:"
96
+
97
+ #: user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Feltöltendő képfájl:"
100
+
101
+ #: user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "Maximális méret %s"
105
+
106
+ #: user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Státusz:"
109
+
110
+ #: user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "függőben"
113
+
114
+ #: user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "elutasítva"
117
+
118
+ #: user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "elfogadva"
121
+
122
+ #: user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "A fotó nem megfelelő."
125
+
126
+ #: user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Töröljük a képet?"
129
+
130
+ #: user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Beállítás elmentve."
133
+
134
+ #: user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Maximális méret:"
137
+
138
+ #: user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Thumbnail méret:"
141
+
142
+ #: user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "JPEG tömörítés:"
145
+
146
+ #: user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Kapjon email értesítést ez az adminisztrátor, ha egy fotó moderálásra vár:"
149
+
150
+ #: user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Ez alatt a szint alatt minden felhasználó képe moderációt igényeljen:"
153
+
154
+ #: user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Opciók módosítása &raquo;"
157
+
158
+ #: user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "A fájltípus nem támogatott."
161
+
162
+ #: user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Ismeretlen fájltípus."
165
+
166
+ #: user-photo/user-photo.php:597
167
+ #: user-photo/user-photo.php:602
168
+ #: user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Thumbnail elérési út helytelen."
171
+
localization/user-photo-it_IT.mo ADDED
Binary file
localization/user-photo-it_IT.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2009-02-25 23:09+0100\n"
6
+ "Last-Translator: federico <federicopalumbo@tiscali.it>\n"
7
+ "Language-Team: Federico Palumbo <federicopalumbo@tiscali.it>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Italian\n"
12
+ "X-Poedit-Country: ITALY\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "Il plugin User Photo non può essere usato in questo sistema, perchè non si possono editare immagini. Non è stata trovata la funzione imagecopyresampled() così come altre necessarie. Il plugin è stato disattivato."
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "Impossibile cancellare una foto."
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "Il file caricato supera la dimensione consentita."
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "Il file è stato caricato parzialmente."
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "Nessun file caricato."
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Non trovo la directory temp."
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Errore di scrittura del file sul server"
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "Il file ha una estensione non permessa."
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Si è prodotto un errore sconosciuto."
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "Il file &ldquo;%s&rdquo; non è stato caricato. Hai messo il nome corretto?"
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "Il tipo di file &ldquo;%s&rdquo; non è permesso."
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Impossibile ottenere la dimensione dell'immagine."
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "LA directory per caricare le immagininon esiste e non è stato possibile crearla. Per favore, controlla i permessi di wp-content/uploads/."
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "Impossibile muovere il file alla directory delle foto utenti."
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "La tua Foto"
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Foto dell'utente"
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "La tua foto è in attesa di una revisione"
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "La foto che hai scelto è stata rifiutata."
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Motivo:"
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Carica un file imamgine:"
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "dimensione massima %s"
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Stato di approvazione:"
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "pendente"
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "rifiutata"
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "approvata"
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "L'immagine è inapropriata."
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Cancellare la foto?"
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Opzioni salvate."
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Dimensione massima:"
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Dimensione della miniatura:"
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "Compressione JPEG:"
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Notifica a questo amministratore per email quando una imagene ha bisogno di approvazione:"
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Richiedi l'apporvazione per tutti gli utenti al di sotto di questo livello:"
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Opzioni aggiornate &raquo;"
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Tipo di file non supportato."
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Formato dell'immagine non riconosciuto."
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Path a alla miniatura non corretto."
171
+
localization/user-photo-nl_NL.mo ADDED
Binary file
localization/user-photo-nl_NL.po ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-02-03 23:25+0100\n"
6
+ "Last-Translator: J. Stender <joep@stender.nl>\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "X-Poedit-Language: Dutch\n"
11
+ "X-Poedit-SourceCharset: utf-8\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: /user-photo/\n"
14
+ "X-Poedit-SearchPath-0: /user-photo\n"
15
+
16
+ #: /user-photo/user-photo.php:35
17
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
18
+ msgstr "User Photo plugin is niet bruikbaar op dit systeem omdat image resizing niet beschikbaar is, speciaal de imagecopyresampled() en gerelateerde functies. Het is gedeactiveerd."
19
+
20
+ #: /user-photo/user-photo.php:137
21
+ msgid "Unable to delete photo."
22
+ msgstr "Foto kan niet verwijderd worden."
23
+
24
+ #: /user-photo/user-photo.php:158
25
+ msgid "The uploaded file exceeds the max upload size."
26
+ msgstr "Het geuploade bestand is groter dan maximaal toegstaan."
27
+
28
+ #: /user-photo/user-photo.php:161
29
+ msgid "The uploaded file was only partially uploaded."
30
+ msgstr "Het bestand is slechts gedeeltelijk geupload."
31
+
32
+ #: /user-photo/user-photo.php:164
33
+ msgid "No file was uploaded."
34
+ msgstr "Geen bestand geupload."
35
+
36
+ #: /user-photo/user-photo.php:167
37
+ msgid "Missing a temporary folder."
38
+ msgstr "Een tijdelijke folder ontbreekt"
39
+
40
+ #: /user-photo/user-photo.php:170
41
+ msgid "Failed to write file to disk."
42
+ msgstr "Kon bestand niet opslaan."
43
+
44
+ #: /user-photo/user-photo.php:173
45
+ msgid "File upload stopped by extension."
46
+ msgstr "Bestands upload door een andere toepassing gestopt."
47
+
48
+ #: /user-photo/user-photo.php:176
49
+ msgid "File upload failed due to unknown error."
50
+ msgstr "Bestands upload mislukt door een onbekende fout."
51
+
52
+ #: /user-photo/user-photo.php:180
53
+ #, php-format
54
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
55
+ msgstr "Het bestand &ldquo;%s&rdquo; werd niet geupload. Heeft u de juiste bestandsnaam opgegeven?"
56
+
57
+ #: /user-photo/user-photo.php:182
58
+ #, php-format
59
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
60
+ msgstr "Het geuploade bestandstype &ldquo;%s&rdquo; is niet toegestaan."
61
+
62
+ #: /user-photo/user-photo.php:195
63
+ #: /user-photo/user-photo.php:541
64
+ msgid "Unable to get image dimensions."
65
+ msgstr "Kan afbeeldinsgrootte niet verkrijgen."
66
+
67
+ #: /user-photo/user-photo.php:211
68
+ msgid "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."
69
+ msgstr "De gebruikersfoto upload directory bestaat niet en kon niet gemaakt worden. Controleer of u schrijfbevoegdheid heeft voor de /wp-content/uploads/ directory."
70
+
71
+ #: /user-photo/user-photo.php:222
72
+ msgid "Unable to move the file to the user photo upload content directory."
73
+ msgstr "Kon het bestand niet verplaatsen naar de gebruikersfoto upload directory."
74
+
75
+ #: /user-photo/user-photo.php:358
76
+ msgid "Your Photo"
77
+ msgstr "Jouw foto"
78
+
79
+ #: /user-photo/user-photo.php:358
80
+ msgid "User Photo"
81
+ msgstr "Gebruikersfoto"
82
+
83
+ #: /user-photo/user-photo.php:370
84
+ msgid "Your profile photo has been submitted for review."
85
+ msgstr "Je profielfoto wordt beoordeeld."
86
+
87
+ #: /user-photo/user-photo.php:372
88
+ msgid "Your chosen profile photo has been rejected."
89
+ msgstr "Je profielfoto werd afgekeurd."
90
+
91
+ #: /user-photo/user-photo.php:375
92
+ msgid "Reason: "
93
+ msgstr "Reden: "
94
+
95
+ #: /user-photo/user-photo.php:388
96
+ msgid "Upload image file:"
97
+ msgstr "Upload fotobestand: "
98
+
99
+ #: /user-photo/user-photo.php:392
100
+ #, php-format
101
+ msgid "max upload size %s"
102
+ msgstr "max uploadgrootte %s"
103
+
104
+ #: /user-photo/user-photo.php:400
105
+ msgid "Approval status:"
106
+ msgstr "Goedkeuring status:"
107
+
108
+ #: /user-photo/user-photo.php:402
109
+ msgid "pending"
110
+ msgstr "volgt"
111
+
112
+ #: /user-photo/user-photo.php:403
113
+ msgid "rejected"
114
+ msgstr "afgewezen"
115
+
116
+ #: /user-photo/user-photo.php:404
117
+ msgid "approved"
118
+ msgstr "goedgekeurd"
119
+
120
+ #: /user-photo/user-photo.php:408
121
+ msgid "The photo is inappropriate."
122
+ msgstr "De foto is ongepast."
123
+
124
+ #: /user-photo/user-photo.php:413
125
+ msgid "Delete photo?"
126
+ msgstr "Foto verwijderen?"
127
+
128
+ #: /user-photo/user-photo.php:455
129
+ msgid "Options saved."
130
+ msgstr "Opties bewaard."
131
+
132
+ #: /user-photo/user-photo.php:466
133
+ msgid "Maximum dimension: "
134
+ msgstr "Mamimale afmeting: "
135
+
136
+ #: /user-photo/user-photo.php:472
137
+ msgid "Thumbnail dimension: "
138
+ msgstr "Thumbnail afmeting: "
139
+
140
+ #: /user-photo/user-photo.php:478
141
+ msgid "JPEG compression: "
142
+ msgstr "JPEG compressie: "
143
+
144
+ #: /user-photo/user-photo.php:484
145
+ msgid "Notify this administrator by email when user photo needs approval: "
146
+ msgstr "Waarschuw deze administrator per email wanneer gebruikersfoto goedkeuring behoeft: "
147
+
148
+ #: /user-photo/user-photo.php:506
149
+ msgid "Require user photo moderation for all users at or below this level: "
150
+ msgstr "Verplicht beoordeling van gebruikersfoto voor alle gebruikers op of onder dit nivo: "
151
+
152
+ #: /user-photo/user-photo.php:524
153
+ msgid "Update options &raquo;"
154
+ msgstr "Update opties &raquo;"
155
+
156
+ #: /user-photo/user-photo.php:551
157
+ msgid "Filetype not supported."
158
+ msgstr "Bestandstype niet ondersteund."
159
+
160
+ #: /user-photo/user-photo.php:565
161
+ msgid "Unrecognized image format."
162
+ msgstr "Bestandsformaat niet herkend."
163
+
164
+ #: /user-photo/user-photo.php:597
165
+ #: /user-photo/user-photo.php:602
166
+ #: /user-photo/user-photo.php:607
167
+ msgid "Thumbnail path invalid"
168
+ msgstr "Thumbnail pad niet geldig."
169
+
localization/user-photo-pl_PL.mo ADDED
Binary file
localization/user-photo-pl_PL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: User Photo 0.8.0.4\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-04-13 10:31+0100\n"
6
+ "Last-Translator: Maciej Węgrzynowski <programming@mattai.com>\n"
7
+ "Language-Team: Michał Jaromin <programming@mattai.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Polish\n"
12
+ "X-Poedit-Country: POLAND\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: .\n"
16
+
17
+ #: /home/paco/user-photo/user-photo.php:35
18
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
19
+ msgstr "Wtyczka User Photo nie może zostać użyta w tym systemie, ponieważ edycja zdjęć jest nie dostępna, szczególnie funkcja imagecopyresampled() i inne pokrewne funkcje. Ta wtyczka została dezaktywowana."
20
+
21
+ #: /home/paco/user-photo/user-photo.php:137
22
+ msgid "Unable to delete photo."
23
+ msgstr "Nie można usuwać zdjęcia."
24
+
25
+ #: /home/paco/user-photo/user-photo.php:158
26
+ msgid "The uploaded file exceeds the max upload size."
27
+ msgstr "Załadowany plik przekracza maksymalny rozmiar."
28
+
29
+ #: /home/paco/user-photo/user-photo.php:161
30
+ msgid "The uploaded file was only partially uploaded."
31
+ msgstr "Plik został tylko częściowo załadowany."
32
+
33
+ #: /home/paco/user-photo/user-photo.php:164
34
+ msgid "No file was uploaded."
35
+ msgstr "Plik nie został załadowany."
36
+
37
+ #: /home/paco/user-photo/user-photo.php:167
38
+ msgid "Missing a temporary folder."
39
+ msgstr "Brak tymczasowego foldera."
40
+
41
+ #: /home/paco/user-photo/user-photo.php:170
42
+ msgid "Failed to write file to disk."
43
+ msgstr "Błąd przy zapisie pliku na dysku."
44
+
45
+ #: /home/paco/user-photo/user-photo.php:173
46
+ msgid "File upload stopped by extension."
47
+ msgstr "Plik nie posiada dozwolonego rozszerzenia."
48
+
49
+ #: /home/paco/user-photo/user-photo.php:176
50
+ msgid "File upload failed due to unknown error."
51
+ msgstr "Przerwano ładowanie pliku z powodu nieznanego błędu."
52
+
53
+ #: /home/paco/user-photo/user-photo.php:180
54
+ #, php-format
55
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
56
+ msgstr "Plik &ldquo;%s&rdquo; nie został załadowany. Czy podałeś poprawną nazwę?"
57
+
58
+ #: /home/paco/user-photo/user-photo.php:182
59
+ #, php-format
60
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
61
+ msgstr "Plik typu &ldquo;%s&rdquo; nie jest dozwolony."
62
+
63
+ #: /home/paco/user-photo/user-photo.php:195
64
+ #: /home/paco/user-photo/user-photo.php:541
65
+ msgid "Unable to get image dimensions."
66
+ msgstr "Nie można uzyskać wymiarów zdjęcia."
67
+
68
+ #: /home/paco/user-photo/user-photo.php:211
69
+ msgid "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."
70
+ msgstr "Katalog do ładowania zdjęć nie istnieje i nie mógł zostać utworzony. Proszę się upewnić czy posiadasz uprawnienia do tego katalogu wp-content/uploads/."
71
+
72
+ #: /home/paco/user-photo/user-photo.php:222
73
+ msgid "Unable to move the file to the user photo upload content directory."
74
+ msgstr "Przenoszenie pliku do katalogu zdjęć użytkownika nie jest możliwe."
75
+
76
+ #: /home/paco/user-photo/user-photo.php:358
77
+ msgid "Your Photo"
78
+ msgstr "Twoje zdjęcie"
79
+
80
+ #: /home/paco/user-photo/user-photo.php:358
81
+ msgid "User Photo"
82
+ msgstr "Zdjęcie użytkownika"
83
+
84
+ #: /home/paco/user-photo/user-photo.php:370
85
+ msgid "Your profile photo has been submitted for review."
86
+ msgstr "Zdjęcie twojego profilu zostało wysłane do podglądu."
87
+
88
+ #: /home/paco/user-photo/user-photo.php:372
89
+ msgid "Your chosen profile photo has been rejected."
90
+ msgstr "Twój wybrany profil zdjęcia został odrzucony."
91
+
92
+ #: /home/paco/user-photo/user-photo.php:375
93
+ msgid "Reason: "
94
+ msgstr "Powód:"
95
+
96
+ #: /home/paco/user-photo/user-photo.php:388
97
+ msgid "Upload image file:"
98
+ msgstr "Załaduj plik zdjęcia:"
99
+
100
+ #: /home/paco/user-photo/user-photo.php:392
101
+ #, php-format
102
+ msgid "max upload size %s"
103
+ msgstr "Maksymalny rozmiaru uploadu %s"
104
+
105
+ #: /home/paco/user-photo/user-photo.php:400
106
+ msgid "Approval status:"
107
+ msgstr "Zatwierdzony status:"
108
+
109
+ #: /home/paco/user-photo/user-photo.php:402
110
+ msgid "pending"
111
+ msgstr "w toku"
112
+
113
+ #: /home/paco/user-photo/user-photo.php:403
114
+ msgid "rejected"
115
+ msgstr "odrzucony"
116
+
117
+ #: /home/paco/user-photo/user-photo.php:404
118
+ msgid "approved"
119
+ msgstr "zatwierdzony"
120
+
121
+ #: /home/paco/user-photo/user-photo.php:408
122
+ msgid "The photo is inappropriate."
123
+ msgstr "To zdjęcie jest niewłaściwe."
124
+
125
+ #: /home/paco/user-photo/user-photo.php:413
126
+ msgid "Delete photo?"
127
+ msgstr "Czy usunąć zdjęcie?"
128
+
129
+ #: /home/paco/user-photo/user-photo.php:455
130
+ msgid "Options saved."
131
+ msgstr "Opcje zostały zapisane."
132
+
133
+ #: /home/paco/user-photo/user-photo.php:466
134
+ msgid "Maximum dimension: "
135
+ msgstr "Maksymalna szerokość:"
136
+
137
+ #: /home/paco/user-photo/user-photo.php:472
138
+ msgid "Thumbnail dimension: "
139
+ msgstr "Szerokość miniatury:"
140
+
141
+ #: /home/paco/user-photo/user-photo.php:478
142
+ msgid "JPEG compression: "
143
+ msgstr "Kompresja JPEG:"
144
+
145
+ #: /home/paco/user-photo/user-photo.php:484
146
+ msgid "Notify this administrator by email when user photo needs approval: "
147
+ msgstr "Poinformuj tego administratora e-mailem, kiedy użytkownik będzie potrzebował potwierdzenia:"
148
+
149
+ #: /home/paco/user-photo/user-photo.php:506
150
+ msgid "Require user photo moderation for all users at or below this level: "
151
+ msgstr "Wymagane jest zdjęcie dla wszystkich użytkowników poniżej poziomu:"
152
+
153
+ #: /home/paco/user-photo/user-photo.php:524
154
+ msgid "Update options &raquo;"
155
+ msgstr "Aktualizuj opcje &raquo;"
156
+
157
+ #: /home/paco/user-photo/user-photo.php:551
158
+ msgid "Filetype not supported."
159
+ msgstr "Typ pliku nie jest akceptowalny."
160
+
161
+ #: /home/paco/user-photo/user-photo.php:565
162
+ msgid "Unrecognized image format."
163
+ msgstr "Format zdjęcia nieznany."
164
+
165
+ #: /home/paco/user-photo/user-photo.php:597
166
+ #: /home/paco/user-photo/user-photo.php:602
167
+ #: /home/paco/user-photo/user-photo.php:607
168
+ msgid "Thumbnail path invalid"
169
+ msgstr "Błędna ścieżka miniatury."
170
+
localization/user-photo-pt_BR.mo ADDED
Binary file
localization/user-photo-pt_BR.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2009-02-17 14:48-0300\n"
6
+ "Last-Translator: Guilherme Barile <guigouz@gmail.com>\n"
7
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Spanish\n"
12
+ "X-Poedit-Country: SPAIN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/paco/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/paco/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "Fotos de usuários não são suportadas neste sistema pois não é possível redimensionar imagens. Especificamente a função imagecopyresampled() e relacionadas não foram encontradas. O plugin foi desativado."
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "Impossível excluir foto."
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "O arquivo enviado excede o tamanho máximo permitido."
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "O arquivo foi enviado apenas parcialmente."
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "Nenhum arquivo foi enviado."
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Pasta temporária não encontrada."
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Falha ao gravar arquivo no disco."
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "Extensão de arquivo não suportada."
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Falha no upload devido a um erro desconhecido."
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "O arquivo &ldquo;%s&rdquo; não foi enviado. Você informou a extensão correta ?"
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "O tipo de arquivo $ldquo;%s&rdquo; não é permitido."
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Impossível verificar o tamanho da imagem."
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "O diretório para upload das fotos não existe e não pôde ser criado. Por favor verifique que você tem permissão de escrita em /wp-content/uploads/"
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "Impossível mover o arquivo para o diretório de fotos."
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "Sua foto"
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Foto do Usuário"
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "Sua foto foi enviada para aprovação."
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "A foto que você enviou foi rejeitada."
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Razão:"
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Enviar arquivo de imagem:"
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "tamanho máximo do upload %s"
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Status da aprovação:"
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "pendente"
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "rejeitada"
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "aprovada"
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "Esta foto não é apropriada"
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Excluir foto ?"
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Opções gravadas."
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Tamanho máximo:"
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Tamanho da miniatura:"
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "Taxa de compressão:"
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Avisar este administrador por email quando uma foto precisa de aprovação:"
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Exigir moderação nas fotos de todos os usuários abaixo deste nível:"
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Atualizar opções &raquo;"
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Tipo de arquivo não suportado."
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Tipo de arquivo não reconhecido."
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Caminho para thumbnail inválido"
171
+
localization/user-photo-ru_RU.mo ADDED
Binary file
localization/user-photo-ru_RU.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: user-photo\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-05-28 12:35+0300\n"
6
+ "Last-Translator: Kyr Dunenkoff <dunenkoff@gmail.com>\n"
7
+ "Language-Team: Paco Orozco <paco@eiraworks.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: Spanish\n"
12
+ "X-Poedit-Country: SPAIN\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: /home/paco/user-photo/\n"
16
+ "X-Poedit-SearchPath-0: /home/paco/user-photo\n"
17
+
18
+ #: /home/paco/user-photo/user-photo.php:35
19
+ msgid "User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated."
20
+ msgstr "Плагин не может быть использован в данной системе, поскольку изменение размера изборажений не работает, в частности, не работают imagecopyresampled() и сопутствующие функции. Плагин был деактивирован."
21
+
22
+ #: /home/paco/user-photo/user-photo.php:137
23
+ msgid "Unable to delete photo."
24
+ msgstr "Невозможно удалить фото."
25
+
26
+ #: /home/paco/user-photo/user-photo.php:158
27
+ msgid "The uploaded file exceeds the max upload size."
28
+ msgstr "Размер загруженного файла превышает максимальный возможный размер."
29
+
30
+ #: /home/paco/user-photo/user-photo.php:161
31
+ msgid "The uploaded file was only partially uploaded."
32
+ msgstr "Файл был загружен только частично."
33
+
34
+ #: /home/paco/user-photo/user-photo.php:164
35
+ msgid "No file was uploaded."
36
+ msgstr "Файл не был загружен."
37
+
38
+ #: /home/paco/user-photo/user-photo.php:167
39
+ msgid "Missing a temporary folder."
40
+ msgstr "Отсутствует временная папка."
41
+
42
+ #: /home/paco/user-photo/user-photo.php:170
43
+ msgid "Failed to write file to disk."
44
+ msgstr "Ошибка записи на диск."
45
+
46
+ #: /home/paco/user-photo/user-photo.php:173
47
+ msgid "File upload stopped by extension."
48
+ msgstr "Загрузка остановлена по причине неверного расширения."
49
+
50
+ #: /home/paco/user-photo/user-photo.php:176
51
+ msgid "File upload failed due to unknown error."
52
+ msgstr "Загрузка не завершена по неизвестной причине."
53
+
54
+ #: /home/paco/user-photo/user-photo.php:180
55
+ #, php-format
56
+ msgid "The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?"
57
+ msgstr "Файл &ldquo;%s&rdquo; не был загружен. Вы указали правильное имя файла?"
58
+
59
+ #: /home/paco/user-photo/user-photo.php:182
60
+ #, php-format
61
+ msgid "The uploaded file type &ldquo;%s&rdquo; is not allowed."
62
+ msgstr "Загруженный файл &ldquo;%s&rdquo; не разрешен."
63
+
64
+ #: /home/paco/user-photo/user-photo.php:195
65
+ #: /home/paco/user-photo/user-photo.php:541
66
+ msgid "Unable to get image dimensions."
67
+ msgstr "Невозможно получить данные о изображении."
68
+
69
+ #: /home/paco/user-photo/user-photo.php:211
70
+ msgid "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."
71
+ msgstr "Папка хранения фотографий отсутствует и не может быть создана. Убедитесь, что у вас есть права доступа к папке /wp-content/uploads/."
72
+
73
+ #: /home/paco/user-photo/user-photo.php:222
74
+ msgid "Unable to move the file to the user photo upload content directory."
75
+ msgstr "Невозможно перенести файл в папку хранения фото."
76
+
77
+ #: /home/paco/user-photo/user-photo.php:358
78
+ msgid "Your Photo"
79
+ msgstr "Ваше фото"
80
+
81
+ #: /home/paco/user-photo/user-photo.php:358
82
+ msgid "User Photo"
83
+ msgstr "Фото пользователя"
84
+
85
+ #: /home/paco/user-photo/user-photo.php:370
86
+ msgid "Your profile photo has been submitted for review."
87
+ msgstr "Ваше фото было отправлено на рассмотрение."
88
+
89
+ #: /home/paco/user-photo/user-photo.php:372
90
+ msgid "Your chosen profile photo has been rejected."
91
+ msgstr "Выбранное вами фото отклонено."
92
+
93
+ #: /home/paco/user-photo/user-photo.php:375
94
+ msgid "Reason: "
95
+ msgstr "Причина:"
96
+
97
+ #: /home/paco/user-photo/user-photo.php:388
98
+ msgid "Upload image file:"
99
+ msgstr "Загрузить файл изображения:"
100
+
101
+ #: /home/paco/user-photo/user-photo.php:392
102
+ #, php-format
103
+ msgid "max upload size %s"
104
+ msgstr "максимальный размер %s"
105
+
106
+ #: /home/paco/user-photo/user-photo.php:400
107
+ msgid "Approval status:"
108
+ msgstr "Статус подтверждения:"
109
+
110
+ #: /home/paco/user-photo/user-photo.php:402
111
+ msgid "pending"
112
+ msgstr "ожидает решения"
113
+
114
+ #: /home/paco/user-photo/user-photo.php:403
115
+ msgid "rejected"
116
+ msgstr "отклонено"
117
+
118
+ #: /home/paco/user-photo/user-photo.php:404
119
+ msgid "approved"
120
+ msgstr "разрешено"
121
+
122
+ #: /home/paco/user-photo/user-photo.php:408
123
+ msgid "The photo is inappropriate."
124
+ msgstr "Фото неуместно."
125
+
126
+ #: /home/paco/user-photo/user-photo.php:413
127
+ msgid "Delete photo?"
128
+ msgstr "Удалить фото?"
129
+
130
+ #: /home/paco/user-photo/user-photo.php:455
131
+ msgid "Options saved."
132
+ msgstr "Настройки сохранены."
133
+
134
+ #: /home/paco/user-photo/user-photo.php:466
135
+ msgid "Maximum dimension: "
136
+ msgstr "Максимальный размер:"
137
+
138
+ #: /home/paco/user-photo/user-photo.php:472
139
+ msgid "Thumbnail dimension: "
140
+ msgstr "Размер тамбнейла:"
141
+
142
+ #: /home/paco/user-photo/user-photo.php:478
143
+ msgid "JPEG compression: "
144
+ msgstr "Компрессия/качество JPEG:"
145
+
146
+ #: /home/paco/user-photo/user-photo.php:484
147
+ msgid "Notify this administrator by email when user photo needs approval: "
148
+ msgstr "Уведомить этого администратора по электронной почте, когда фото пользователя требует модерации:"
149
+
150
+ #: /home/paco/user-photo/user-photo.php:506
151
+ msgid "Require user photo moderation for all users at or below this level: "
152
+ msgstr "Требуется модерация фотографий всех пользователей этого уровня и ниже:"
153
+
154
+ #: /home/paco/user-photo/user-photo.php:524
155
+ msgid "Update options &raquo;"
156
+ msgstr "Обновить настройки &raquo;"
157
+
158
+ #: /home/paco/user-photo/user-photo.php:551
159
+ msgid "Filetype not supported."
160
+ msgstr "Тип файла не поддерживается."
161
+
162
+ #: /home/paco/user-photo/user-photo.php:565
163
+ msgid "Unrecognized image format."
164
+ msgstr "Нераспознанный формат файла."
165
+
166
+ #: /home/paco/user-photo/user-photo.php:597
167
+ #: /home/paco/user-photo/user-photo.php:602
168
+ #: /home/paco/user-photo/user-photo.php:607
169
+ msgid "Thumbnail path invalid"
170
+ msgstr "Неправильный путь к тамбнейлу"
171
+
readme.txt CHANGED
@@ -1,25 +1,241 @@
1
- === Plugin Name ===
2
- Contributors: westonruter
3
  Tags: users, photos, images
4
- Tested up to: 2.3.1
5
- Stable tag: 0.7
6
 
7
  Allows a user to associate a photo with their account and for this photo to be displayed in their posts and comments.
8
 
9
  == Description ==
10
 
11
- Allows users to associate photos with their accounts by accessing their "Your Profile" page. Admins may
12
- add a user photo by accessing the "Edit User" page. Uploaded images are resized to fit the dimensions specified
13
- on the options page; a thumbnail image is also generated. New template tags introduced are:
 
 
14
 
15
- * <code>the_author_photo()</code>
16
- * <code>the_author_thumbnail()</code>
17
- * <code>comment_author_photo()</code>
18
- * <code>comment_author_thumbnail()</code>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  Uploaded images may be moderated by administrators via the "Edit User" page.
21
 
22
- == Todo ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  1. Add a management page to allow admins to quickly approve/reject user photos.
24
  1. Add option so that when a photo is rejected, the user is notified.
25
  1. Restrict image types acceptable?
 
 
 
 
 
1
+ === User Photo ===
2
+ Contributors: cptnwinky, westonruter
3
  Tags: users, photos, images
4
+ Tested up to: 2.7
5
+ Stable tag: trunk
6
 
7
  Allows a user to associate a photo with their account and for this photo to be displayed in their posts and comments.
8
 
9
  == Description ==
10
 
11
+ Allows a user to associate a profile photo with their account through their "Your Profile" page. Admins may
12
+ add a user profile photo by accessing the "Edit User" page. Uploaded images are resized to fit the dimensions specified
13
+ on the options page; a thumbnail image correspondingly is also generated.
14
+ User photos may be displayed within a post or a comment to
15
+ help identify the author. New template tags introduced are:
16
 
17
+ * <code>userphoto_the_author_photo()</code>
18
+ * <code>userphoto_the_author_thumbnail()</code>
19
+ * <code>userphoto_comment_author_photo()</code>
20
+ * <code>userphoto_comment_author_thumbnail()</code>
21
+
22
+ *Important: all of these "template tags" must appear inside of PHP script blocks (see examples below).*
23
+ The first two should be placed in the posts loop near <code>the_author()</code>, and the second two in the comments
24
+ loop near <code>comment_author()</code> (or their respective equivalents). Furthermore, <code>userphoto_the_author_photo()</code>
25
+ and <code>userphoto_the_author_thumbnail()</code> may be called anywhere (i.e. sidebar) if <code>$authordata</code> is set.
26
+
27
+ The output of these template tags may be modified by passing four parameters: <code>$before</code>, <code>$after</code>,
28
+ <code>$attributes</code>, and <code>$default_src</code>, as in: <code>userphoto_the_author_photo($before, $after, $attributes, $default_src)</code>.
29
+ If the user photo exists (or <code>$default_src</code> is supplied), then the text provided in the <code>$before</code> and <code>$after</code> parameters is respectively
30
+ prefixed and suffixed to the generated <code>img</code> tag (a common pattern in WordPress). If attributes are provided in the <code>$attributes</code>
31
+ parameter, then they are returned as attributes of the generated <code>img</code> element. For example: <code>userphoto_the_author_photo('', '', array(style => 'border:0'))</code>
32
+ Just added in 0.8.1 release are these two new template tags:
33
+
34
+ * <code>userphoto($user, $before = '', $after = '', $attributes = array(), $default_src = '')</code>
35
+ * <code>userphoto_thumbnail($user, $before = '', $after = '', $attributes = array(), $default_src = '')</code>
36
+
37
+ By using these, it is uneccessary to set the global <code>$authordata</code> to display a photo. Just pass <code>$authordata</code>, <code>$curauth</code> or
38
+ whatever variable you have which contains the user object, or (as of version 0.9), pass in a user ID or a user login name.
39
+
40
+ Here's an example that shows a few ways of inserting a user's photo into the post loop:
41
+ //this will display the user's avatar if they don't have a user photo,
42
+
43
+ <?php while (have_posts()) : the_post(); ?>
44
+ <div class="post" id="post-<?php the_ID(); ?>">
45
+ <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
46
+ <div class="meta">
47
+ <?php the_time('F jS, Y') ?>
48
+ by <?php the_author() ?>
49
+
50
+ <!-- displays the user's photo and then thumbnail -->
51
+ <?php userphoto_the_author_photo() ?>
52
+ <?php userphoto_the_author_thumbnail() ?>
53
+
54
+ <!-- the following two do the same since $authordata populated -->
55
+ <?php userphoto($authordata) ?>
56
+ <?php userphoto_thumbnail($authordata) ?>
57
+
58
+ <!-- and this is how to customize the output -->
59
+ <?php userphoto_the_author_photo(
60
+ '<b>Photo of me: ',
61
+ '</b>',
62
+ array('class' => 'photo'),
63
+ get_template_directory_uri() . '/nophoto.jpg'
64
+ ) ?>
65
+ </div>
66
+ <?php the_content('Read the rest of this entry &raquo;'); ?>
67
+ </div>
68
+ <?php endwhile; ?>
69
+
70
+ If you want to display the user's photo in the sidebar, just get the user ID or object and pass it into <code>userphoto()</code> or <code>userphoto_thumbnail()</code> like this:
71
+
72
+ <?php userphoto($posts[0]->post_author); ?>
73
+
74
+ If you want to display a user's photo their author page, you may do this:
75
+
76
+ <?php userphoto($wp_query->get_queried_object()) ?>
77
+
78
+ In version 0.9 the boolean function `userphoto_exists($user)` has been introduced which returns true if the user has a photo and false if they do not.
79
+ Argument `$user` may be user object, ID, or login name. This function can be used along with avatars:
80
+
81
+ <?php
82
+ if(userphoto_exists($user))
83
+ userphoto($user);
84
+ else
85
+ echo get_avatar($user->ID, 96);
86
+ ?>
87
+
88
+ Or if the new "Serve Avatar as Fallback" option is turned on, then the avatar will be served by any of the regular calls to display the user photo:
89
+
90
+ <?php
91
+ //this will display the user's avatar if they don't have a user photo,
92
+ // and if "Serve Avatar as Fallback" is turned on
93
+ userphoto($user);
94
+ ?>
95
+
96
+ Additionally, all of the regular function calls to display the user photo may be done away with alltogether if the new "Override Avatar with User Photo"
97
+ option is enabled:
98
+
99
+ <?php
100
+ //both will display the user photo if it exists
101
+ // and if "Override Avatar with User Photo" is turned on
102
+ echo get_avatar($user_id);
103
+ echo get_avatar($user->user_email);
104
+ ?>
105
+
106
+ Both options "Serve Avatar as Fallback" and "Override Avatar with User Photo" require that the 'Avatar Display' setting under Discussion be set to "Show".
107
 
108
  Uploaded images may be moderated by administrators via the "Edit User" page.
109
 
110
+ Localizations included for Spanish, German, Dutch, Polish, Russian, French, Hungarian, Brazilian Portuguese, Italian, and Catalan.
111
+
112
+ If you value this plugin, *please donate* to ensure that it may continue to be maintained and improved.
113
+
114
+ == Changelog ==
115
+
116
+ = 2009-02-13 =
117
+
118
+ * Added Catalan localization. Thanks Robert!
119
+
120
+ *2009-02-28 =
121
+
122
+ * Added Italian localization. Thanks Federico!
123
+
124
+ = 2009-02-17 =
125
+
126
+ * Added Brazilian Portuguese localization. Thanks gui!
127
+
128
+ = 2009-01-07 =
129
+
130
+ * Added Hungarian localization. Thanks Csaba!
131
+
132
+ = 2008-12-11 =
133
+
134
+ * Added French localization. Thanks Jean-Pierre!
135
+
136
+ = 2008-11-14: 0.9.4 =
137
+
138
+ * Now displaying error message if <code>wp_upload_dir()</code> fails when trying to display a user photo.
139
+
140
+ = 2008-11-14: 0.9.3 =
141
+
142
+ * Forcing the uploaded filename to lower-case
143
+
144
+ = 2008-11-03: 0.9.2 =
145
+
146
+ * Updated error message to include results for <code>wp_upload_dir()</code>
147
+
148
+ = 2008-09-22: 0.9.1 =
149
+
150
+ * Updated error messages to be more helpful (includes the paths in question). This will help debug some of the issues that have been raised on the forums lately.
151
+
152
+ = 2008-09-22: 0.9 =
153
+
154
+ * First argument to `userphoto()` and `userphoto_thumbnail()` may now just be a user ID or user login name in addition to a user object.
155
+ * New "Serve Avatar as Fallback" option; this is disabled by default.
156
+ * New boolean function `userphoto_exists($user)` which returns true if the user has a photo and false if they do not. Argument `$user` may be user object, ID, or login name.
157
+ * New option "Override Avatar with User Photo"; disabled by default.
158
+ * Adding `class="photo"` by default if no class attribute is supplied
159
+ * Fixed issue where thumbnail (and associated usermeta) wasn't being deleted along with the full-size photo (thanks Oliver).
160
+ * Now using `wp_upload_dir()` to get the basedir for where the userphoto directory will be located.
161
+
162
+ = 2008-08-01: 0.8.2 =
163
+
164
+ * Verified that works in WP 2.6; added note explaining what the error message regarding what "image resizing not available" means... namely that the GD module is not installed.
165
+
166
+ = 2008-05-29: 0.8.1 =
167
+
168
+ * Added localization for Russian (thanks Kyr!)
169
+
170
+ = 2008-05-17: 0.8.1 =
171
+
172
+ * Finally updated the plugin for WP 2.5. Note that it still worked for 2.5, it's just the admin interfaces needed to be updated. Also added <code>userphoto()</code> and <code>userphoto_thumbnail()</code> template tags.
173
+
174
+ = 2008-04-23: 0.8.0.5 =
175
+
176
+ * Added localization for Polish (thanks Maciej!)
177
+
178
+ = 2008-04-04: 0.8.0.4 =
179
+
180
+ * Fixed issue where incorrect path was being generated for default photo.
181
+
182
+ = 2008-04-04: 0.8.0.3 =
183
+
184
+ * Using `wp_mail` instead of `mail` (Thanks again, Kyle.)
185
+
186
+ = 2008-03-28: 0.8.0.2b =
187
+
188
+ * Ensured that "unapproved" photos are not displayed. (Thanks Kyle.)
189
+
190
+ = 2008-02-24: 0.8.0.2 =
191
+
192
+ * Made minor improvement to security.
193
+
194
+ = 2008-02-13: 0.8.0.1 =
195
+
196
+ * Removed <code>print_r()</code> from being called when using <code>$default_src</code> (thanks David!)
197
+
198
+ = 2008-02-04: 0.8 =
199
+
200
+ * Allow before and after text to be outputted when there is a user photo.
201
+ * Allow attributes to be passed into template tags, including a default SRC value to be used when there is no user photo.
202
+ * Added Dutch localization translated by Joep Stender (thanks!)
203
+
204
+ = 2008-01-07: 0.7.4b =
205
+
206
+ * Added German localization translated by Robert Harm (thanks!)
207
+
208
+ = 2008-01-06: 0.7.4 =
209
+
210
+ * Added support for localization and added Spanish localization translated by Pakus (thanks!)
211
+
212
+ = 2008-01-02: 0.7.3 =
213
+
214
+ * Fixed issue where the post author photo was inadvertently used for non-registered comment author photos.
215
+
216
+ = 2007-12-28: 0.7.2 =
217
+
218
+ * Improved error message raised when unable to create 'userphoto' directory under /wp-content/uploads/. It now asks about whether write-permissions are set for the directory.
219
+ * Improved the plugin activation handler.
220
+ * All uploaded images are now explicitly set to chmod 666.
221
+
222
+ = 2007-12-22: 0.7.1 =
223
+
224
+ * All functions (and template tags) now are prefixed with "userphoto_"
225
+
226
+ = 2007-12-18: 0.7.0.1 =
227
+
228
+ * Now using `siteurl` option instead of `home` option
229
+ * Fixed the inclusion of the stylesheet for the options page
230
+
231
+ = Todo =
232
+ 1. When changing the authorization level, all previous users' photos should be automatically approved if they meet the minimum user level
233
+ 1. Include a get_userphoto() and get_userphoto_thumbnail() ?
234
  1. Add a management page to allow admins to quickly approve/reject user photos.
235
  1. Add option so that when a photo is rejected, the user is notified.
236
  1. Restrict image types acceptable?
237
+ 1. Add an option to indicate a default photo to be used when none supplied.
238
+
239
+ == Screenshots ==
240
+ 1. Admin section in User Profile page
241
+
screenshot-1.jpg ADDED
Binary file
user-photo.php CHANGED
@@ -1,18 +1,44 @@
1
  <?php
2
-
3
  /*
4
  Plugin Name: User Photo
5
  Plugin URI: http://wordpress.org/extend/plugins/user-photo/
6
- Description: Allows users to associate photos with their accounts by accessing their "Your Profile" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image is also generated. New template tags introduced are: <code>the_author_photo</code>, <code>the_author_thumbnail</code>, <code>comment_author_photo</code>, and <code>comment_author_thumbnail</code>. Uploaded images may be moderated by administrators.
7
- Author: Weston Ruter
8
- Version: 0.7
9
- Author URI: http://weston.ruter.net/
10
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  */
12
 
13
- if(!function_exists('imagecopyresampled'))
14
- trigger_error(__("Plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions.", 'userphoto'), E_USER_ERROR);
15
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  $userphoto_validtypes = array(
18
  "image/jpeg" => true,
@@ -25,69 +51,266 @@ $userphoto_validtypes = array(
25
  define('USERPHOTO_PENDING', 0);
26
  define('USERPHOTO_REJECTED', 1);
27
  define('USERPHOTO_APPROVED', 2);
 
 
 
28
  #define('USERPHOTO_DEFAULT_MAX_DIMENSION', 150);
29
  #define('USERPHOTO_DEFAULT_THUMB_DIMENSION', 80);
30
  #define('USERPHOTO_DEFAULT_JPEG_COMPRESSION', 90);
31
  #define('USERPHOTO_DEFAULT_LEVEL_MODERATED', 2);
 
 
32
 
33
  add_option("userphoto_jpeg_compression", 90);
34
  add_option("userphoto_maximum_dimension", 150);
35
  add_option("userphoto_thumb_dimension", 80);
36
  add_option("userphoto_admin_notified", 0); //0 means disable
37
  add_option("userphoto_level_moderated", 2); //Note: -1 means disable
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- function get_the_author_photo($user_id = false){
40
- global $authordata;
41
- global $comment;
42
- if(!$user_id){
43
- if(isset($comment) && $comment->user_id)
44
- $user_id = $comment->user_id;
45
- else if(isset($authordata))
46
- $user_id = $authordata->ID;
47
- else trigger_error("Unable to discern user ID.");
48
- }
49
- if(($userdata = get_userdata($user_id)) && $userdata->userphoto_image_file){
50
- print '<img src="' . get_option('home') . '/wp-content/uploads/userphoto/' . $userdata->userphoto_image_file . '"';
51
- print ' alt="' . htmlspecialchars($userdata->display_name) . '"';
52
- print ' width="' . htmlspecialchars($userdata->userphoto_image_width) . '"';
53
- print ' height="' . htmlspecialchars($userdata->userphoto_image_height) . '"';
54
- print " />";
55
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
57
- function get_the_author_thumbnail($user_id){
58
- global $authordata;
59
- global $comment;
60
- if(!$user_id){
61
- if(isset($comment) && $comment->user_id)
62
- $user_id = $comment->user_id;
63
- else if(isset($authordata))
64
- $user_id = $authordata->ID;
65
- else trigger_error("Unable to discern user ID.");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
67
- if(($userdata = get_userdata($user_id)) && $userdata->userphoto_thumb_file){
68
- print '<img src="' . get_option('home') . '/wp-content/uploads/userphoto/' . $userdata->userphoto_thumb_file . '"';
69
- print ' alt="' . htmlspecialchars($userdata->display_name) . '"';
70
- print ' width="' . htmlspecialchars($userdata->userphoto_thumb_width) . '"';
71
- print ' height="' . htmlspecialchars($userdata->userphoto_thumb_height) . '"';
72
- print " />";
 
 
 
 
 
 
 
73
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
 
76
- function comment_author_photo(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  global $comment;
78
- echo get_the_author_photo($comment->user_id);
 
79
  }
80
- function comment_author_thumbnail(){
81
  global $comment;
82
- echo get_the_author_thumbnail($comment->user_id);
 
83
  }
84
- function the_author_photo(){
85
- global $authordata;
86
- echo get_the_author_photo($authordata->ID);
 
87
  }
88
- function the_author_thumbnail(){
89
  global $authordata;
90
- echo get_the_author_thumbnail($authordata->ID);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
92
 
93
 
@@ -101,17 +324,23 @@ function userphoto_profile_update($userID){
101
  if(@$_POST['userphoto_delete']){
102
  delete_usermeta($userID, "userphoto_error");
103
  if($userdata->userphoto_image_file){
104
- $imagepath = ABSPATH . "/wp-content/uploads/userphoto/" . basename($userdata->userphoto_image_file);
105
- $thumbpath = ABSPATH . "/wp-content/uploads/userphoto/" . basename($userdata->userphoto_image_file);
 
 
106
 
107
  if(file_exists($imagepath) && !@unlink($imagepath)){
108
- update_usermeta($userID, 'userphoto_error', __("Unable to delete photo.", 'userphoto'));
109
  }
110
  else {
111
- delete_usermeta($userID, "userphoto_image_file");
112
  delete_usermeta($userID, "userphoto_approvalstatus");
 
113
  delete_usermeta($userID, "userphoto_image_width");
114
  delete_usermeta($userID, "userphoto_image_height");
 
 
 
115
  }
116
  }
117
  }
@@ -126,31 +355,31 @@ function userphoto_profile_update($userID){
126
  switch($_FILES['userphoto_image_file']['error']){
127
  case UPLOAD_ERR_INI_SIZE:
128
  case UPLOAD_ERR_FORM_SIZE:
129
- $error = __("The uploaded file exceeds the max upload size.", 'userphoto');
130
  break;
131
  case UPLOAD_ERR_PARTIAL:
132
- $error = __("The uploaded file was only partially uploaded.", 'userphoto');
133
  break;
134
  case UPLOAD_ERR_NO_FILE:
135
- $error = __("No file was uploaded.", 'userphoto');
136
  break;
137
  case UPLOAD_ERR_NO_TMP_DIR:
138
- $error = __("Missing a temporary folder.", 'userphoto');
139
  break;
140
  case UPLOAD_ERR_CANT_WRITE:
141
- $error = __("Failed to write file to disk.", 'userphoto');
142
  break;
143
  case UPLOAD_ERR_EXTENSION:
144
- $error = __("File upload stopped by extension.", 'userphoto');
145
  break;
146
  default:
147
- $error = __("File upload failed due to unknown error.", 'userphoto');
148
  }
149
  }
150
  else if(!$_FILES['userphoto_image_file']['size'])
151
- $error = sprintf(__("The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?", 'userphoto'), $_FILES['userphoto_image_file']['name']);
152
  else if(@!$userphoto_validtypes[$_FILES['userphoto_image_file']['type']]) //!preg_match("/\.(" . join('|', $userphoto_validextensions) . ")$/i", $_FILES['userphoto_image_file']['name'])) ||
153
- $error = sprintf(__("The uploaded file type &ldquo;%s&rdquo; is not allowed.", 'userphoto'), $_FILES['userphoto_image_file']['type']);
154
 
155
  $tmppath = $_FILES['userphoto_image_file']['tmp_name'];
156
 
@@ -163,36 +392,40 @@ function userphoto_profile_update($userID){
163
 
164
  $imageinfo = getimagesize($tmppath);
165
  if(!$imageinfo || !$imageinfo[0] || !$imageinfo[1])
166
- $error = __("Unable to get image dimensions.", 'userphoto');
167
  else if($imageinfo[0] > $userphoto_maximum_dimension || $imageinfo[1] > $userphoto_maximum_dimension){
168
  if(userphoto_resize_image($tmppath, null, $userphoto_maximum_dimension, $error))
169
  $imageinfo = getimagesize($tmppath);
170
  }
171
 
172
  //else if($imageinfo[0] > $userphoto_maximum_dimension)
173
- // $error = sprintf(__("The uploaded image had a width of %d pixels. The max width is %d.", 'userphoto'), $imageinfo[0], $userphoto_maximum_dimension);
174
  //else if($imageinfo[0] > $userphoto_maximum_dimension)
175
- // $error = sprintf(__("The uploaded image had a height of %d pixels. The max height is %d.", 'userphoto'), $imageinfo[1], $userphoto_maximum_dimension);
176
  }
177
 
178
  if(!$error){
179
- $dir = ABSPATH . "/wp-content/uploads/userphoto";
 
 
180
  #$umask = umask(0);
181
- if(!file_exists($dir) && !mkdir($dir, 0777))
182
- $error = __("The userphoto upload content directory does not exist and could not be created.", 'userphoto');
183
  #umask($umask);
184
 
185
  if(!$error){
186
  #$oldFile = basename($userdata->userphoto_image_file);
187
- $imagefile = preg_replace('/^.+(?=\.\w+$)/', $userdata->user_nicename, $_FILES['userphoto_image_file']['name']);
188
  $imagepath = $dir . '/' . $imagefile;
189
  $thumbfile = preg_replace("/(?=\.\w+$)/", '.thumbnail', $imagefile);
190
  $thumbpath = $dir . '/' . $thumbfile;
191
 
192
  if(!move_uploaded_file($tmppath, $imagepath)){
193
- $error = __("Unable to move the file to the user photo upload content directory.", 'userphoto');
194
  }
195
  else {
 
 
196
  #Generate thumbnail
197
  $userphoto_thumb_dimension = get_option( 'userphoto_thumb_dimension' );
198
  #if(empty($userphoto_thumb_dimension))
@@ -202,6 +435,7 @@ function userphoto_profile_update($userID){
202
  }
203
  else {
204
  copy($imagepath, $thumbpath);
 
205
  }
206
  $thumbinfo = getimagesize($thumbpath);
207
 
@@ -212,9 +446,9 @@ function userphoto_profile_update($userID){
212
  $admin_notified = get_option('userphoto_admin_notified');
213
  if($admin_notified){
214
  $admin = get_userdata($admin_notified);
215
- @mail($admin->user_email,
216
- "User Photo for " . $userdata->display_name . " Needs Approval",
217
- get_option("home") . "/wp-admin/user-edit.php?user_id=" . $userdata->ID . "#userphoto");
218
  }
219
  }
220
  else {
@@ -261,23 +495,27 @@ add_action('profile_update', 'userphoto_profile_update');
261
 
262
  function userphoto_delete_user($userID){
263
  $userdata = get_userdata($userID);
 
 
 
 
264
  if($userdata->userphoto_image_file)
265
- @unlink(ABSPATH . "/wp-content/uploads/userphoto/" . basename($userdata->userphoto_image_file));
266
  if($userdata->userphoto_thumb_file)
267
- @unlink(ABSPATH . "/wp-content/uploads/userphoto/" . basename($userdata->userphoto_thumb_file));
268
  }
269
  add_action('delete_user', 'userphoto_delete_user');
270
 
271
 
272
  function userphoto_admin_useredit_head(){
273
  if(preg_match("/(user-edit\.php|profile.php)$/", $_SERVER['PHP_SELF']))
274
- print '<link rel="stylesheet" href="../wp-content/plugins/userphoto/admin.css" />';
275
  }
276
  function userphoto_admin_options_head(){
277
- print '<link rel="stylesheet" href="../wp-content/plugins/userphoto/admin.css" />';
278
  }
279
 
280
- add_action('admin_head-options_page_userphoto/userphoto', 'userphoto_admin_options_head');
281
  add_action('admin_head', 'userphoto_admin_useredit_head');
282
  #add_action('admin_head-userphoto', 'userphoto_admin_head');
283
 
@@ -297,50 +535,74 @@ function userphoto_display_selector_fieldset(){
297
 
298
  #$userphoto = unserialize($userdata->userphoto);
299
 
 
 
 
 
 
 
 
 
 
300
  ?>
301
- <fieldset id='userphoto'>
302
- <script type="text/javascript">
303
- var form = document.getElementById('your-profile');
304
- //form.enctype = "multipart/form-data"; //FireFox, Opera, et al
305
- form.encoding = "multipart/form-data"; //IE5.5
306
- form.setAttribute('enctype', 'multipart/form-data'); //required for IE6 (is interpreted into "encType")
 
 
 
307
 
308
- function userphoto_onclick(){
309
- var is_delete = document.getElementById('userphoto_delete').checked;
310
- document.getElementById('userphoto_image_file').disabled = is_delete;
311
-
312
- if(document.getElementById('userphoto_approvalstatus'))
313
- document.getElementById('userphoto_approvalstatus').disabled = is_delete;
314
- if(document.getElementById('userphoto_rejectionreason'))
315
- document.getElementById('userphoto_rejectionreason').disabled = is_delete;
316
- }
317
- function userphoto_approvalstatus_onchange(){
318
- var select = document.getElementById('userphoto_approvalstatus');
319
- document.getElementById('userphoto_rejectionreason').style.display = (select.options[select.selectedIndex].value == <?php echo USERPHOTO_REJECTED ?> ? 'block' : 'none');
320
- }
321
- <?php if($profileuser->userphoto_error && @$_POST['action'] == 'update'): ?>
322
- window.location = "#userphoto";
323
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
324
 
325
- </script>
326
- <legend><?php echo $isSelf ? _e("Your Photo", 'userphoto') : _e("User Photo", 'userphoto') ?></legend>
327
  <?php if($profileuser->userphoto_image_file): ?>
328
- <p class='image'><img src="<?php echo get_option('home') . '/wp-content/uploads/userphoto/' . $profileuser->userphoto_image_file . "?" . rand() ?>" alt="Full size image" /><br />
 
 
 
 
329
  Full size
330
  </p>
331
- <p class='image'><img src="<?php echo get_option('home') . '/wp-content/uploads/userphoto/' . $profileuser->userphoto_thumb_file . "?" . rand() ?>" alt="Thumbnail image" /><br />
332
  Thumb
333
  </p>
334
  <hr />
335
 
336
  <?php if(!$current_user->has_cap('edit_users')): ?>
337
  <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING): ?>
338
- <p id='userphoto-status-pending'><?php echo _e("Your profile photo has been submitted for review.", 'userphoto') ?></p>
339
  <?php elseif($profileuser->userphoto_approvalstatus == USERPHOTO_REJECTED): ?>
340
- <p id='userphoto-status-rejected'><strong>Notice: </strong> <?php _e("Your chosen profile photo has been rejected.", 'userphoto') ?>
341
  <?php
342
  if($profileuser->userphoto_rejectionreason){
343
- _e("Reason: ", 'userphoto');
344
  echo htmlspecialchars($profileuser->userphoto_rejectionreason);
345
  }
346
  ?>
@@ -353,34 +615,38 @@ function userphoto_display_selector_fieldset(){
353
  <p id='userphoto-upload-error'><strong>Upload error:</strong> <?php echo $profileuser->userphoto_error ?></p>
354
  <?php endif; ?>
355
  <p id='userphoto_image_file_control'>
356
- <label><?php echo _e("Upload image file:", 'userphoto') ?>
 
357
  <span class='field-hint'>(<?php
358
- //if(!get_option('userphoto_autoresize'))
359
- // printf(__("max dimensions %d&times;%d;"), get_option('userphoto_maximum_dimension'), get_option('userphoto_maximum_dimension'));
360
  printf(__("max upload size %s"),ini_get("upload_max_filesize"));
361
- ?>)</span>
362
- <input type="file" name="userphoto_image_file" id="userphoto_image_file" /></label>
363
  </p>
364
- <!--<em>or</em>
365
- <label for="uphoto-fileURL">Image URL: </label><input type="url" name="uphoto-fileURL" id="uphoto-fileURL" value="http://" /><br />-->
366
  <?php if($current_user->has_cap('edit_users') && ($profileuser->ID != $current_user->ID) && $profileuser->userphoto_image_file): ?>
367
  <p id="userphoto-approvalstatus-controls" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING) echo "class='pending'" ?>>
368
- <label><?php _e("Approval status:", 'userphoto') ?>
369
  <select name="userphoto_approvalstatus" id="userphoto_approvalstatus" onchange="userphoto_approvalstatus_onchange()">
370
- <option value="<?php echo USERPHOTO_PENDING ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING) echo " selected='selected' " ?>><?php _e("pending", 'userphoto') ?></option>
371
- <option value="<?php echo USERPHOTO_REJECTED ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_REJECTED) echo " selected='selected' " ?>><?php _e("rejected", 'userphoto') ?></option>
372
- <option value="<?php echo USERPHOTO_APPROVED ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_APPROVED) echo " selected='selected' " ?>><?php _e("approved", 'userphoto') ?></option>
373
  </select></label><br /><textarea name="userphoto_rejectionreason" <?php
374
  if($profileuser->userphoto_approvalstatus != USERPHOTO_REJECTED)
375
  echo ' style="display:none"';
376
- ?> id="userphoto_rejectionreason"><?php echo $profileuser->userphoto_rejectionreason ? $profileuser->userphoto_rejectionreason : __('The photo is inappropriate.', 'userphoto') ?></textarea>
377
  </p>
378
  <script type="text/javascript">userphoto_approvalstatus_onchange()</script>
379
  <?php endif; ?>
380
  <?php if($profileuser->userphoto_image_file): ?>
381
- <p><label><input type="checkbox" name="userphoto_delete" id="userphoto_delete" onclick="userphoto_onclick()" /> <?php _e('Delete photo?', 'userphoto')?></label></p>
382
  <?php endif; ?>
383
- </fieldset>
 
 
 
 
 
 
 
 
384
  <?php
385
  }
386
  add_action('show_user_profile', 'userphoto_display_selector_fieldset');
@@ -401,9 +667,13 @@ function userphoto_options_page(){
401
  $userphoto_thumb_dimension = get_option( 'userphoto_thumb_dimension' );
402
  $userphoto_admin_notified = get_option( 'userphoto_admin_notified' );
403
  $userphoto_level_moderated = get_option( 'userphoto_level_moderated' );
 
 
404
 
405
  #Get new updated option values, and save them
406
  if( @$_POST['action'] == 'update' ) {
 
 
407
  $userphoto_jpeg_compression = (int)$_POST['userphoto_jpeg_compression'];
408
  update_option('userphoto_jpeg_compression', $userphoto_jpeg_compression);
409
 
@@ -419,72 +689,116 @@ function userphoto_options_page(){
419
  $userphoto_level_moderated = (int)$_POST['userphoto_level_moderated'];
420
  update_option('userphoto_level_moderated', $userphoto_level_moderated);
421
 
 
 
 
 
 
 
422
  ?>
423
- <div class="updated"><p><strong><?php _e('Options saved.' ); ?></strong></p></div>
424
  <?php
425
  }
426
 
 
 
 
 
 
 
 
427
  ?>
428
  <div class="wrap">
429
  <h2>User Photo Options</h2>
430
- <form method="post" action="options.php" id='userphoto_options_form'>
431
- <?php wp_nonce_field('update-options') ?>
432
- <p>
433
- <label>
434
- <?php _e("Maximum dimension: ", 'userphoto') ?>
435
- <input type="number" min="1" step="1" size="3" name="userphoto_maximum_dimension" value="<?php echo $userphoto_maximum_dimension ?>" />px
 
 
 
 
 
436
  </label>
437
- </p>
438
- <p>
439
- <label>
440
- <?php _e("Thumbnail dimension: ", 'userphoto') ?>
441
- <input type="number" min="1" step="1" size="3" name="userphoto_thumb_dimension" value="<?php echo $userphoto_thumb_dimension ?>" />px
 
442
  </label>
443
- </p>
444
- <p>
445
- <label>
446
- <?php _e("JPEG compression: ", 'userphoto') ?>
447
- <input type="range" min="1" max="100" step="1" size="3" name="userphoto_jpeg_compression" value="<?php echo $userphoto_jpeg_compression ?>" />%
 
448
  </label>
449
- </p>
450
- <p>
451
- <label>
452
- <?php _e("Notify this administrator by email when user photo needs approval: ", 'userphoto') ?>
453
- <select id='userphoto_admin_notified' name="userphoto_admin_notified">
454
- <option value="0" class='none'>(none)</option>
455
- <?php
456
- global $wpdb;
457
- $users = $wpdb->get_results("SELECT ID FROM $wpdb->users ORDER BY user_login");
458
- foreach($users as $user){
459
- $u = get_userdata($user->ID);
460
- if($u->user_level == 10){ #if($u->has_cap('administrator')){
461
- print "<option value='" . $u->ID . "'";
462
- if($userphoto_admin_notified == $u->ID)
463
- print " selected='selected'";
464
- print ">" . $u->user_login . "</option>";
465
- }
466
- }
467
- ?>
468
- </select>
469
  </label>
470
- </p>
471
- <p>
472
- <label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  <!--<input type="checkbox" id="userphoto_do_moderation" onclick="document.getElementById('userphoto_level_moderated').disabled = !this.checked" <?php /*if(isset($userphoto_level_moderated)) echo ' checked="checked"'*/ ?> />-->
474
- <?php _e("Require user photo moderation for all users at or below this level: ", 'userphoto') ?>
475
- <select name="userphoto_level_moderated" id="userphoto_level_moderated">
476
- <option value="-1" <?php if($userphoto_level_moderated == -1) echo ' selected="selected"' ?> class='none'>(none)</option>
477
- <option value="0" <?php if($userphoto_level_moderated == 0) echo ' selected="selected"' ?>>Subscriber</option>
478
- <option value="1" <?php if($userphoto_level_moderated == 1) echo ' selected="selected"' ?>>Contributor</option>
479
- <option value="2" <?php if($userphoto_level_moderated == 2) echo ' selected="selected"' ?>>Author</option>
480
- <option value="7" <?php if($userphoto_level_moderated == 7) echo ' selected="selected"' ?>>Editor</option>
481
- </select>
482
  </label>
 
 
 
 
 
 
 
 
483
  <!--<script type="text/javascript">
484
  document.getElementById('userphoto_do_moderation').onclick();
485
  </script>-->
486
- </p>
487
-
 
 
 
 
488
  <input type="hidden" name="action" value="update" />
489
  <input type="hidden" name="page_options" value="userphoto_jpeg_compression,userphoto_admin_notified,userphoto_maximum_dimension,userphoto_thumb_dimension,userphoto_level_moderated" />
490
 
@@ -506,7 +820,7 @@ function userphoto_resize_image($filename, $newFilename, $maxdimension, &$error)
506
 
507
  $info = @getimagesize($filename);
508
  if(!$info || !$info[0] || !$info[1]){
509
- $error = __("Unable to get image dimensions.", 'userphoto');
510
  }
511
  //From WordPress image.php line 22
512
  else if (
@@ -516,7 +830,7 @@ function userphoto_resize_image($filename, $newFilename, $maxdimension, &$error)
516
  ||
517
  !function_exists( 'imagepng' ) && $info[2] == IMAGETYPE_PNG
518
  ) {
519
- $error = __( 'Filetype not supported.', 'userphoto' );
520
  }
521
  else {
522
  // create the initial copy from the original file
@@ -530,7 +844,7 @@ function userphoto_resize_image($filename, $newFilename, $maxdimension, &$error)
530
  $image = imagecreatefrompng( $filename );
531
  }
532
  if(!isset($image)){
533
- $error = __("Unrecognized image format.", 'userphoto');
534
  return false;
535
  }
536
  if ( function_exists( 'imageantialias' ))
@@ -581,5 +895,3 @@ function userphoto_resize_image($filename, $newFilename, $maxdimension, &$error)
581
  return true;
582
  }
583
 
584
-
585
- ?>
1
  <?php
 
2
  /*
3
  Plugin Name: User Photo
4
  Plugin URI: http://wordpress.org/extend/plugins/user-photo/
5
+ Description: Allows users to associate photos with their accounts by accessing their "Your Profile" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image is also generated. New template tags introduced are: <code>userphoto_the_author_photo</code>, <code>userphoto_the_author_thumbnail</code>, <code>userphoto_comment_author_photo</code>, and <code>userphoto_comment_author_thumbnail</code>. Uploaded images may be moderated by administrators.
6
+ Version: 0.9.4
7
+ Author: <a href="http://weston.ruter.net/">Weston Ruter</a>, <a href="http://dev.dave-wagner.com/">Dave Wagner's Dev Site</a>
8
+
9
+ Original code by Weston Ruter <http://weston.ruter.net> at Shepherd Interactive <http://shepherd-interactive.com>.
10
+ Continued development and maintenance by Dave Wagner <http://dev.dave-wagner.com/>
11
+
12
+ GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License as published by
15
+ the Free Software Foundation; either version 2 of the License, or
16
+ (at your option) any later version.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
 
28
+ define('USERPHOTO_PLUGIN_IDENTIFIER', 'user-photo/user-photo.php');
 
29
 
30
+ if(!function_exists('imagecopyresampled')){
31
+ //Remove this from active plugins
32
+ $active_plugins = get_option('active_plugins');
33
+ array_splice($active_plugins, array_search(USERPHOTO_PLUGIN_IDENTIFIER, $active_plugins), 1); //preg_replace('{^.+(?=[^/]+/[^/]+)}', '', __FILE__)
34
+ update_option('active_plugins', $active_plugins);
35
+
36
+ trigger_error(
37
+ __("User Photo plugin not usable on this system because image resizing is not available, specifically the imagecopyresampled() and related functions. It has been deactivated.", 'user-photo') .
38
+ ' '.
39
+ __("The required <a href='http://www.php.net/gd'>GD module</a> is not available on your system.", 'user-photo')
40
+ , E_USER_ERROR);
41
+ }
42
 
43
  $userphoto_validtypes = array(
44
  "image/jpeg" => true,
51
  define('USERPHOTO_PENDING', 0);
52
  define('USERPHOTO_REJECTED', 1);
53
  define('USERPHOTO_APPROVED', 2);
54
+ #define('USERPHOTO_PLUGINPATH', ABSPATH.'wp-content/plugins/user-photo');
55
+ #define('USERPHOTO_PLUGINLINK', get_settings('siteurl') . 'wp-content/plugins/user-photo/');
56
+
57
  #define('USERPHOTO_DEFAULT_MAX_DIMENSION', 150);
58
  #define('USERPHOTO_DEFAULT_THUMB_DIMENSION', 80);
59
  #define('USERPHOTO_DEFAULT_JPEG_COMPRESSION', 90);
60
  #define('USERPHOTO_DEFAULT_LEVEL_MODERATED', 2);
61
+ define('USERPHOTO_FULL_SIZE', 1);
62
+ define('USERPHOTO_THUMBNAIL_SIZE', 2);
63
 
64
  add_option("userphoto_jpeg_compression", 90);
65
  add_option("userphoto_maximum_dimension", 150);
66
  add_option("userphoto_thumb_dimension", 80);
67
  add_option("userphoto_admin_notified", 0); //0 means disable
68
  add_option("userphoto_level_moderated", 2); //Note: -1 means disable
69
+ add_option("userphoto_use_avatar_fallback", false);
70
+ add_option("userphoto_override_avatar", false);
71
+ $userphoto_using_avatar_fallback = false;
72
+ $userphoto_prevent_override_avatar = false;
73
+
74
+ # Load up the localization file if we're using WordPress in a different language
75
+ # Place it in the "localization" folder and name it "user-photo-[value in wp-config].mo"
76
+ load_plugin_textdomain('user-photo', PLUGINDIR . '/user-photo/localization'); #(thanks Pakus)
77
+
78
+ function userphoto__init(){
79
+ if(get_option('userphoto_override_avatar') && !is_admin())
80
+ add_filter('get_avatar', 'userphoto_filter_get_avatar', 10, 4);
81
+ }
82
+ add_action('init', 'userphoto__init');
83
 
84
+ function userphoto_filter_get_avatar($avatar, $id_or_email, $size, $default){
85
+ global $userphoto_using_avatar_fallback, $wpdb, $userphoto_prevent_override_avatar;
86
+ if($userphoto_using_avatar_fallback)
87
+ return $avatar;
88
+
89
+ if(is_object($id_or_email)){
90
+ if($id_or_email->ID)
91
+ $id_or_email = $id_or_email->ID;
92
+ //Comment
93
+ else if($id_or_email->user_id)
94
+ $id_or_email = $id_or_email->user_id;
95
+ else if($id_or_email->comment_author_email)
96
+ $id_or_email = $id_or_email->comment_author_email;
 
 
 
97
  }
98
+
99
+ if(is_numeric($id_or_email))
100
+ $userid = (int)$id_or_email;
101
+ else if(is_string($id_or_email))
102
+ $userid = (int)$wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_email = '" . mysql_escape_string($id_or_email) . "'");
103
+
104
+ if(!$userid)
105
+ return $avatar;
106
+
107
+ //Figure out which one is closest to the size that we have for the full or the thumbnail
108
+ $full_dimension = get_option('userphoto_maximum_dimension');
109
+ $small_dimension = get_option('userphoto_thumb_dimension');
110
+ $userphoto_prevent_override_avatar = true;
111
+ $img = userphoto__get_userphoto($userid, (abs($full_dimension - $size) < abs($small_dimension - $size)) ? USERPHOTO_FULL_SIZE : USERPHOTO_THUMBNAIL_SIZE, '', '', array(), '');
112
+ $userphoto_prevent_override_avatar = false;
113
+ if($img)
114
+ return $img;
115
+
116
+ return $avatar;
117
  }
118
+
119
+ function userphoto__get_userphoto($user_id, $photoSize, $before, $after, $attributes, $default_src){
120
+ global $userphoto_prevent_override_avatar;
121
+ //Note: when we move to a global default user photo, we can always enter into the following conditional
122
+ if($user_id && ($userdata = get_userdata($user_id))){
123
+ if(($userdata->userphoto_approvalstatus == USERPHOTO_APPROVED) &&
124
+ $image_file = ($photoSize == USERPHOTO_FULL_SIZE ? $userdata->userphoto_image_file : $userdata->userphoto_thumb_file))
125
+ {
126
+ $width = $photoSize == USERPHOTO_FULL_SIZE ? $userdata->userphoto_image_width : $userdata->userphoto_thumb_width;
127
+ $height = $photoSize == USERPHOTO_FULL_SIZE ? $userdata->userphoto_image_height : $userdata->userphoto_thumb_height;
128
+
129
+ $upload_dir = wp_upload_dir();
130
+ if(!empty($upload_dir['error']))
131
+ return "Error: " . $upload_dir['error'];
132
+ $src = trailingslashit($upload_dir['baseurl']) . 'userphoto/' . $image_file;
133
+ }
134
+ else if($default_src){
135
+ $src = $default_src;
136
+ $width = $height = 0;
137
+ }
138
+ else if(get_option('userphoto_use_avatar_fallback') && !$userphoto_prevent_override_avatar){
139
+ $width = $height = get_option($photoSize == USERPHOTO_FULL_SIZE ? 'userphoto_maximum_dimension' : 'userphoto_thumb_dimension');
140
+ global $userphoto_using_avatar_fallback;
141
+ $userphoto_using_avatar_fallback = true;
142
+ $img = get_avatar($user_id, $width);
143
+ $userphoto_using_avatar_fallback = false;
144
+ if(!$img)
145
+ return;
146
+ if(!preg_match('{src=([\'"])(.+?)\1}', $img, $matches))
147
+ return;
148
+ $src = str_replace('&amp;', '&', $matches[2]);
149
+ if(preg_match('{class=([\'"])(.+?)\1}', $img, $matches))
150
+ $attributes['class'] .= ' ' . $matches[2];
151
+ }
152
+ else return '';
153
+
154
+ $img = '';
155
+ $img .= $before;
156
+ $img .= '<img src="' . htmlspecialchars($src) . '"';
157
+ if(empty($attributes['alt']))
158
+ $img .= ' alt="' . htmlspecialchars($userdata->display_name) . '"';
159
+ if(empty($attributes['width']) && !empty($width))
160
+ $img .= ' width="' . htmlspecialchars($width) . '"';
161
+ if(empty($attributes['height']) && !empty($height))
162
+ $img .= ' height="' . htmlspecialchars($height) . '"';
163
+ if(empty($attributes['class']))
164
+ $img .= ' class="photo"';
165
+ if(!empty($attributes)){
166
+ foreach($attributes as $name => $value){
167
+ $img .= " $name=\"" . htmlspecialchars($value) . '"';
168
+ }
169
+ }
170
+ $img .= ' />';
171
+ $img .= $after;
172
+ return $img;
173
  }
174
+ //else if(is_array($failureAttributes)){
175
+ // $img = '';
176
+ // $img .= $before;
177
+ // $img .= '<img ';
178
+ // foreach($failureAttributes as $name => $value){
179
+ // $img .= " $name=\"" . htmlspecialchars($value) . '"';
180
+ // }
181
+ // $img .= ' />';
182
+ // $img .= $after;
183
+ // return $img;
184
+ //}
185
+ else {
186
+ return "";
187
  }
188
+
189
+ }
190
+
191
+
192
+ function userphoto_exists($user){
193
+ if(is_numeric($user))
194
+ $userid = intval($user);
195
+ else if(is_object($user) && @$user->ID)
196
+ $userid = $user->ID;
197
+ else if(is_string($user)){
198
+ $userdata = get_userdatabylogin($user);
199
+ if(!$userdata)
200
+ return false;
201
+ $userid = $userdata->ID;
202
+ }
203
+ else return false;
204
+
205
+ if(!isset($userdata))
206
+ $userdata = get_userdata($userid);
207
+ if(!$userdata || $userdata->userphoto_approvalstatus != USERPHOTO_APPROVED)
208
+ return false;
209
+
210
+ return true;
211
  }
212
 
213
+
214
+ //
215
+ //function userphoto_get_userphoto_the_author_photo($user_id = false){
216
+ // #global $authordata;
217
+ // #global $comment;
218
+ // #if(!$user_id){
219
+ // # if(!empty($comment) && $comment->user_id)
220
+ // #
221
+ // # $user_id = $comment->user_id;
222
+ // # else if(!empty($authordata))
223
+ // # $user_id = $authordata->ID;
224
+ // # //else trigger_error("Unable to discern user ID.");
225
+ // #}
226
+ // if($user_id && ($userdata = get_userdata($user_id)) && $userdata->userphoto_image_file){
227
+ // $img = '<img src="' . get_option('siteurl') . '/wp-content/uploads/userphoto/' . $userdata->userphoto_image_file . '"';
228
+ // $img .= ' alt="' . htmlspecialchars($userdata->display_name) . '"';
229
+ // $img .= ' width="' . htmlspecialchars($userdata->userphoto_image_width) . '"';
230
+ // $img .= ' height="' . htmlspecialchars($userdata->userphoto_image_height) . '"';
231
+ // $img .= ' />';
232
+ // return $img;
233
+ // }
234
+ // #Print default image
235
+ // else {
236
+ // return "";
237
+ // }
238
+ //}
239
+ //function userphoto_get_userphoto_the_author_thumbnail($user_id){
240
+ // #global $authordata;
241
+ // #global $comment;
242
+ // #if(!$user_id){
243
+ // # if(!empty($comment) && $comment->user_id)
244
+ // #
245
+ // # $user_id = $comment->user_id;
246
+ // # else if(!empty($authordata))
247
+ // # $user_id = $authordata->ID;
248
+ // # //else trigger_error("Unable to discern user ID.");
249
+ // #}
250
+ // if($user_id && ($userdata = get_userdata($user_id)) && $userdata->userphoto_thumb_file){
251
+ // $img = '<img src="' . get_option('siteurl') . '/wp-content/uploads/userphoto/' . $userdata->userphoto_thumb_file . '"';
252
+ // $img .= ' alt="' . htmlspecialchars($userdata->display_name) . '"';
253
+ // $img .= ' width="' . htmlspecialchars($userdata->userphoto_thumb_width) . '"';
254
+ // $img .= ' height="' . htmlspecialchars($userdata->userphoto_thumb_height) . '"';
255
+ // $img .= ' />';
256
+ // return $img;
257
+ // }
258
+ // #Print default image
259
+ // else {
260
+ // return "";
261
+ // }
262
+ //}
263
+
264
+ function userphoto_comment_author_photo($before = '', $after = '', $attributes = array(), $default_src = ''){
265
  global $comment;
266
+ if(!empty($comment) && $comment->user_id)
267
+ echo userphoto__get_userphoto($comment->user_id, USERPHOTO_FULL_SIZE, $before, $after, $attributes, $default_src);
268
  }
269
+ function userphoto_comment_author_thumbnail($before = '', $after = '', $attributes = array(), $default_src = ''){
270
  global $comment;
271
+ if(!empty($comment) && $comment->user_id)
272
+ echo userphoto__get_userphoto($comment->user_id, USERPHOTO_THUMBNAIL_SIZE, $before, $after, $attributes, $default_src);
273
  }
274
+ function userphoto_the_author_photo($before = '', $after = '', $attributes = array(), $default_src = ''){
275
+ global $authordata, $curauthor;
276
+ if(!empty($authordata) && $authordata->ID)
277
+ echo userphoto__get_userphoto($authordata->ID, USERPHOTO_FULL_SIZE, $before, $after, $attributes, $default_src);
278
  }
279
+ function userphoto_the_author_thumbnail($before = '', $after = '', $attributes = array(), $default_src = ''){
280
  global $authordata;
281
+ if(!empty($authordata) && $authordata->ID)
282
+ echo userphoto__get_userphoto($authordata->ID, USERPHOTO_THUMBNAIL_SIZE, $before, $after, $attributes, $default_src);
283
+ }
284
+
285
+ function userphoto($user, $before = '', $after = '', $attributes = array(), $default_src = ''){
286
+ if(is_numeric($user))
287
+ $userid = intval($user);
288
+ else if(is_object($user) && @$user->ID)
289
+ $userid = $user->ID;
290
+ else if(is_string($user)){
291
+ $user = get_userdatabylogin($user);
292
+ if(!$user)
293
+ return;
294
+ $userid = $user->ID;
295
+ }
296
+ else return;
297
+
298
+ echo userphoto__get_userphoto($userid, USERPHOTO_FULL_SIZE, $before, $after, $attributes, $default_src);
299
+ }
300
+ function userphoto_thumbnail($user, $before = '', $after = '', $attributes = array(), $default_src = ''){
301
+ if(is_numeric($user))
302
+ $userid = intval($user);
303
+ else if(is_object($user) && @$user->ID)
304
+ $userid = $user->ID;
305
+ else if(is_string($user)){
306
+ $user = get_userdatabylogin($user);
307
+ if(!$user)
308
+ return;
309
+ $userid = $user->ID;
310
+ }
311
+ else return;
312
+
313
+ echo userphoto__get_userphoto($userid, USERPHOTO_THUMBNAIL_SIZE, $before, $after, $attributes, $default_src);
314
  }
315
 
316
 
324
  if(@$_POST['userphoto_delete']){
325
  delete_usermeta($userID, "userphoto_error");
326
  if($userdata->userphoto_image_file){
327
+ $upload_dir = wp_upload_dir();
328
+ $bdir = trailingslashit($upload_dir['basedir']) . 'userphoto/';
329
+ $imagepath = $bdir . basename($userdata->userphoto_image_file);
330
+ $thumbpath = $bdir . basename($userdata->userphoto_thumb_file);
331
 
332
  if(file_exists($imagepath) && !@unlink($imagepath)){
333
+ update_usermeta($userID, 'userphoto_error', __("Unable to delete photo.", 'user-photo'));
334
  }
335
  else {
336
+ @unlink($thumbpath);
337
  delete_usermeta($userID, "userphoto_approvalstatus");
338
+ delete_usermeta($userID, "userphoto_image_file");
339
  delete_usermeta($userID, "userphoto_image_width");
340
  delete_usermeta($userID, "userphoto_image_height");
341
+ delete_usermeta($userID, "userphoto_thumb_file");
342
+ delete_usermeta($userID, "userphoto_thumb_width");
343
+ delete_usermeta($userID, "userphoto_thumb_height");
344
  }
345
  }
346
  }
355
  switch($_FILES['userphoto_image_file']['error']){
356
  case UPLOAD_ERR_INI_SIZE:
357
  case UPLOAD_ERR_FORM_SIZE:
358
+ $error = __("The uploaded file exceeds the max upload size.", 'user-photo');
359
  break;
360
  case UPLOAD_ERR_PARTIAL:
361
+ $error = __("The uploaded file was only partially uploaded.", 'user-photo');
362
  break;
363
  case UPLOAD_ERR_NO_FILE:
364
+ $error = __("No file was uploaded.", 'user-photo');
365
  break;
366
  case UPLOAD_ERR_NO_TMP_DIR:
367
+ $error = __("Missing a temporary folder.", 'user-photo');
368
  break;
369
  case UPLOAD_ERR_CANT_WRITE:
370
+ $error = __("Failed to write file to disk.", 'user-photo');
371
  break;
372
  case UPLOAD_ERR_EXTENSION:
373
+ $error = __("File upload stopped by extension.", 'user-photo');
374
  break;
375
  default:
376
+ $error = __("File upload failed due to unknown error.", 'user-photo');
377
  }
378
  }
379
  else if(!$_FILES['userphoto_image_file']['size'])
380
+ $error = sprintf(__("The file &ldquo;%s&rdquo; was not uploaded. Did you provide the correct filename?", 'user-photo'), $_FILES['userphoto_image_file']['name']);
381
  else if(@!$userphoto_validtypes[$_FILES['userphoto_image_file']['type']]) //!preg_match("/\.(" . join('|', $userphoto_validextensions) . ")$/i", $_FILES['userphoto_image_file']['name'])) ||
382
+ $error = sprintf(__("The uploaded file type &ldquo;%s&rdquo; is not allowed.", 'user-photo'), $_FILES['userphoto_image_file']['type']);
383
 
384
  $tmppath = $_FILES['userphoto_image_file']['tmp_name'];
385
 
392
 
393
  $imageinfo = getimagesize($tmppath);
394
  if(!$imageinfo || !$imageinfo[0] || !$imageinfo[1])
395
+ $error = __("Unable to get image dimensions.", 'user-photo');
396
  else if($imageinfo[0] > $userphoto_maximum_dimension || $imageinfo[1] > $userphoto_maximum_dimension){
397
  if(userphoto_resize_image($tmppath, null, $userphoto_maximum_dimension, $error))
398
  $imageinfo = getimagesize($tmppath);
399
  }
400
 
401
  //else if($imageinfo[0] > $userphoto_maximum_dimension)
402
+ // $error = sprintf(__("The uploaded image had a width of %d pixels. The max width is %d.", 'user-photo'), $imageinfo[0], $userphoto_maximum_dimension);
403
  //else if($imageinfo[0] > $userphoto_maximum_dimension)
404
+ // $error = sprintf(__("The uploaded image had a height of %d pixels. The max height is %d.", 'user-photo'), $imageinfo[1], $userphoto_maximum_dimension);
405
  }
406
 
407
  if(!$error){
408
+ $upload_dir = wp_upload_dir();
409
+ $dir = trailingslashit($upload_dir['basedir']) . 'userphoto';
410
+
411
  #$umask = umask(0);
412
+ if(!file_exists($dir) && @!mkdir($dir, 0777))
413
+ $error = sprintf(__("The userphoto upload content directory does not exist and could not be created. Please ensure that you have write permissions for the '%s' directory. Did you put slash at the beginning of the upload path in Misc. settings? It should be a path relative to the WordPress root directory. <code>wp_upload_dir()</code> returned:<br /> <code style='white-space:pre'>%s</code>", 'user-photo'), $dir, print_r($upload_dir, true));
414
  #umask($umask);
415
 
416
  if(!$error){
417
  #$oldFile = basename($userdata->userphoto_image_file);
418
+ $imagefile = preg_replace('/^.+(?=\.\w+$)/', $userdata->user_nicename, strtolower($_FILES['userphoto_image_file']['name']));
419
  $imagepath = $dir . '/' . $imagefile;
420
  $thumbfile = preg_replace("/(?=\.\w+$)/", '.thumbnail', $imagefile);
421
  $thumbpath = $dir . '/' . $thumbfile;
422
 
423
  if(!move_uploaded_file($tmppath, $imagepath)){
424
+ $error = sprintf(__("Unable to place the user photo at: %s", 'user-photo'), $imagepath);
425
  }
426
  else {
427
+ chmod($imagepath, 0666);
428
+
429
  #Generate thumbnail
430
  $userphoto_thumb_dimension = get_option( 'userphoto_thumb_dimension' );
431
  #if(empty($userphoto_thumb_dimension))
435
  }
436
  else {
437
  copy($imagepath, $thumbpath);
438
+ chmod($thumbpath, 0666);
439
  }
440
  $thumbinfo = getimagesize($thumbpath);
441
 
446
  $admin_notified = get_option('userphoto_admin_notified');
447
  if($admin_notified){
448
  $admin = get_userdata($admin_notified);
449
+ @wp_mail($admin->user_email,
450
+ "User Photo for " . $userdata->display_name . " Needs Approval",
451
+ get_option("home") . "/wp-admin/user-edit.php?user_id=" . $userdata->ID . "#userphoto");
452
  }
453
  }
454
  else {
495
 
496
  function userphoto_delete_user($userID){
497
  $userdata = get_userdata($userID);
498
+
499
+ $upload_dir = wp_upload_dir();
500
+ $bdir = trailingslashit($upload_dir['basedir']) . 'userphoto/';
501
+
502
  if($userdata->userphoto_image_file)
503
+ @unlink($bdir . basename($userdata->userphoto_image_file));
504
  if($userdata->userphoto_thumb_file)
505
+ @unlink($bdir . basename($userdata->userphoto_thumb_file));
506
  }
507
  add_action('delete_user', 'userphoto_delete_user');
508
 
509
 
510
  function userphoto_admin_useredit_head(){
511
  if(preg_match("/(user-edit\.php|profile.php)$/", $_SERVER['PHP_SELF']))
512
+ print '<link rel="stylesheet" href="../wp-content/plugins/user-photo/admin.css" />';
513
  }
514
  function userphoto_admin_options_head(){
515
+ print '<link rel="stylesheet" href="../wp-content/plugins/user-photo/admin.css" />';
516
  }
517
 
518
+ add_action('admin_head-options_page_user-photo/user-photo', 'userphoto_admin_options_head');
519
  add_action('admin_head', 'userphoto_admin_useredit_head');
520
  #add_action('admin_head-userphoto', 'userphoto_admin_head');
521
 
535
 
536
  #$userphoto = unserialize($userdata->userphoto);
537
 
538
+ global $wp_version;
539
+ $isOldWP = floatval($wp_version) < 2.5;
540
+
541
+ $beforeRow = $isOldWP ? "<p>" : '<tr valign="top"><th scope="row">';
542
+ $betweenRow = $isOldWP ? "" : '</th><td>';
543
+ $afterRow = $isOldWP ? "</p>" : '</td><tr>';
544
+
545
+
546
+
547
  ?>
548
+ <script type="text/javascript">
549
+ var form = document.getElementById('your-profile');
550
+ //form.enctype = "multipart/form-data"; //FireFox, Opera, et al
551
+ form.encoding = "multipart/form-data"; //IE5.5
552
+ form.setAttribute('enctype', 'multipart/form-data'); //required for IE6 (is interpreted into "encType")
553
+
554
+ function userphoto_onclick(){
555
+ var is_delete = document.getElementById('userphoto_delete').checked;
556
+ document.getElementById('userphoto_image_file').disabled = is_delete;
557
 
558
+ if(document.getElementById('userphoto_approvalstatus'))
559
+ document.getElementById('userphoto_approvalstatus').disabled = is_delete;
560
+ if(document.getElementById('userphoto_rejectionreason'))
561
+ document.getElementById('userphoto_rejectionreason').disabled = is_delete;
562
+ }
563
+ function userphoto_approvalstatus_onchange(){
564
+ var select = document.getElementById('userphoto_approvalstatus');
565
+ document.getElementById('userphoto_rejectionreason').style.display = (select.options[select.selectedIndex].value == <?php echo USERPHOTO_REJECTED ?> ? 'block' : 'none');
566
+ }
567
+ <?php if($profileuser->userphoto_error && @$_POST['action'] == 'update'): ?>
568
+ window.location = "#userphoto";
569
+ <?php endif; ?>
570
+
571
+ </script>
572
+ <?php if($isOldWP): ?>
573
+ <fieldset id='userphoto'>
574
+ <legend><?php echo $isSelf ? _e("Your Photo", 'user-photo') : _e("User Photo", 'user-photo') ?></legend>
575
+ <?php else: ?>
576
+ <table class='form-table' id="userphoto">
577
+ <tr>
578
+ <th>
579
+ <!--<label for="userphoto_image_file">--><?php echo $isSelf ? _e("Your Photo", 'user-photo') : _e("User Photo", 'user-photo') ?><!--</label>-->
580
+ </th>
581
+ <td>
582
+ <?php endif; ?>
583
 
584
+
 
585
  <?php if($profileuser->userphoto_image_file): ?>
586
+ <?php
587
+ $upload_dir = wp_upload_dir();
588
+ $bdir = trailingslashit($upload_dir['baseurl']) . 'userphoto/';
589
+ ?>
590
+ <p class='image'><img src="<?php echo $bdir . $profileuser->userphoto_image_file . "?" . rand() ?>" alt="Full size image" /><br />
591
  Full size
592
  </p>
593
+ <p class='image'><img src="<?php echo $bdir . $profileuser->userphoto_thumb_file . "?" . rand() ?>" alt="Thumbnail image" /><br />
594
  Thumb
595
  </p>
596
  <hr />
597
 
598
  <?php if(!$current_user->has_cap('edit_users')): ?>
599
  <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING): ?>
600
+ <p id='userphoto-status-pending'><?php echo _e("Your profile photo has been submitted for review.", 'user-photo') ?></p>
601
  <?php elseif($profileuser->userphoto_approvalstatus == USERPHOTO_REJECTED): ?>
602
+ <p id='userphoto-status-rejected'><strong>Notice: </strong> <?php _e("Your chosen profile photo has been rejected.", 'user-photo') ?>
603
  <?php
604
  if($profileuser->userphoto_rejectionreason){
605
+ _e("Reason: ", 'user-photo');
606
  echo htmlspecialchars($profileuser->userphoto_rejectionreason);
607
  }
608
  ?>
615
  <p id='userphoto-upload-error'><strong>Upload error:</strong> <?php echo $profileuser->userphoto_error ?></p>
616
  <?php endif; ?>
617
  <p id='userphoto_image_file_control'>
618
+ <label><?php echo _e("Upload image file:", 'user-photo') ?>
619
+ <input type="file" name="userphoto_image_file" id="userphoto_image_file" />
620
  <span class='field-hint'>(<?php
 
 
621
  printf(__("max upload size %s"),ini_get("upload_max_filesize"));
622
+ ?>)</span></label>
 
623
  </p>
 
 
624
  <?php if($current_user->has_cap('edit_users') && ($profileuser->ID != $current_user->ID) && $profileuser->userphoto_image_file): ?>
625
  <p id="userphoto-approvalstatus-controls" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING) echo "class='pending'" ?>>
626
+ <label><?php _e("Approval status:", 'user-photo') ?>
627
  <select name="userphoto_approvalstatus" id="userphoto_approvalstatus" onchange="userphoto_approvalstatus_onchange()">
628
+ <option value="<?php echo USERPHOTO_PENDING ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_PENDING) echo " selected='selected' " ?>><?php _e("pending", 'user-photo') ?></option>
629
+ <option value="<?php echo USERPHOTO_REJECTED ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_REJECTED) echo " selected='selected' " ?>><?php _e("rejected", 'user-photo') ?></option>
630
+ <option value="<?php echo USERPHOTO_APPROVED ?>" <?php if($profileuser->userphoto_approvalstatus == USERPHOTO_APPROVED) echo " selected='selected' " ?>><?php _e("approved", 'user-photo') ?></option>
631
  </select></label><br /><textarea name="userphoto_rejectionreason" <?php
632
  if($profileuser->userphoto_approvalstatus != USERPHOTO_REJECTED)
633
  echo ' style="display:none"';
634
+ ?> id="userphoto_rejectionreason"><?php echo $profileuser->userphoto_rejectionreason ? $profileuser->userphoto_rejectionreason : __('The photo is inappropriate.', 'user-photo') ?></textarea>
635
  </p>
636
  <script type="text/javascript">userphoto_approvalstatus_onchange()</script>
637
  <?php endif; ?>
638
  <?php if($profileuser->userphoto_image_file): ?>
639
+ <p><label><input type="checkbox" name="userphoto_delete" id="userphoto_delete" onclick="userphoto_onclick()" /> <?php _e('Delete photo?', 'user-photo')?></label></p>
640
  <?php endif; ?>
641
+
642
+ <?php if($isOldWP): ?>
643
+ </fieldset>
644
+ <?php else: ?>
645
+ </td></tr></table>
646
+ <?php endif; ?>
647
+
648
+
649
+
650
  <?php
651
  }
652
  add_action('show_user_profile', 'userphoto_display_selector_fieldset');
667
  $userphoto_thumb_dimension = get_option( 'userphoto_thumb_dimension' );
668
  $userphoto_admin_notified = get_option( 'userphoto_admin_notified' );
669
  $userphoto_level_moderated = get_option( 'userphoto_level_moderated' );
670
+ $userphoto_use_avatar_fallback = get_option('userphoto_use_avatar_fallback');
671
+ $userphoto_override_avatar = get_option('userphoto_override_avatar');
672
 
673
  #Get new updated option values, and save them
674
  if( @$_POST['action'] == 'update' ) {
675
+ check_admin_referer('update-options-userphoto');
676
+
677
  $userphoto_jpeg_compression = (int)$_POST['userphoto_jpeg_compression'];
678
  update_option('userphoto_jpeg_compression', $userphoto_jpeg_compression);
679
 
689
  $userphoto_level_moderated = (int)$_POST['userphoto_level_moderated'];
690
  update_option('userphoto_level_moderated', $userphoto_level_moderated);
691
 
692
+ $userphoto_use_avatar_fallback = !empty($_POST['userphoto_use_avatar_fallback']);
693
+ update_option('userphoto_use_avatar_fallback', $userphoto_use_avatar_fallback);
694
+
695
+ $userphoto_override_avatar = !empty($_POST['userphoto_override_avatar']);
696
+ update_option('userphoto_override_avatar', $userphoto_override_avatar);
697
+
698
  ?>
699
+ <div id="message" class="updated fade"><p><strong><?php _e('Options saved.' ); ?></strong></p></div>
700
  <?php
701
  }
702
 
703
+ global $wp_version;
704
+ $isOldWP = floatval($wp_version) < 2.5;
705
+
706
+ $beforeRow = $isOldWP ? "<p>" : '<tr valign="top"><th scope="row">';
707
+ $betweenRow = $isOldWP ? "" : '</th><td>';
708
+ $afterRow = $isOldWP ? "</p>" : '</td><tr>';
709
+
710
  ?>
711
  <div class="wrap">
712
  <h2>User Photo Options</h2>
713
+ <form method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>" id='userphoto_options_form'>
714
+ <?php
715
+ if(function_exists('wp_nonce_field'))
716
+ wp_nonce_field('update-options-userphoto');
717
+
718
+ if(!$isOldWP)
719
+ echo "<table class='form-table'>";
720
+ ?>
721
+ <?php echo $beforeRow ?>
722
+ <label for="userphoto_maximum_dimension">
723
+ <?php _e("Maximum dimension: ", 'user-photo') ?>
724
  </label>
725
+ <?php echo $betweenRow ?>
726
+ <input type="number" min="1" step="1" size="3" id="userphoto_maximum_dimension" name="userphoto_maximum_dimension" value="<?php echo $userphoto_maximum_dimension ?>" />px
727
+ <?php echo $afterRow ?>
728
+ <?php echo $beforeRow ?>
729
+ <label for="userphoto_thumb_dimension">
730
+ <?php _e("Thumbnail dimension: ", 'user-photo') ?>
731
  </label>
732
+ <?php echo $betweenRow ?>
733
+ <input type="number" min="1" step="1" size="3" id="userphoto_thumb_dimension" name="userphoto_thumb_dimension" value="<?php echo $userphoto_thumb_dimension ?>" />px
734
+ <?php echo $afterRow ?>
735
+ <?php echo $beforeRow ?>
736
+ <label for="userphoto_use_avatar_fallback">
737
+ <?php _e("Serve Avatar as Fallback: ", 'user-photo') ?>
738
  </label>
739
+ <?php echo $betweenRow ?>
740
+ <input type="checkbox" value='Y' id="userphoto_use_avatar_fallback" name="userphoto_use_avatar_fallback" <?php if($userphoto_use_avatar_fallback) echo ' checked="checked"'; ?> /><br />
741
+ <?php _e("In case the user does not have a photo uploaded or approved, their avatar will be fetched for them. Respects the 'Avatar Display' setting under <b>Discussion</b>.", 'user-photo') ?>
742
+ <?php echo $afterRow ?>
743
+ <?php echo $beforeRow ?>
744
+ <label for="userphoto_override_avatar">
745
+ <?php _e("Override Avatar with User Photo: ", 'user-photo') ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
746
  </label>
747
+ <?php echo $betweenRow ?>
748
+ <input type="checkbox" value='Y' id="userphoto_override_avatar" name="userphoto_override_avatar" <?php if($userphoto_override_avatar) echo ' checked="checked"'; ?> /><br />
749
+ <?php _e("When making calls to <code>get_avatar()</code>, the user's photo will be used instead if it is available. Respects the 'Avatar Display' setting under <b>Discussion</b>.", 'user-photo') ?>
750
+ <?php echo $afterRow ?>
751
+ <?php echo $beforeRow ?>
752
+ <label for="userphoto_jpeg_compression">
753
+ <?php _e("JPEG compression: ", 'user-photo') ?>
754
+ </label>
755
+ <?php echo $betweenRow ?>
756
+ <input type="range" min="1" max="100" step="1" size="3" id="userphoto_jpeg_compression" name="userphoto_jpeg_compression" value="<?php echo $userphoto_jpeg_compression ?>" />%
757
+ <?php echo $afterRow ?>
758
+ <?php echo $beforeRow ?>
759
+ <label for="userphoto_admin_notified">
760
+ <?php _e("Notify this administrator by email when user photo needs approval: ", 'user-photo') ?>
761
+ </label>
762
+ <?php echo $betweenRow ?>
763
+ <select id='userphoto_admin_notified' name="userphoto_admin_notified">
764
+ <option value="0" class='none'>(none)</option>
765
+ <?php
766
+ global $wpdb;
767
+ $users = $wpdb->get_results("SELECT ID FROM $wpdb->users ORDER BY user_login");
768
+ foreach($users as $user){
769
+ $u = get_userdata($user->ID);
770
+ if($u->user_level == 10){ #if($u->has_cap('administrator')){
771
+ print "<option value='" . $u->ID . "'";
772
+ if($userphoto_admin_notified == $u->ID)
773
+ print " selected='selected'";
774
+ print ">" . $u->user_login . "</option>";
775
+ }
776
+ }
777
+ ?>
778
+ </select>
779
+ <?php echo $afterRow ?>
780
+ <?php echo $beforeRow ?>
781
+ <label for="userphoto_level_moderated">
782
  <!--<input type="checkbox" id="userphoto_do_moderation" onclick="document.getElementById('userphoto_level_moderated').disabled = !this.checked" <?php /*if(isset($userphoto_level_moderated)) echo ' checked="checked"'*/ ?> />-->
783
+ <?php _e("Require user photo moderation for all users at or below this level: ", 'user-photo') ?>
 
 
 
 
 
 
 
784
  </label>
785
+ <?php echo $betweenRow ?>
786
+ <select name="userphoto_level_moderated" id="userphoto_level_moderated">
787
+ <option value="-1" <?php if($userphoto_level_moderated == -1) echo ' selected="selected"' ?> class='none'>(none)</option>
788
+ <option value="0" <?php if($userphoto_level_moderated == 0) echo ' selected="selected"' ?>>Subscriber</option>
789
+ <option value="1" <?php if($userphoto_level_moderated == 1) echo ' selected="selected"' ?>>Contributor</option>
790
+ <option value="2" <?php if($userphoto_level_moderated == 2) echo ' selected="selected"' ?>>Author</option>
791
+ <option value="7" <?php if($userphoto_level_moderated == 7) echo ' selected="selected"' ?>>Editor</option>
792
+ </select>
793
  <!--<script type="text/javascript">
794
  document.getElementById('userphoto_do_moderation').onclick();
795
  </script>-->
796
+ <?php echo $afterRow ?>
797
+
798
+ <?php
799
+ if(!$isOldWP)
800
+ echo "</table>";
801
+ ?>
802
  <input type="hidden" name="action" value="update" />
803
  <input type="hidden" name="page_options" value="userphoto_jpeg_compression,userphoto_admin_notified,userphoto_maximum_dimension,userphoto_thumb_dimension,userphoto_level_moderated" />
804
 
820
 
821
  $info = @getimagesize($filename);
822
  if(!$info || !$info[0] || !$info[1]){
823
+ $error = __("Unable to get image dimensions.", 'user-photo');
824
  }
825
  //From WordPress image.php line 22
826
  else if (
830
  ||
831
  !function_exists( 'imagepng' ) && $info[2] == IMAGETYPE_PNG
832
  ) {
833
+ $error = __( 'Filetype not supported.', 'user-photo' );
834
  }
835
  else {
836
  // create the initial copy from the original file
844
  $image = imagecreatefrompng( $filename );
845
  }
846
  if(!isset($image)){
847
+ $error = __("Unrecognized image format.", 'user-photo');
848
  return false;
849
  }
850
  if ( function_exists( 'imageantialias' ))
895
  return true;
896
  }
897