diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php
index 17d7d23f02..19e1b45787 100644
--- a/phpBB/includes/ucp/ucp_prefs.php
+++ b/phpBB/includes/ucp/ucp_prefs.php
@@ -134,6 +134,33 @@ class ucp_prefs
}
$dateformat_options .= '>' . $user->lang['CUSTOM_DATEFORMAT'] . '';
+ // check for count of installed languages
+ $sql = 'SELECT lang_id
+ FROM ' . LANG_TABLE;
+ $result = $db->sql_query($sql);
+ if( $db->sql_affectedrows() > 1 )
+ {
+ $s_more_languages = true;
+ }
+ else
+ {
+ $s_more_languages = false;
+ }
+
+ // check for count of installed and active styles
+ $sql = 'SELECT style_id
+ FROM ' . STYLES_TABLE . '
+ WHERE style_active = 1';
+ $result = $db->sql_query($sql);
+ if( $db->sql_affectedrows() > 1 )
+ {
+ $s_more_styles = true;
+ }
+ else
+ {
+ $s_more_styles = false;
+ }
+
$template->assign_vars(array(
'ERROR' => (sizeof($error)) ? implode('
', $error) : '',
@@ -155,6 +182,9 @@ class ucp_prefs
'DEFAULT_DATEFORMAT' => $config['default_dateformat'],
'A_DEFAULT_DATEFORMAT' => addslashes($config['default_dateformat']),
+ 'S_MORE_LANGUAGES' => $s_more_languages,
+ 'S_MORE_STYLES' => $s_more_styles,
+
'S_LANG_OPTIONS' => language_select($data['lang']),
'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($data['style']),
'S_TZ_OPTIONS' => tz_select($data['tz'], true),
diff --git a/phpBB/styles/prosilver/template/ucp_prefs_personal.html b/phpBB/styles/prosilver/template/ucp_prefs_personal.html
index 9022346627..416343e57d 100644
--- a/phpBB/styles/prosilver/template/ucp_prefs_personal.html
+++ b/phpBB/styles/prosilver/template/ucp_prefs_personal.html
@@ -12,21 +12,21 @@
-
-
+
-
-
+
{L_ALLOW_PM_EXPLAIN}
-
-
+
@@ -34,17 +34,17 @@
{L_HIDE_ONLINE_EXPLAIN}
-
-
+
-
+
-
-
-
+
+
@@ -52,22 +52,24 @@
-
-
+
-
-
+
-
-
-
-
-
+
+
+
+
+
+
+
@@ -80,7 +82,7 @@
-
-
+
@@ -97,9 +99,9 @@
-
+
@@ -113,9 +115,9 @@
function customDates()
{
var e = document.getElementById('dateoptions');
-
+
e.selectedIndex = e.length - 1;
-
+
// Loop and match date_format in menu
for (var i = 0; i < e.length; i++)
{
@@ -125,7 +127,7 @@
break;
}
}
-
+
// Show/hide custom field
if (e.selectedIndex == e.length - 1)
{
diff --git a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html
index e2266b7d38..c604671c5c 100644
--- a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html
+++ b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html
@@ -29,43 +29,45 @@
{ERROR} |
-
+
{L_SHOW_EMAIL}: |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
-
+
{L_ADMIN_EMAIL}: |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
-
+
{L_ALLOW_PM}: {L_ALLOW_PM_EXPLAIN} |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
-
+
{L_HIDE_ONLINE}: {L_HIDE_ONLINE_EXPLAIN} |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
-
+
{L_NOTIFY_METHOD}: {L_NOTIFY_METHOD_EXPLAIN} |
checked="checked" />{L_NOTIFY_METHOD_EMAIL} checked="checked" />{L_NOTIFY_METHOD_IM} checked="checked" />{L_NOTIFY_METHOD_BOTH} |
-
+
{L_NOTIFY_ON_PM}: |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
-
+
{L_POPUP_ON_PM}: |
checked="checked" />{L_YES} checked="checked" />{L_NO} |
+
{L_BOARD_LANGUAGE}: |
|
-
+
+
{L_BOARD_STYLE}: |
|