Advertisement:
2by2host

Author Topic: FAQ (Frequently Asked Questions) mod  (Read 50849 times)

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
FAQ (Frequently Asked Questions) mod
« on: June 20, 2011, 08:19:18 PM »
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.
« Last Edit: April 17, 2013, 06:02:48 PM by Suki »
The devil will find work for idle hands to do.

Offline Miles Marshall

  • Full Member
  • ***
  • Posts: 459
  • Gender: Male
    • GeekInc.org
Re: FAQ (Frequently Asked Questions ) mod
« Reply #1 on: June 20, 2011, 08:23:54 PM »
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

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,501
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: FAQ (Frequently Asked Questions ) mod
« Reply #2 on: June 20, 2011, 08:25:36 PM »
Hi MAS

Once installed where would I find the FAQs?

Looks interesting.
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline Miles Marshall

  • Full Member
  • ***
  • Posts: 459
  • Gender: Male
    • GeekInc.org
Re: FAQ (Frequently Asked Questions ) mod
« Reply #3 on: June 20, 2011, 08:27:42 PM »
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

Online Old Fossil

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,501
  • Gender: Male
  • Fussy Old Sod
    • @mkcommforum on Twitter
Re: FAQ (Frequently Asked Questions ) mod
« Reply #4 on: June 20, 2011, 08:33:16 PM »
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  ::)
My Forum
Simple Portal Beta Tester
 Mod Emulate
Forum Themes
My Forums Broken Fix

PMs for support will be returned with dynamite attached

Offline Cal O'Shaw

  • Full Member
  • ***
  • Posts: 442
  • SMF 1.1.14 & 2.0 Sites
Re: FAQ (Frequently Asked Questions ) mod
« Reply #5 on: June 20, 2011, 10:18:49 PM »
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

Offline Bugo

  • Customizer
  • SMF Hero
  • *
  • Posts: 1,418
  • Gender: Male
    • @dragomano on Twitter
    • Review of SMF mods + translation for these mods
Re: FAQ (Frequently Asked Questions ) mod
« Reply #6 on: June 21, 2011, 12:51:22 AM »
Very useful mod. Please add russian translation.

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,044
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: FAQ (Frequently Asked Questions ) mod
« Reply #7 on: June 21, 2011, 03:25:26 AM »
Thanks for this Mod.

Here the German Lang
All my Mods & Addons you can found here: My SMF Mods
- Meta Tags Mod
- Personal address BBCode Mod
- eBay BBCode Mod
- Countdown BBCode Mod
- Routemap Mod
- ...

I work with:
SMF 2 in German
Tornado Map

Offline MATTEK

  • Sr. Member
  • ****
  • Posts: 971
  • Gender: Male
  • Tyrannical
    • The Unsung Heroes
Re: FAQ (Frequently Asked Questions ) mod
« Reply #8 on: June 21, 2011, 03:43:59 AM »
Tried to add a FAQ and got

Quote
An 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!!

Offline WasdMan

  • Jr. Member
  • **
  • Posts: 176
  • Gender: Male
  • SMF opposition
Re: FAQ (Frequently Asked Questions ) mod
« Reply #9 on: June 21, 2011, 04:43:41 AM »
Congratulations! Finally a nice little package. I was looking for this item!

Offline WasdMan

  • Jr. Member
  • **
  • Posts: 176
  • Gender: Male
  • SMF opposition
Re: FAQ (Frequently Asked Questions ) mod
« Reply #10 on: June 21, 2011, 05:12:48 AM »
Are attached to the Hungarian language files.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: FAQ (Frequently Asked Questions ) mod
« Reply #11 on: June 21, 2011, 09:15:23 AM »
Tried to add a FAQ and got

Quote
An 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 :)
The devil will find work for idle hands to do.

Offline Jessica.

  • Full Member
  • ***
  • Posts: 456
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: FAQ (Frequently Asked Questions ) mod
« Reply #12 on: June 21, 2011, 11:50:01 AM »
Tried to add a FAQ and got

Quote
An 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.4, default Curve, over 60 mods installed, only a test forum
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

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: FAQ (Frequently Asked Questions ) mod
« Reply #13 on: June 21, 2011, 11:54:56 AM »
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.
The devil will find work for idle hands to do.

Offline Jessica.

  • Full Member
  • ***
  • Posts: 456
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: FAQ (Frequently Asked Questions ) mod
« Reply #14 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
Testing Zone - SMF 2.0.4, default Curve, over 60 mods installed, only a test forum
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

Offline MATTEK

  • Sr. Member
  • ****
  • Posts: 971
  • Gender: Male
  • Tyrannical
    • The Unsung Heroes
Re: FAQ (Frequently Asked Questions ) mod
« Reply #15 on: June 21, 2011, 02:45:47 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!!

Offline Jessica.

  • Full Member
  • ***
  • Posts: 456
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: FAQ (Frequently Asked Questions ) mod
« Reply #16 on: June 21, 2011, 02:50:35 PM »
nope. I went to Profile --> Look and Layout.
Testing Zone - SMF 2.0.4, default Curve, over 60 mods installed, only a test forum
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

Offline MATTEK

  • Sr. Member
  • ****
  • Posts: 971
  • Gender: Male
  • Tyrannical
    • The Unsung Heroes
Re: FAQ (Frequently Asked Questions ) mod
« Reply #17 on: June 21, 2011, 02:58:01 PM »
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!!

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: FAQ (Frequently Asked Questions ) mod
« Reply #18 on: June 21, 2011, 04:36:03 PM »
MATTEK   No,  it will affect only the FAQ mod.
The devil will find work for idle hands to do.

Offline MATTEK

  • Sr. Member
  • ****
  • Posts: 971
  • Gender: Male
  • Tyrannical
    • The Unsung Heroes
Re: FAQ (Frequently Asked Questions ) mod
« Reply #19 on: June 21, 2011, 04:40:46 PM »
Thank you.
SMF 2.0.1

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