xF1 Add-on - Best Answer / Q&A System | NulledTeam UnderGround | The Best Scripts Site In The World
Best Answer / Q&A System

xF1 Add-on Best Answer / Q&A System

No permission to download
Compatible XF Versions 1.x
1.2, 1.3, 1.4
This add-on adds the functionality to make a Q&A/support/best answer system on your forum. This is best suited for forums that give support or is a question/answer forum.


* This add-on does not add any additional queries to thread load! We built this add-on to focus on performance.

Did you want to make a fully interactive support forum? What about a Q&A forum? Something along those lines? Maybe something like this?

Well, here's the perfect add-on to do just that!

Live demo: Apantic
Also see: Testing Thread Title | Apantic

This add-on allows users with the correct permission to vote for posts. The top voted post that exceeds the threshold, defined in the add-on's options, is set as the thread's best answer. The thread's best answer has its post background colour changed to a colour defined in the style properties. A ribbon is shown next to the post (option in the admin CP). There is also a little box at the top, we call it the mini display, which shows a shortened version of the post with a link to the post, the user's avatar, the post date, the user's username and a few nice looking buttons (go to post and best answer, both are phrases and the text can easily be changed).

A copy of these instructions, and more information, can be found in README.txt after downloading. Configuration options are also explained in README.txt

1. Unzip BestAnswer.zip
2. Upload the contents of the upload directory to your XenForo installation
3. Install the add-on by either of the following methods
Admin CP -> Add-ons -> Install Add-on ->
Install from file on server:
Install from uploaded file:
Upload addon-BestAnswer.xml
4. The add-on should now install, and a short rebuilding process should occur. Once done, the installation has been successful!

1 new table:
  • ba_votes
1 column added in xf_user:
  • bestanswers
1 column added in xf_thread:
  • bestanswer
  • ba_alternativeanswers
1 column added in xf_post:
  • ba_votes

This add-on makes a callback to Apantic's servers. This is an API callback. No information about your server other than the board URL is passed. This URL is not stored anywhere on Apantic's server, it is simply used to check whether or not your license has branding removal.

Importing from Mark Posts as Best Answer
An importer is available as of version 1.0.2 to import your data from Mark Posts as Best Answer. Importing is a little bit sketchy because, coincidentally, both Best Answer by Apantic and Mark Posts as Best Answer use the same add-on ID and directory layout. As of 1.0.2 the add-on ID has changed from BestAnswer to ApanticBestAnswer. If you're using version 1.0.1, please uninstall the add-on and reinstall it if you have no data, or if you have data set your board into debug mode, edit the add-on's ID to ApanticBestAnswer. Coming onto the second problem, both add-ons use the same directory layout. Therefore the following instructions have been made. As to note with any importing process, please backup your database. Apantic will not be liable for any loss of data. Before these steps, please disable access to your board (untick the Board Active setting).

1. Disable Mark Posts as Best Answer (not uninstall)
2. Rename the directory /library/BestAnswer to something else (such as /library/BAByLior)
3. Install Best Answer by Apantic as normal using the instructions above. There should be no conflict as the old directory has been renamed
4. Go to Tools -> Import External Data and select Best Answer by Lior => Best Answer by Apantic
5. Enter your database information (in most cases this will be your current XenForo database, so get the information from /library/config.php) and hit Validate Configuration
6. Run the importer as normal. Continue to next step once the importer has completed (it has been made efficiently to avoid any problems, it should be done soon enough depending on the size of your board)
7. Rename /library/BestAnswer to something else (such as /library/BAByApantic) and rename Lior's Mark Posts as Best Answer back to /library/BestAnswer
8. Uninstall Lior's Mark Posts as Best Answer and remove /library/BestAnswer and /js/bestanswer after a successful uninstallation
9. Rename Best Answer by Apantic back to /library/BestAnswer and enable it in Admin CP

Importing complete! It seems much more complicated than it actually is, and most of the complication is just getting your head around which folder you need to rename. It's a very simple process. The Apantic Team can assist with anyone having any trouble with this, included within the support package. Support is given here and Apantic's support site.

Thank You
Last but certainly not least, a huge thank you to the following users, in no particular order.
batpool for pointing me in the right direction multiple times and assisting with some parts of the code (esp. caching data).
Chris D for, again, pointing me in the right direction and for constantly helping with problems that kept coming up.
digitalpoint for assisting with the caching problem with query overload and providing a solution.

There are also others who assisted, you know who you are. Thank you so much! You've helped me get to this point, and hopefully there will be lots more achievements to come.​

First release
Last update
0.00 star(s) 0 ratings

More resources from AnimeHaxor

Share this resource