• GitHub
  • Documentation
  • Discord
  • Donate
search
  • chevron_right Threads
  • label Support

How to enable "best answer" option

tetricky
Nov. 19, 2023
chat_bubble_outline 12
  • check_circle
  • link
    tetricky
    Members 159 posts
    Nov. 19, 2023, 3:38 p.m. Nov. 19, 2023, 3:38 p.m.
    link

    I find that I'm completely baffled by permissions.

    Is there a simple way to add "Best Answer" permissions to users? I have completely failed to get to grips with this.

    There are effectively two ranks:

    Admin: Who I want to be able to edit all best answers
    Users: Who I want to allow to set a best answer, and change a best answer on threads of their creation only.

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 19, 2023, 10:16 p.m. Nov. 19, 2023, 10:16 p.m.
    link

    For some reason Django update caused CheckboxSelectMultiple to display as radio choice. This is wrong and needs to be fixed, so Misago 0.38.1 will happen soon. 🤬

    Otherwise you would add the "Q&A Forums" role to the users rank, and edit category permissions for "Q&A Forums" user role you would set "Q&A User" for every category.

    I find that I'm completely baffled by permissions.

    I am also baffled by Misago's permission system and want to replace it with much saner perms system soon. I am talking January-February 2024 here.

    In the meantime here's how I am understanding the perms system myself:

    • Users have ranks which are groups
    • Groups have user roles, which are secondary groups
    • User roles ("secondary groups") have category permissions through category roles
  • link
    tetricky
    Members 159 posts
    Nov. 20, 2023, midnight Nov. 20, 2023, midnight
    link

    Thanks for that...it at least explains how I couldn't think to make a sane selection of an individual role.

    I'm currently dealing with the permissions system, by trying to keep it as simple as possible. It's not good...and the changes that you are planning will be most welcome! The major bonus is that it's transparent to the user. The downside is I hardly dare risk and changes, as who knows what might happen.

    It just occurred to me that I hadn't enabled 'best answer'....mainly because I think I had given up the last time I looked at it.

  • link
    tetricky
    Members 159 posts
    Nov. 20, 2023, 11:05 p.m. Nov. 20, 2023, 11:05 p.m.
    link
    @rafalp has written:

    you would add the "Q&A Forums" role to the users rank, and edit category permissions for "Q&A Forums" user role you would set "Q&A User" for every category.

    I seem to be unable to add "Q&A Forums" role to the users rank. I can't see an option.
    ranks.png

    Equally in Categories I can't see an option.
    categories.png

    In permissions I don't have a "Q&A Forums" role.

    categories.png

    PNG, 25.8 KB, uploaded by tetricky on Nov. 20, 2023.

    ranks.png

    PNG, 23.2 KB, uploaded by tetricky on Nov. 20, 2023.

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 20, 2023, 11:11 p.m. Nov. 20, 2023, 11:11 p.m.
    link

    You are right. I don't see those in standard Misago.

    But you can create category role and name it "Q&A user". Then give it those permissions (skip rest of form):

    Zrzut ekranu 2023-11-20 o 23.08.20.png

    Same with "Q&A Moderator":

    Zrzut ekranu 2023-11-20 o 23.08.34.png

    Then create new user role "Q&A User", don't set any permissions on this role, but grant it "Q&A User" role in categories users should be able to select replies as solutions.

    Likewise create new user role "Q&A Moderator" but use "Q&A Moderator" role in categories.

    Zrzut ekranu 2023-11-20 o 23.08.34.png

    PNG, 83.1 KB, uploaded by rafalp on Nov. 20, 2023.

    Zrzut ekranu 2023-11-20 o 23.08.20.png

    PNG, 98.4 KB, uploaded by rafalp on Nov. 20, 2023.

  • link
    tetricky
    Members 159 posts
    Nov. 20, 2023, 11:17 p.m. Nov. 20, 2023, 11:17 p.m.
    link

    I don't seem to have a "Best Answer" section in creating a role.

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 20, 2023, 11:21 p.m. Nov. 20, 2023, 11:21 p.m.
    link
    check_box

    Marked as best answer by Nov. 20, 2023, 11:37 p.m..

    Its only in category roles. But you should already have both "Q&A user" and "Q&A moderator" roles in category roles created for you because while user roles for Q&A don't exist by default, the category roles do.

    So:

    1. Go to "Permissions" -> "New role". Fill in name only (eg. "Q&A user") and save the role.
    2. Click on new role's options button and pick "Category permissions". For each category where they should be able to pick answers give them "Q&A user" role.
    3. Go to "Ranks" -> "Members". Add the "Q&A user" role you've created in 1st step.
    4. Repeat above for the "Forum team" user rank, but use the the "Q&A moderator" role instead.
  • link
    tetricky
    Members 159 posts
    Nov. 20, 2023, 11:25 p.m. Nov. 20, 2023, 11:25 p.m.
    link

    I have those in category roles. But I can't see how to make them show up as an option...and I can't see how to create a role without a best answer section in role creation dialogue.

    I think this might be where I got to before, when I gave up.

    ---EDIT---

    Your instructions worked. Thank you for that!

    I would never have worked it out.

    rafalp likes this.

    favorite 1

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 20, 2023, 11:34 p.m. Nov. 20, 2023, 11:34 p.m.
    link

    perms-guide.gif

    (click on the image to open animated gif)

    perms-guide.gif

    GIF, 2.8 MB, uploaded by rafalp on Nov. 20, 2023.

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 20, 2023, 11:46 p.m. Nov. 20, 2023, 11:46 p.m.
    link
    @tetricky has written:

    I would never have worked it out.

    Yeah, its terrible. In future I will make the "can change best answer choice" and "time to change best answer choice" permissions on user group, and have extra "let users select best answers in their threads" option on category. Not as powerful as current system, but much simpler and should cover 99% of cases.

  • link
    tetricky
    Members 159 posts
    Nov. 21, 2023, 12:30 a.m. Nov. 21, 2023, 12:30 a.m.
    link

    Best answer is now working for me. Thank you very much for your help.

    From a use perspective, it would be nice if marking a best answer also added a link to that post, directly below the first topic in the thread. Where the thread spreads over several pages, this would allow a new viewer to quickly find the best answer. That's a wish, not a must have. It works as it is.

    Thank you for all your work.

  • link
    rafalp
    Project Lead 1976 posts
    Nov. 21, 2023, 12:31 a.m. Nov. 21, 2023, 12:31 a.m.
    link

    There's a shortcut in shortcuts menu:

    Zrzut ekranu 2023-11-21 o 00.30.52.png

    Zrzut ekranu 2023-11-21 o 00.30.52.png

    PNG, 28.0 KB, uploaded by rafalp on Nov. 21, 2023.

  • link
    tetricky
    Members 159 posts
    Nov. 21, 2023, 12:32 a.m. Nov. 21, 2023, 12:32 a.m.
    link

    That does it!

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Donate
  • Terms of service
  • Privacy policy
powered by misago