Re: Hide reported post

See if this works:

Change in viewtopic.php (line 286):

    else
        $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

To:

    else
    {
        if (!$is_admmod && isset($reported[$cur_post['id']]) && count($reported[$cur_post['id']]) >= 3)
        {
            $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a></li>';
        }
        else
        {
            $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';
        }
    }

Didn't test it. smile

27

Re: Hide reported post

Thanks. I'll try that.

28 (edited by falconflyz 2007-04-05 00:54)

Re: Hide reported post

Hi fmimoso
Thanks for your mod. But the method which you gave to Ambry is not good : members can always see the repported posts when posting a reply at the topic or with the command .../post.php?tid=x&qid=y
Regards

Re: Hide reported post

No bug, the modification is only meant to hide the post from one place wink

Re: Hide reported post

Exactly it helps to hide, Thanks

Re: Hide reported post

Ok... what??? Can someone please just post the straight code and instructions instead of a bunch of different codes? It really does get confusing...

Also, can you make it so that only moderators and administrators can report posts?

Thanks!