News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

FAQ Tag

Started by Thantos, December 21, 2005, 06:30:58 PM

Previous topic - Next topic

Thantos

Link to Mod

FAQ Tag

Written by: Michael Miller
Contact:  [email protected]

This mod adds a [faq] tag that can be used in two ways:
1) [faq=###], displays the faq item with the requested id
2) [faq]Some Title[/faq], displays the faq item with the requested subject

If no match is found then nothing will be displayed.

Also included is an FAQ page accessible though ?action=faq.  No CSS was included so you'll need to specify the design yourself. 
To aid you in that the following CSS classes are used:
faqlist_item
faq_item
faq_header
faq_body

And the following ID is used
faqlist.

The basic structure of the page is:
<ul id="faqlist>
  <li class="faqlist_item">Link</li>
  ...
  <li class="faqlist_item">Link</li>
</ul

<div class="faq_item">
  <div class="faq_header">Title of FAQ item</div>
  <div class="faq_body">Body of FAQ item</div>
</div>

<div class="faq_item">
  <div class="faq_header">Title of FAQ item</div>
  <div class="faq_body">Body of FAQ item</div>
</div>

...

<div class="faq_item">
  <div class="faq_header">Title of FAQ item</div>
  <div class="faq_body">Body of FAQ item</div>
</div>


A permission was also added in to specify you may manage the faq entires.  The permission is named manage_faq


Version History:
Version 0.1:
-Original Version

3guk

Edit : Im an idiot it works perfectly !!

Superb mod !

winrules

Awsome mod, It should be installed on this forum!


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Elmacik

Thanks for the mod MikeMill. Your rock!
Is there an example we could see?
Home of Elmacik

dtm.exe

An even better mod would be the one in place here with the double-brackets :).

Thantos

Quote from: dtm.exe on December 22, 2005, 11:01:01 AM
An even better mod would be the one in place here with the double-brackets :).
Different usages really.

3guk

Whats this double brackets thing ?

Thantos

Theres a mod on this site that allows you to auto link to a user, board, or topic by putting the name or id inside of [[]]


3guk

3guk Wow does that work on all SMF  forums ?

Thantos


Elmacik

No chance getting it to ours? :P
Home of Elmacik

Thantos

Ok this topic is about the FAQ mod.  If you want to know more about the [[]] go search the board or start another topic.

Elmacik

Home of Elmacik

dcrumb

I uploaded the ZIP file just fine, but when I tried to install the MOD I got this failure in my Installation Actions:

1.     Execute Modification     ./Sources/Subs.php                                                         Failure
2.    Execute Modification    ./index.php                                                                      Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Sources/ManagePermissions.php                              Success
5.    Extract File    ./Sources/FAQ.php    
6.    Extract File    ./Themes/default/FAQ.template.php    
7.    Execute Code    add_settings.php

I did a chmod 777 to my directory but it didn't work.

Can anyone please advise?

Thanks,

--Dave

dtm.exe

Quote from: dcrumb on December 27, 2005, 11:26:52 AM
I uploaded the ZIP file just fine, but when I tried to install the MOD I got this failure in my Installation Actions:

1.     Execute Modification     ./Sources/Subs.php                                                         Failure
2.    Execute Modification    ./index.php                                                                      Success
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
4.    Execute Modification    ./Sources/ManagePermissions.php                              Success
5.    Extract File    ./Sources/FAQ.php    
6.    Extract File    ./Themes/default/FAQ.template.php    
7.    Execute Code    add_settings.php

I did a chmod 777 to my directory but it didn't work.

Can anyone please advise?

Thanks,

--Dave


Dave, do you have any other mods installed?

Thantos

Also what version of SMF?

trenchteam

This MOD IS FIYA! Thanks!!!

ASi ve MAVi

my dear frıend,ı have opened this mod download my web page.ıs ıt ok for you?

http://www.guzelforum.com/forum/index.php/board,70.0.html

sorry I don't english speak too

Thantos

You may NOT redistribute this modification in any way, shape, or form.  This includes putting it on your board where others can download it.

Advertisement: