Requirement: XThreads
Based on the
Thread Descriptions example application, we will try to create a simple Frequently Asked Question (FAQ) forum using XThreads.
Create/edit a forum:
AdminCP -> Forums & Posts -> Forum Management:
- Template Prefix: faq_
- Language File Prefix:
- Show first post on every showthread page: Yes
- Enable XThreads' Inline Forum Search: Yes
- Allow Blank Post Message: Yes
Maybe we need to set the forum permissions so only Admin and Moderators can create threads in this forum.
Create a Custom Thread Fields:
AdminCP -> Configuration -> Custom Thread Fields
- Title: Answer
Modify it as our needs
- Key: faq_answer
- Applicable Forums: select our FAQ forum
- Input Field Type: Multiline Textbox
- Editable by / Required Field?: Moderators
Modify it as our needs (depends on the FAQ forum permissions to create a thread)
- Display Parsing: Use MyBB Parser (MyCode)
- MyBB Parser Options: check the following options:
- Allow newlines
- Filter Badwords
- Allow MyCode
Modify it as our needs.
Create new templates in Global Templates:
AdminCP -> Templates & Style -> Templates -> Global Templates
- faq_editpost_first
- faq_forumdisplay_searchforum_inline
- faq_forumdisplay_sticky_sep
- faq_forumdisplay_thread
- faq_forumdisplay_threadlist
- faq_forumdisplay_threads_sep
- faq_forumdisplay_thread_modbit
- faq_newthread
- faq_postbit_first & faq_postbit_first_classic
- faq_showthread
- faq_showthread_noreplies
We use language prefix for that (attached). Upload it to our
inc/languages/*our language* folder.
Scr:
Threadlist:
Shothread:
Newthread/Editpost:
Live Demo:
http://mybbhacks.zingaburga.com/forumdisplay.php?fid=37
(the Important FAQ are sticky threads, and the General FAQ are normal threads).