FriendsOfFlarum Best Answer
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
orall
- Ability to enable/disable specific tags for Best Answers
- Ability to enable/disable BA reminders for specific tags
Start a discussion
button now showsAsk a question
when within a BA enabled tag. (can be adjusted using FoF Linguist
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?
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...
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
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
for some reason this extension seems to be not working very well with rich text (at least on my forum talkie.vn). When I have this extension and rich text on, all of the formatting button does not really works (they reset the cursor to the beginning). I tried downgrading to version 1.01, still same problem
- Edited
Not sure what is up with the latest version of this plugin but I can't have it installed without bringing down the site. Couldn't do php flarum info while the plugin was installed. Kept getting this error
PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39
Stack trace:
#0 /var/www/html/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(39): PDO->__construct()
#1 /var/www/html/flarum/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct()
#2 /var/www/html/flarum/vendor/illuminate/database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection()
#3 /var/www/html/flarum/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#4 /var/www/html/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect()
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 /var/www/html/flarum/vendor/illuminate/databas in /var/www/html/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php on line 18
Here's the php flarum info with the plugin uninstalled.
Flarum core 1.0.4
PHP version: 7.4.3
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, apc, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, Phar, Zend OPcache
+-------------------------------------+---------+--------+
| Flarum Extensions | | |
+-------------------------------------+---------+--------+
| ID | Version | Commit |
+-------------------------------------+---------+--------+
| flarum-flags | v1.0.0 | |
| flarum-suspend | v1.0.0 | |
| flarum-lock | v1.0.0 | |
| flarum-likes | v1.0.0 | |
| flarum-nicknames | v1.0.0 | |
| flarum-approval | v1.0.0 | |
| flarum-tags | v1.0.3 | |
| fof-upload | 1.0.2 | |
| fof-drafts | 1.0.3 | |
| fof-links | 1.0.0 | |
| fof-moderator-notes | 1.0.0 | |
| fof-socialprofile | 1.1.0 | |
| fof-user-bio | 1.0.0 | |
| clarkwinkelmann-lock-likes | 1.1.1 | |
| flarum-sticky | v1.0.0 | |
| flarum-lang-english | v1.0.0 | |
| flarum-bbcode | v1.0.0 | |
| flarum-mentions | v1.0.0 | |
| flarum-statistics | v1.0.0 | |
| flarum-subscriptions | v1.0.0 | |
| flarum-markdown | v1.0.1 | |
| fof-username-request | 1.0.0 | |
| fof-user-directory | 1.0.2 | |
| fof-split | 1.0.0 | |
| fof-polls | 1.0.3 | |
| fof-merge-discussions | 1.0.0 | |
| fof-formatting | 1.0.1 | |
| fof-byobu | 1.0.0 | |
| clarkwinkelmann-first-post-approval | 1.0.0 | |
| zerosonesfun-bbcode-audio | 2.1 | |
+-------------------------------------+---------+--------+
Checking the log this seems to be the only information
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_qna' in 'field list' in /var/www/html/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /var/www/html/flarum/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(84): Doctrine\DBAL\Driver\PDO\Exception::new()
#1 /var/www/html/flarum/vendor/illuminate/database/Connection.php(479): Doctrine\DBAL\Driver\PDOConnection->prepare()
#2 /var/www/html/flarum/vendor/illuminate/database/Connection.php(685): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#3 /var/www/html/flarum/vendor/illuminate/database/Connection.php(652): Illuminate\Database\Connection->runQueryCallback()
#4 /var/www/html/flarum/vendor/illuminate/database/Connection.php(486): Illuminate\Database\Connection->run()
#5 /var/www/html/flarum/vendor/illuminate/database/Connection.php(438): Illuminate\Database\Connection->statement()
#6 /var/www/html/flarum/vendor/illuminate/database/Query/Processors/Processor.php(32): Illuminate\Database\Connection->insert()
#7 /var/www/html/flarum/vendor/illuminate/database/Query/Builder.php(2997): Illuminate\Database\Query\Processors\Processor->processInsertGetId()
#8 /var/www/html/flarum/vendor/illuminate/database/Eloquent/Builder.php(1650): Illuminate\Database\Query\Builder->insertGetId()
#9 /var/www/html/flarum/vendor/illuminate/database/Eloquent/Model.php(1123): Illuminate\Database\Eloquent\Builder->__call()
#10 /var/www/html/flarum/vendor/illuminate/database/Eloquent/Model.php(1088): Illuminate\Database\Eloquent\Model->insertAndSetId()
#11 /var/www/html/flarum/vendor/illuminate/database/Eloquent/Model.php(929): Illuminate\Database\Eloquent\Model->performInsert()
#12 /var/www/html/flarum/vendor/flarum/tags/src/Command/CreateTagHandler.php(72): Illuminate\Database\Eloquent\Model->save()
#13 /var/www/html/flarum/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Tags\Command\CreateTagHandler->handle()
#14 /var/www/html/flarum/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}()
#15 /var/www/html/flarum/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#16 /var/www/html/flarum/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#17 /var/www/html/flarum/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#18 /var/www/html/flarum/vendor/flarum/tags/src/Api/Controller/CreateTagController.php(52): Illuminate\Bus\Dispatcher->dispatch()
#19 /var/www/html/flarum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(110): Flarum\Tags\Api\Controller\CreateTagController->data()
#20 /var/www/html/flarum/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController->handle()
#21 /var/www/html/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractCreateController->handle()
#22 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#23 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
#24 /var/www/html/flarum/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#25 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process()
#26 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#27 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process()
#28 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#29 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
#30 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#31 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
#32 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(56): Laminas\Stratigility\Next->handle()
#33 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#34 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#35 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process()
#36 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#37 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
#38 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#39 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
#40 /var/www/html/flarum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#41 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\FakeHttpMethods->process()
#42 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#43 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
#44 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#45 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
#46 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#47 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
#48 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#49 /var/www/html/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#50 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
#51 /var/www/html/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#52 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
#53 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#54 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
#55 /var/www/html/flarum/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#56 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
#57 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#58 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
#59 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#60 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
#61 /var/www/html/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#62 /var/www/html/flarum/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#63 /var/www/html/flarum/public/index.php(22): Flarum\Http\Server->listen()
#64 {main}