Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10556

When an user unhides from UCP, the change is not supported immediatly

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.9
    • Fix Version/s: 3.1.3-RC1
    • Component/s: Sessions
    • Labels:
      None
    • Environment:
      PHP 5.3.8, MySQL 5.0.8, Firefox 9.0.1

      Description

      When an user unhides from UCP, the change is not supported immediatly.
      He must logout, and re-login in order to be displayed.

      Here is my own fix :

      #
      #-----[ OPEN ]------------------------------------------
      #
      includes/ucp/ucp_prefs.php
      #
      #-----[ FIND ]------------------------------------------
      #
      							'user_timezone'			=> $data['tz'],
      							'user_style'			=> $data['style'],
      						);
       
      						$sql = 'UPDATE ' . USERS_TABLE . '
      							SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
      							WHERE user_id = ' . $user->data['user_id'];
      						$db->sql_query($sql);
      #
      #-----[ AFTER, ADD ]------------------------------------------
      #
      						if (!$user->data['session_viewonline'] && !$data['hideonline'])
      						{
      							$sql = 'UPDATE ' . SESSIONS_TABLE . '
      								SET session_viewonline = 1
      								WHERE session_user_id = ' . $user->data['user_id'];
      							$db->sql_query($sql);
      							$user->data['session_viewonline'] = 1;
      						}
      #
      #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
      #
      # EoM

        Attachments

          Activity

            People

            • Assignee:
              nickvergessen Joas Schilling [X] (Inactive)
              Reporter:
              ABDev Adrien Bonnel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: