When I try to put on FOF Best Answer It says this: Oops! Something went wrong. Please reload the page and try again

    Winky changed the title to FreeFlarum - Best Answer Issue (HELP) .
    Merged 2 posts from FreeFlarum - Best Answer Issue (HELP).
    Migrating extension: fof-best-answer
    Migrated: 2021_08_09_add_qna_column_to_tags_table
    Migrated: 2021_08_10_add_reminders_column_to_tags_table
    PHP Warning:  explode() expects parameter 2 to be string, array given in /www/wwwroot/unswforum.com/vendor/fof/best-answer/migrations/2021_08_15_migrate_reminder_settings.php on line 25
    
    Warning: explode() expects parameter 2 to be string, array given in /www/wwwroot/unswforum.com/vendor/fof/best-answer/migrations/2021_08_15_migrate_reminder_settings.php on line 25
    PHP Warning:  Invalid argument supplied for foreach() in /www/wwwroot/unswforum.com/vendor/fof/best-answer/migrations/2021_08_15_migrate_reminder_settings.php on line 25
    
    Warning: Invalid argument supplied for foreach() in /www/wwwroot/unswforum.com/vendor/fof/best-answer/migrations/2021_08_15_migrate_reminder_settings.php on line 25
    Migrated: 2021_08_15_migrate_reminder_settings

    1.1.2, same problem here...It doesn't work after updating. I have to disable the extension.


    Update:

    1.1.3 still can't select the best answer(no button in posts). I find nothing in the console.

    1.0.1 works well.

    9 days later

    The way new update is working, its unique! The settings via tags but with this new update it has added another form, on search. My search was move to homepage so for people using @media below screens, it's congested. How can we remove form All question , thanks!

    @stimw

    Ralkage 360nemz if you installed the latest version, you'll have to go into the Tags admin page and pick which tags you want to designate as a question and answer tag. There should be two options in the edit and create tags modals.

    1.1.4

    Well, this started on 1.1.0 but has not been announced so far, so lumping it all together here 😉

    • Add filtering by solved, unsolved or all
    • Ability to enable/disable specific tags for Best Answers
    • Ability to enable/disable BA reminders for specific tags
    • Start a discussion button now shows Ask a question when within a BA enabled tag. (can be adjusted using FoF Linguist

    image
    image

    ⚠️ Important

    When updating from previous versions, you must either enable all tags for best answer or individually from the tag configuration modal (2nd screenshot as an example)

    Updating
    composer require fof/best-answer:"*"
    php flarum cache:clear
    php flarum migrate

      Start a discussion button now shows Ask a question when within a BA enabled tag. (can be adjusted using FoF Linguist

      this is really a cool feature to have! may i ask you a quick question

      when it is enabled for all tags the button is changing to "ask a question" but it is not changing at home, following, tags pages. so this need to be changed using the linguist right?

        Hari so this need to be changed using the linguist right?

        correct, yes.

        IanM Add filtering by solved, unsolved or all

        Can we hide the filtering? It is kind of weird when we don't set a special Q&A tag but just set all the tags.

        And it looks bad on the mobile phone with other extensions like Discussion Language

          I'm not good at front-end, but I just use this css to hide it:

          .item-solved-filter {
              display: none !important;
          }

          I'm not sure if it will cause other problems...

            stimw Can we hide the filtering?

            At present, the only way would be with css as you showed. It is quite trivial to add an additional setting toggle to let forum admins decide if it should be shown. PR welcome if you'd like to add that 🙂

            1.1.5

            • Add option to show or hide the new Best Answer filtering dropdown (stimw )
            Installation/Updating
            composer require fof/best-answer:"*"
            php flarum migrate
            php flarum cache:clear

              stimw can we only hide for the mobile view? if yes please suggest CSS

                Hari

                @media (max-width: 767px) {
                  .item-solved-filter {
                    display: none !important;
                  }
                }

                maybe this?

                with the reference of a few old CSS optimizations, I have finally added this to hide filter in mobile.

                @media @phone {
                  .item-solved-filter {
                    display: none !important;
                  }
                }

                Just mentioning here, it will be helpful to others who are using the 1dot's start discussion button extension 🙂

                  Hari 1dot's extension has been updated with a repositioning of the button to above. I don't have an issue with the filter anymore.

                    witech its not start discussion button extension that solved the issue, ianm had already solved that problem on 11th here https://discuss.flarum.org/d/21894/189 but still some people were trying to use css, instead of updating fof best answer

                    • Hari replied to this.