Question Threads 2.1.0 was rewritten from scratch. It is compatible with previous addon version but only works with XF 2.1 and above! If you are upgrading from version 2.0.2 read the instructions below!
Upgrading from Question Threads 2.0.2
New features
- Make a backup of database!
- Disable (not delete!) old Question Threads 2.0.2 addon
- Add
$config['CMTV_QT']['upgrade_install'] = true;
line insrc/config.php
file- Install new Question Threads 2.1.0 addon
- Delete old Question Threads 2.0.2 addon
- Delete added line in
src/config.php
file- Check addon permissions
Changes
- Now marking question as "Solved" and selecting best answer creates a news feed entry which is displayed in "Latest activity"
- Fully reorganized style properties
- Improved addon stability, better code quality
- Question and best answer marks are now correctly displaing everywhere
- XF 2.1 and PHP 7+ are required now to install the addon
Fixed bugs
Now you can't merge two questions with best answers.
- Question and best answer marks are displaying correctly in tags search pages
- Users with zero best answers will not appear in "Most best answers" list (@katsulynx)
- Fixed some bugs with threads merging (@Recep Baltaş)
Question Threads properties are fully depend on target thread. The result of merging a solved question with best answer to a simple thread will be a simple thread.
New features
Fixed bugs
- Added permission: "Mark own post in question as best answer" which is set to No by default
- Question and best anwer marks are displaying correctly in "What's new" page
The addon is rewritten from scratch. See the updated resource page for details.
UPGRADING FROM 1.2.5
- Backup your forum (both database and files) Seriously!
- Go to your forum root and remove these three folders:
src/addons/QuestionThreads
,js/questionthreads
andstyles/fonts/questionthreads
- Download addon version 2.0.0 and move contents from
upload
folder to your forum root- In admin panel go to "Addons" section and upgrade the addon
- After updating click on cog at the right and select "Rebuild"
- After rebuilding return to ACP main page. You will see an yellow message at the top saying there is a job to complete. Click the link in that message and it will automatically recalculate best answers for all users.
Fixed bugs
How to upgrade?
- Fixed an issue where the best answer icon is not changing in style settings @bolibick
- Fixed an issue where the best answer icon would stay "diamond" after changing it in style settings @bolibick
- Fixed an issue where an option to convert thread to question was appearing when editing every post in that thread (not only when editing first post)
Important! If you can't upgrade an addon and seeing "Version mismatch" message than you need to execute one simple SQL query (for example, it can be done via phpMyAdmin):
- Download an addon archive and unpack it somewhere
- Open upload folder and move all folders there to your forum root directory (with overwriting if needed)
- In admin panel go to "Add-ons" section and upgrade "Question Threads" addon
This is happening because I screwed up version id for previous (1.2.4) release.Code:UPDATE `xf_addon` SET `version_id` = 1020470 WHERE `title` = "Question Threads"
Fixed bugs
- Fixed an issue where the question in questions only forum would become an ordinary thread after editing in threads list page
- Phrases "Best answer" and "Not the best answer" can be translated via phrases now!