FAQ (Frequently Asked Questions) mod

Started by Suki, June 20, 2011, 08:19:18 PM

Previous topic - Next topic

Suki

Link to Mod

FAQ mod
by Miss All Sunday

There is no support for this mod from the mod author, thanks goes to those who only complains but never actually show any gratitude

License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/

Special thanks to Spuds for that awesome debugging :D

This mod needs php 5.2+ to work properly

Description

This mod allow you to have a separate page where you can publish your FAQs (Frequently Asked Questions)

some features:

-Categories, you can add as many categories as you want.
-Permission to Edit/Add/Delete FAQs and categories.
-Pagination, to easily navigate through the FAQs if you have too many of them.
-3 ways to sort your FAQs, by title, by ID or by category.
-Select the position for the FAQ button within your Main Menu.
-You can use JavaScript to hide the body/answer to save some space, to show the body/answer, just click on the title.
-Permission to "see" the FAQ page.
-You can use BBC code on your FAQs, this mod uses the SMF editor which make it easy to add/edit your FAQs.


This mod uses hooks, which means non of your files are edited during the installation.

for SMF 2.0.x only

Laguage
-English


Change Log

- 2.0
   Cleaner code.
   Search feature.
   Add more links to manage faqs and cats.
   Separate permissions for adding, editing, deleting and searching.

-1.2
   Fixed a bug with the categories been reset when editing a faq.
   Re-write in OOP, the mod now performs less queries by using the cache system if avaliable.
   Some code improved.

-1.1
   -Added categories
   -Permission to Add/Edit/Delete FAQs and Categories.
   -Lots of bugs fixed.
   -Previews.

-1.0.1
   -Revamp of language strings.
   -Use of javascript:void(0) instead of # on Faq.template.php.
   -Fixed an issue witht the WYSIWYG editor, thenks to Tenma.

-1.0
   -Finished first version.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Miles Marshall

I installed this and tested out.. very nicely done
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

TheListener

Hi MAS

Once installed where would I find the FAQs?

Looks interesting.

Miles Marshall

Brack1,

Once installed it will be at the top called "FAQ' when you put your mouse over it lets you add a new faq or modify the settings for it.
Need Computer Help? Just want to chat? Come on over! http://www.geekinc.org
"I tried to fix the world but they wouldn't give me the source code"

-Miles

TheListener

Cheers bud.

As my forum is related to the area where i live this mod may come in very useful.

What won't be easy will be finding questions  ::)

Cal O'Shaw

Just installed this MOD and it works great! 

Would you consider in the future adding a permission as to who can edit FAQs?  We have some global moderators who help manage our site but don't have full admin powers (they don't deal with technical matters).  They can edit News and would like them to be able to edit FAQs as well.

Grazie,

Cal

Bugo

Very useful mod. Please add russian translation.

Eclipse16V

Thanks for this Mod.

Here the German Lang
I worked with:
SMF 2 in German

Shop:
SID Giessen

MATTEK

Tried to add a FAQ and got

QuoteAn Error Has Occurred!
You must provide a body.

Nothing in my error log.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

WasdMan

Congratulations! Finally a nice little package. I was looking for this item!

WasdMan

Are attached to the Hungarian language files.

Suki

Quote from: MATTEK on June 21, 2011, 03:43:59 AM
Tried to add a FAQ and got

QuoteAn Error Has Occurred!
You must provide a body.

Nothing in my error log.


are you using the WYSIWYG editor?

mmm, it appears that if you are using it, it won't let you save the body, let me check about it.



@Everyone   Thanks you all for your translations,  however, I got plans to add a permissions to  edit/add FAQs   so I may add 3 or 4 new txt strings, hope you can translate those too :)
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Jessica.

Quote from: MATTEK on June 21, 2011, 03:43:59 AM
Tried to add a FAQ and got

QuoteAn Error Has Occurred!
You must provide a body.

Nothing in my error log.

I get this as well

where would you change it so you won't be using the WYSIWYG editor?
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Suki

I am working on it right now, unfortunately its a lot more difficult that I expected :(    a quick way to solve it is to turn off the WYSIWYG  editor,  on your  Sources/Faq.php file find:


      // Needed for the WYSIWYG editor.
      $modSettings['disable_wysiwyg'] = !empty($modSettings['disable_wysiwyg']) || empty($modSettings['enableBBC']);



and replace with:

      // Needed for the WYSIWYG editor.
      $modSettings['disable_wysiwyg'] = true;


this will turn off the editor,   this is not the way I want to solve this as I want that users can be able to use the WYSIWYG editor  to add/edit the FAQs.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Jessica.

I went to my Looks and Layout and unchecked 'Turn on WYSIWYG editor on post page by default' and I was able to create FAQs
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

MATTEK

Quote from: Jessica. on June 21, 2011, 02:14:28 PM
I went to my Looks and Layout and unchecked 'Turn on WYSIWYG editor on post page by default' and I was able to create FAQs

Do you mean Theme and layout?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Jessica.

nope. I went to Profile --> Look and Layout.
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

MATTEK

I don't have that checked anyway.


@ MissAllSunday - If I change the code like you said do you think it will effect my quick reply with BBC and smilies?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Suki

MATTEK   No,  it will affect only the FAQ mod.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Advertisement: