SoylentNews/slashcode — pull request #187 by paulej72 (2014-05-20 02:36:10+00:00)
Title: Slashboxes

Remove code for blocks we will not be using (userlogin, random blocks).
Added three new boxes table fields: default_block, hidden, and always on. Edited admin.pl and MySQL.pm to handle the new vars. The MySQL.pl has two readers needed to for the setting up and displaying the slashboxes:

Defaults are loaded from getPortalsCommon, and modified to only show default_blocks that are not hidden..
All blocks are loaded from getSectionBlocks, and this was modified to not show hidden and to send the always_on.

If users are slaboxes are empty use getPortalsCommon to get default ones. Use getSectionBlocks to setup editHome with list of boxes, and to check that when processing the users slashboxes that the blocks have not be since hidden and if they are set to always_on.

Added a sanity check to when loading the users slashboxes in Slashboxes.pm.
This test to see if a box is actually currently ok to show. This fixes an issue where a users has a custom list of boxes, and an admin deactivates one of the boxes. The deactivated box will still be on the users slashboxes list until the next time the user sets their homage settings. The san check will kill it even if listed on the users list.

Removed users dynamic blocks as they are unnecessary and were not showing up in the edit interface anyway.

Also fixed moderation not being set when user did a homepage settings reset.

And a some other updates as well.