Users can ignore each others' post now

This commit is contained in:
Aleksei Miheev
2012-01-29 22:01:07 +04:00
parent 9c97a2292a
commit a4b0e19b47
4 changed files with 105 additions and 25 deletions

View File

@@ -63,7 +63,7 @@ if (!defined('SMF'))
// The central part of the board - topic display.
function Display()
{
global $scripturl, $txt, $db_prefix, $modSettings, $context, $settings, $options, $sourcedir;
global $scripturl, $txt, $db_prefix, $modSettings, $context, $settings, $options, $sourcedir, $mongodb;
global $user_info, $ID_MEMBER, $board_info, $topic, $board, $attachments, $messages_request;
// What are you gonna display if these are empty?!
@@ -76,6 +76,9 @@ function Display()
else
loadTemplate('Display');
$ignores = $mongodb->rock->ignorelists->findOne(array('user' => (int) $ID_MEMBER), array ("ignores" => 1));
$ignores == NULL ? $context['ignore_list'] = array() : $context['ignore_list'] = $ignores['ignores'];
// Find the previous or next topic. Make a fuss if there are no more.
if (isset($_REQUEST['prev_next']) && ($_REQUEST['prev_next'] == 'prev' || $_REQUEST['prev_next'] == 'next'))
{