From 51b152c8ab52a0cfc539300b6710cb66eef15e77 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 9 Apr 2014 17:35:55 -0700 Subject: [PATCH 1/4] [ticket/11098] Add mark/unmark all options to remember me keys PHPBB3-11098 --- .../template/ucp_profile_autologin_keys.html | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html b/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html index bf97434bac..13448ead30 100644 --- a/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html +++ b/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html @@ -5,47 +5,47 @@

{L_TITLE}

- - -

- - {errors}
- -

- - -

{L_PROFILE_AUTOLOGIN_KEYS}


- - - - - - - - - - - - - - - - - - - - - -
{L_MARK}{L_LOGIN_KEY}{L_IP}{L_LOGIN_TIME}
{sessions.IP}{sessions.LOGIN_TIME}
{L_PROFILE_NO_AUTOLOGIN_KEYS}
+ +

+ + {errors}
+ +

+ +

{L_PROFILE_AUTOLOGIN_KEYS}

+ + + + + + + + + + + + + + + + + + + + + +
{L_LOGIN_KEY}{L_IP}{L_LOGIN_TIME}{L_MARK}
{sessions.IP}{sessions.LOGIN_TIME}
{L_PROFILE_NO_AUTOLOGIN_KEYS}
-
- {S_HIDDEN_FIELDS} +
+ {S_HIDDEN_FIELDS} +
{L_MARK_ALL}{L_UNMARK_ALL}
{S_FORM_TOKEN}
+ From 9eeb9ed2596ba600d60179f72f59ffd455d747da Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 9 Apr 2014 17:36:46 -0700 Subject: [PATCH 2/4] [ticket/11098] HTML Validity fix to Notifications in UCP PHPBB3-11098 --- .../styles/prosilver/template/ucp_notifications.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/phpBB/styles/prosilver/template/ucp_notifications.html b/phpBB/styles/prosilver/template/ucp_notifications.html index 2712e53034..b400a3c8b1 100644 --- a/phpBB/styles/prosilver/template/ucp_notifications.html +++ b/phpBB/styles/prosilver/template/ucp_notifications.html @@ -11,11 +11,13 @@ - - - - - + + + + + + + From 150a45b9434ce908d9bda8b1dc1fa2895cd59578 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 9 Apr 2014 19:16:45 -0700 Subject: [PATCH 3/4] [ticket/11098] Update subsilver2 to also include mark/unmark all buttons PHPBB3-11098 --- .../template/ucp_profile_autologin_keys.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html b/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html index 1dab9acb9c..5b7601bc81 100644 --- a/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html +++ b/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html @@ -2,7 +2,7 @@
{L_NOTIFICATION_TYPE}{notification_methods.NAME}{L_NOTIFICATIONS}
{L_NOTIFICATION_TYPE}{notification_methods.NAME}{L_NOTIFICATIONS}
- + @@ -18,17 +18,17 @@ - + - + @@ -38,12 +38,16 @@ -
{L_TITLE}{L_TITLE}
{L_PROFILE_AUTOLOGIN_KEYS}
{L_MARK} {L_LOGIN_KEY} {L_IP} {L_LOGIN_TIME}{L_MARK}
{sessions.IP} {sessions.LOGIN_TIME}
- {S_HIDDEN_FIELDS} + + {S_HIDDEN_FIELDS} {S_FORM_TOKEN}
+ + + + From 80bc30214f0d27813b04580a9ddd8243ddb3cfb0 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 9 Apr 2014 23:17:30 -0700 Subject: [PATCH 4/4] [ticket/11098] Fix error reporting on the autologin key pages PHPBB3-11098 --- phpBB/includes/ucp/ucp_profile.php | 4 ++-- .../prosilver/template/ucp_profile_autologin_keys.html | 8 +------- .../subsilver2/template/ucp_profile_autologin_keys.html | 9 +++------ 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 76f8988fb9..a14f79f9fd 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -679,8 +679,6 @@ class ucp_profile while ($row = $db->sql_fetchrow($result)) { $template->assign_block_vars('sessions', array( - 'errors' => $error, - 'KEY' => $row['key_id'], 'IP' => $row['last_ip'], 'LOGIN_TIME' => $user->format_date($row['last_login']), @@ -693,6 +691,8 @@ class ucp_profile } $template->assign_vars(array( + 'ERROR' => (sizeof($error)) ? implode('
', $error) : '', + 'L_TITLE' => $user->lang['UCP_PROFILE_' . strtoupper($mode)], 'S_HIDDEN_FIELDS' => $s_hidden_fields, diff --git a/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html b/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html index 13448ead30..6fec0b8aed 100644 --- a/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html +++ b/phpBB/styles/prosilver/template/ucp_profile_autologin_keys.html @@ -5,14 +5,8 @@

{L_TITLE}

- -

- - {errors}
- -

-

{L_PROFILE_AUTOLOGIN_KEYS}

+

{ERROR}

diff --git a/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html b/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html index 5b7601bc81..3f63319b59 100644 --- a/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html +++ b/phpBB/styles/subsilver2/template/ucp_profile_autologin_keys.html @@ -4,13 +4,10 @@ - + + - +
{L_TITLE}
- - {errors}
- -
{ERROR}