Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
941 views
in Q2A Core by
edited by
For instance, that user is posting poor quality content or they had an altercation and wish to avoid each other
Q2A version: 1.7.4

3 Answers

0 votes
by
If you want to hide question or answer of another user then you can use flag, set flag value to 1 in admin panel so as soon as someone dont want to see question or answer they can flag and it will be hidden. remember hidden question or answer will not be visible to other users, only admin can see from his panel.
by
I guess I wasn't clear enough - if a user wishes not to see all the posts of another user without having to flag each post or report it or deal with it. He just wishes to ignore another users' posts entirely.
+2 votes
by
edited by

This may not be a fundamental solution. Changing a lot of database queries is difficult (It's not impossible). I may implement solution below.

  1. Make a layer plugin
  2. Add special class (e.g. qa-post-not-me) to the all posts (questions, answers, comments)  other than me in the layer functions
  3. Add toggle switch ("Show all" / "Show only my posts")
  4. When switch is changed, jQuery show/hide posts of other users. For example... 
    <script> // Just a sample. Not working.
    $(function() {
      $('#toggle').on('change', function(e) {
        $('.qa-post-not-me').show();
          OR
        $('.qa-post-not-me').hide();
      });
    });
    </script>
by
Clever solution - pushing the processing onto the user side :)

I guess I'd also need to count how many posts are by the blocked user or users - how many should be shown per page etc in order to show the correct number per page.

There's also the delay when the browser renders the html on the screen, and the various js scripts are executed to do various existing processing and then the hiding where the user potentially sees the blocked posts momentarily...
by
Yes. Since we need to consider various conditions, actual server side codes (Layer plugin) will be more complicated.
+2 votes
by

I would say to go for a plugin creation. We can have a plugin which will maintain the blocked user list for each user. Then the problem narrows down to just filtering the questions from the blocked list. I had made a similar plugin which filters questions from selected tags per user preference -- you may change this. This requires slight changes in the core -- the changed core file is also part of the below plugin. 

As a second part, we need to block out messaging too. I don't think any Q2A plugin does this now. 

http://www.question2answer.org/qa/53056/question-filtering

...