[size=4][b]Questions & Answers[/b][/size] 1.2.0 by [url=https://boredskull.net]BoredSkull[/url]

Question topics for SMF 2.1, in the style of XenForo's question threads and Stack Overflow, with a built-in "topic solved" system.

[b]Question boards[/b]
[list]
[li][b]Optional[/b]: members tick "Question" when starting a topic. The asker or a moderator can also turn an existing topic into a question, or back.[/li]
[li][b]Question-only[/b]: every topic is a question, including the ones already there.[/li]
[li]Other boards are unchanged.[/li]
[/list]

[b]Answers[/b]
[list]
[li]Every reply is an answer with up and down vote arrows and a score. Votes save without reloading the page; clicking either arrow when a vote is already active clears it to zero first. Clicking again casts the new vote. Members can't vote on their own answers.[/li]
[li]Answers can be sorted by [b]votes[/b] (best first, across all pages) or by [b]date[/b]. The admin picks the default; members can switch.[/li]
[li]Down votes can be turned off, or limited to members with enough reputation.[/li]
[/list]

[b]Accepted answers and solved topics[/b]
[list]
[li]The asker (or a moderator) clicks the tick next to the answer that solved it. The question is marked [b]Solved[/b], the answer is highlighted, shown first when sorting by votes, and a "Solution" summary appears under the question.[/li]
[li]Questions can also be marked solved without choosing an answer, and marked unsolved again.[/li]
[li]Solved and Question badges in topic lists. Optionally lock questions when they're solved (unlocked again if unsolved).[/li]
[li]Alerts when your answer is accepted, or your question is marked solved by a moderator.[/li]
[/list]

[b]Reputation[/b]
[list]
[li]Points for up votes received, lost for down votes, and for accepted answers (not counting your own questions). The points are set in the admin.[/li]
[li]Shown next to posts in question boards (or everywhere, if you prefer), with an [b]Answers[/b] page in profiles: reputation and rank, votes received, accepted answers, top answers.[/li]
[li]Earned reputation is calculated from votes and accepted answers. Admins can separately award or deduct points in Reputation Management; every change is logged and survives recounts.[/li]
[/list]

[b]Questions page[/b]
Unsolved, Unanswered, Solved, All and My questions, filtered by board and sorted by newest, recent activity or most answers, with a top answerers list.

[b]Setting up[/b]
After installing, choose your question boards in Admin > Configuration > Questions & Answers > Question boards. Board permissions [i]Vote on answers[/i] and [i]Accept answers and mark questions solved[/i] (own/any) are given to members who can reply, and "any" to moderators.

[b]Uninstalling[/b]
Topics and posts are kept. Tick "Remove all data associated with this modification" to delete votes, solved status and reputation.

[b]v1.0.1 maintenance update[/b]
Fixes answer/topic removal cleanup, accepted-answer unlocking, concurrent voting consistency, UTF-8 summaries without mbstring, and admin recount repairs. The upgrade preserves existing configuration and data. After upgrading, run the maintenance recount once to repair any pre-existing orphan records.

[b]v1.1.0 reliability update[/b]
Fixes new topics not being created as questions by using SMF's post-topic-creation hook. Tightens output escaping and excludes unapproved topics and answers from public profile answer lists. Supports upgrading from 1.0.0 or 1.0.1 without removing settings or voting data.


[b]v1.1.1 voting and reputation fix[/b]
Cancelling a vote with the opposite arrow now returns it to neutral before the next vote. Reputation recalculation runs with the accepted-answer state update.

[b]v1.1.2 accepted-answer withdrawal reliability[/b]
The admin unaccept action now validates which answer is currently accepted and does not silently redirect after an unsuccessful operation. Withdrawal is verified against the saved question state and the affected author's stored reputation. If verification fails, the action reports an error rather than falsely reporting success. Adds an in-place upgrade from 1.1.1; all existing data and settings are preserved. After upgrading, run the reputation recount once to repair earlier inconsistencies.


[b]v1.2.0 Reputation Management[/b]
Under Admin > Configuration > Questions & Answers > Reputation Management, administrators can find a member by ID or exact name, inspect earned points, award or deduct points with a required reason, and reverse past adjustments. The audit log records who changed the points and when. Reversals are appended, not erased, and cannot be replayed.

Recounts preserve adjustments (including for members with no votes). The package upgrades in place from versions 1.0.0 through 1.1.2, preserving current data.

[b]Important[/b]: Manual adjustments do not change the underlying accepted-answer or vote records. For previously incorrect reputation, use the breakdown and recount to investigate the source before applying a correction. Back up the database before upgrading.
