FAQ ( phase 1 for 7.6 ) redoneThe FAQ has long been a source of useful information for new users of UBB Threads, however it has been a nightmare for novice board owners to both modify and add to.
Step one for 7.6 has been to make the faq.tpl file much more readable and easy to understand. You now have the option of editing right in the template and adding new FAQ entries, since the template is simple.
Example of a FAQ entry in faq.tpl is:
<div class="tdheader faq-hdr"><img class="faq-sh" src="{$to}" />Question</div>
<div class="invis alt-2 faq-body">Answer</div>( compare it to how ugly the code was before and you will appreciate the simplicity )
the only thing to do is to modify the 'Question' and it's 'Answer'.
Gone are the id="expandy-0" etc and having to know to add it to the initialization script. As a board admin, you had to know javascript to do anything meaninful in the FAQ section, but not anymore.
If you simply copy/paste the template, the jQuery will automatically pick up on a new FAQ entry and hook it into the system.
Additionally, I've added quite a few CSS classes that can enhance the look and feel of each FAQ entry. Before, we were relegated to 'tdheader' and 'alt-1' with no flexibility.
new CSS classes are: faq-hdr, faq-body. If you don't use them, the FAQ will look as it has always looked.
I've also added the toggle_open.gif and toggle_closed.gif images, instead of the [+] and [-] hardwired text.
Additionally, you aren't forced to click on the image, but instead you can click anywhere on the Question row to toggle open/closed the Answer content.
Example of my dark red theme below:
Cursor is a pointer anywhere along the row

When clicked, a jQuery .slide() effect is used to smoothly slide out the hidden content

--- Phase 2: for 7.7+ --
I intend to suck all these language strings into the DB and have an Admin Cpanel FAQ editor to make it even easier...