[geeklog-cvs] geeklog: Added a note about the max. dimensions of a userphoto i...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Nov 16 13:59:41 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b6bdc9fd122a
changeset: 6475:b6bdc9fd122a
user: Dirk Haun <dirk at haun-online.de>
date: Sun Nov 16 19:59:29 2008 +0100
description:
Added a note about the max. dimensions of a userphoto in the About You pane of a user's My Account page (feature request #0000629)
diffstat:
10 files changed, 41 insertions(+), 7 deletions(-)
language/english.php | 5 ++++-
language/english_utf-8.php | 5 ++++-
language/german.php | 5 ++++-
language/german_formal.php | 5 ++++-
language/german_formal_utf-8.php | 5 ++++-
language/german_utf-8.php | 5 ++++-
public_html/docs/history | 2 ++
public_html/docs/theme.html | 5 +++++
public_html/layout/professional/preferences/userphoto.thtml | 2 +-
public_html/usersettings.php | 9 +++++++++
diffs (145 lines):
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/english.php
--- a/language/english.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/english.php Sun Nov 16 19:59:29 2008 +0100
@@ -364,7 +364,10 @@
156 => 'Delete Account',
157 => 'Delete Option',
158 => 'Time Zone',
- 159 => 'This email was generated automatically. Please do not reply to this email.'
+ 159 => 'This email was generated automatically. Please do not reply to this email.',
+ 160 => '(max. %d x %d pixels, %d bytes; %s)',
+ 161 => 'will be scaled down',
+ 162 => 'will not be scaled'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/english_utf-8.php
--- a/language/english_utf-8.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/english_utf-8.php Sun Nov 16 19:59:29 2008 +0100
@@ -364,7 +364,10 @@
156 => 'Delete Account',
157 => 'Delete Option',
158 => 'Time Zone',
- 159 => 'This email was generated automatically. Please do not reply to this email.'
+ 159 => 'This email was generated automatically. Please do not reply to this email.',
+ 160 => '(max. %d x %d pixels, %d bytes; %s)',
+ 161 => 'will be scaled down',
+ 162 => 'will not be scaled'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/german.php
--- a/language/german.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/german.php Sun Nov 16 19:59:29 2008 +0100
@@ -367,7 +367,10 @@
156 => 'Account löschen',
157 => 'Löschen',
158 => 'Zeitzone',
- 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.'
+ 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.',
+ 160 => '(max. %d x %d Pixel, %d Bytes; %s)',
+ 161 => 'wird ggfs. skaliert',
+ 162 => 'wird nicht skaliert'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/german_formal.php
--- a/language/german_formal.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/german_formal.php Sun Nov 16 19:59:29 2008 +0100
@@ -368,7 +368,10 @@
156 => 'Account löschen',
157 => 'Löschen',
158 => 'Zeitzone',
- 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.'
+ 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.',
+ 160 => '(max. %d x %d Pixel, %d Bytes; %s)',
+ 161 => 'wird ggfs. skaliert',
+ 162 => 'wird nicht skaliert'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/german_formal_utf-8.php
--- a/language/german_formal_utf-8.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/german_formal_utf-8.php Sun Nov 16 19:59:29 2008 +0100
@@ -368,7 +368,10 @@
156 => 'Account löschen',
157 => 'Löschen',
158 => 'Zeitzone',
- 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.'
+ 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.',
+ 160 => '(max. %d x %d Pixel, %d Bytes; %s)',
+ 161 => 'wird ggfs. skaliert',
+ 162 => 'wird nicht skaliert'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a language/german_utf-8.php
--- a/language/german_utf-8.php Sun Nov 16 18:59:26 2008 +0100
+++ b/language/german_utf-8.php Sun Nov 16 19:59:29 2008 +0100
@@ -367,7 +367,10 @@
156 => 'Account löschen',
157 => 'Löschen',
158 => 'Zeitzone',
- 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.'
+ 159 => 'Diese E-Mail wurde automatisch generiert. Bitte nicht auf diese E-Mail antworten.',
+ 160 => '(max. %d x %d Pixel, %d Bytes; %s)',
+ 161 => 'wird ggfs. skaliert',
+ 162 => 'wird nicht skaliert'
);
###############################################################################
diff -r 8ce15670c6c3 -r b6bdc9fd122a public_html/docs/history
--- a/public_html/docs/history Sun Nov 16 18:59:26 2008 +0100
+++ b/public_html/docs/history Sun Nov 16 19:59:29 2008 +0100
@@ -3,6 +3,8 @@
??? ??, 2008 (1.5.2)
------------
+- Added a note about the max. dimensions of a userphoto in the About You pane
+ of a user's My Account page (feature request #0000629) [Dirk]
- Don't include X-Originating-IP header in emails sent from the site's admin
area (bug #0000701) [Dirk]
- Display a message when no topics exist and don't let the user enter the story
diff -r 8ce15670c6c3 -r b6bdc9fd122a public_html/docs/theme.html
--- a/public_html/docs/theme.html Sun Nov 16 18:59:26 2008 +0100
+++ b/public_html/docs/theme.html Sun Nov 16 19:59:29 2008 +0100
@@ -196,6 +196,11 @@
<h2><a name="changes">Theme changes in Geeklog 1.5.2</a></h2>
+
+<ul>
+<li>New variable <tt>{photo_max_dimensions}</tt> to inform users about the
+ max. dimensions of a userphoto: <tt>preferences/userphoto.thtml</tt></li>
+</ul>
<h3>Plugins</h3>
diff -r 8ce15670c6c3 -r b6bdc9fd122a public_html/layout/professional/preferences/userphoto.thtml
--- a/public_html/layout/professional/preferences/userphoto.thtml Sun Nov 16 18:59:26 2008 +0100
+++ b/public_html/layout/professional/preferences/userphoto.thtml Sun Nov 16 19:59:29 2008 +0100
@@ -1,4 +1,4 @@
<tr>
<td style="width:100px;"><label for="photo">{lang_userphoto}:</label></td>
- <td><input type="file" dir="ltr" id="photo" name="photo" size="30"{xhtml}><br{xhtml}>{display_photo}</td>
+ <td><input type="file" dir="ltr" id="photo" name="photo" size="30"{xhtml}><br{xhtml}>{display_photo}<br{xhtml}>{photo_max_dimensions}</td>
</tr>
diff -r 8ce15670c6c3 -r b6bdc9fd122a public_html/usersettings.php
--- a/public_html/usersettings.php Sun Nov 16 18:59:26 2008 +0100
+++ b/public_html/usersettings.php Sun Nov 16 19:59:29 2008 +0100
@@ -194,6 +194,15 @@
}
$preferences->set_var ('display_photo', $photo);
}
+ if (empty($_CONF['image_lib'])) {
+ $scaling = $LANG04[162];
+ } else {
+ $scaling = $LANG04[161];
+ }
+ $preferences->set_var('photo_max_dimensions',
+ sprintf($LANG04[160],
+ $_CONF['max_photo_width'], $_CONF['max_photo_height'],
+ $_CONF['max_photo_size'], $scaling));
$preferences->parse ('userphoto_option', 'photo', true);
} else {
$preferences->set_var ('userphoto_option', '');
More information about the geeklog-cvs
mailing list