SMFHacks.com

Modifications/Themes => Modifications Talk => Latest Mods => Topic started by: SMFHacks on March 13, 2016, 10:11:34 pm

Title: [Mod]Multiple QA - supports multiple questions, multiple answers, multiple languages
Post by: SMFHacks on March 13, 2016, 10:11:34 pm
Multiple QA - supports multiple questions, multiple answers, multiple languages



http://www.smfhacks.com/index.php?action=downloads;sa=view;down=199

One of the common complaints is Q&A support in SMF doesn't support multiple answers per question or languages per question.

I added this to 2.1 back in October 2013, but there's been nothing in the meantime, so here we go, a package ported back from 2.1's support. Everything is, therefore, 3-clause BSD should you want to do anything with it.

It's not a perfect port; 2.0 doesn't have jQuery as standard so I had to rewrite the JavaScript a little, but in hindsight it sort of works better this way.

While of most use to people with multiple language sites, anyone who wants to offer multiple choices of answer for any question can use this, e.g. if you want to offer variations on spelling or both numeric and textual answer components (e.g. 12 vs twelve)


Technical notes:

It uses the same table name and structure as 2.1 and so should upgrade cleanly. It will take your existing questions and upgrade them to the new table (and if you remove it, your original questions are preserved)

Note: to use this with multiple languages, UTF-8 is STRONGLY preferred. I will not get into trying to support installations that are running multiple languages without being UTF-8, it can't end well.