Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Some requests for Q2A 1.8

+4 votes
asked Jul 27, 2016 in Q2A Core by arjunsuresh
edited Jul 28, 2016 by arjunsuresh

I have been trying to make my Q2A site (it still runs 1.7.0 due to core hacks) better and hence trying to make all the plugins better. Most of the core functionality is very reliable in Q2A and with notification feature and caching coming it becomes even better. Just to add to them, some requests:

  • Adding Tag Search option in Core. I have made a plugin for this here but most of the display functions are taken from Q2A core as it uses that in the Ask Page to give tag suggestion. So, I guess it makes more sense for this to be part of core.
  • I guess at least 20% of Q2A site uses MathJax. This can be added to a Q2A site as a plugin but with one issue- on answer/comment add, we have to call

     MathJax.Hub.Queue(['Typeset', MathJax.Hub, e]);

    on the newly created <div> element e. Unfortunately this needs a core hack as of now in qa-question.js file

  • Notification feature is very much awaited. Would it be possible for developers to add new notifications to it? Because some plugins like blog-tool, question-merge etc. requires notifications. So, it would be great if there is a way to add new notifications in the core.
  • Replacing fb-login plugin with open-login plugin. AFAIK both are not mutually compatible and open-login looks a better one and has more options.
  • Long-term pending - FILTER METHOD- I suggest to let the users select a set of tags - and questions having those tags won't show on site for him. Not only this, admins can also restrict some set of tags per user. Advantage of this is
    • This allows certain set of questions to be more privileged. So, only those users which satisfies some criteria can view those. (This would also the require to be checked before loading a question page).
    • In my case I'm running an exam based on Q2A and would like to hide the questions until a user has completed the exam.
    • Also, my site is having questions from different examinations all having same subjects but different exams have different syllabus. So, it makes sense to filter the questions as per the syllabus of the exam per user.

    Currently this requires a core hack :( Or it would be nice if we can override functions from DB/selects.php

Q2A version: 1.8
commented Jul 31, 2016 by Coderx
you're welcome, I also noticed, images are not resized, it would be a nice addon that would resize an image to a predefined size
and or provide a test mode that would let admins test different features of the site, while no one can see or interfere .
commented Jul 31, 2016 by arjunsuresh
yes, image resize is also requested many times by users. Test mode is useful but this requires a copy of the database. Guess this needs to be enabled via core.

1 Answer

+1 vote
answered Jul 28, 2016 by Arjun Suresh

Found a solution for last one- using overrides and thus avoiding core hack. Q2A is wonderful for development :)

This is a basic plugin which allows admin to filter out certain tags globally from the site.