1 (edited by Cailean 2004-03-23 15:18)

Topic: FAQ Mod v1.0

##
##        Mod title:  FAQ Mod
##
##      Mod version:  1
##   Works on PunBB:  1.1.2
##     Release date:  2004-03-18
##           Author:  Colin Carmichael (colin.carmichael@sympatico.ca)
##
##      Description:  This Mod adds a fully-customizable FAQ page that is
##                    managed through the admin panel.  Add/delete/edit/reorder
##                    questions and answers to suit your changing needs!
##
##   Affected files:  common_admin.php
##                    functions.php
##                    en_common.php
##
##       Affects DB:  Yes
##
##            Notes: *****IMPORTANT*****
##                    
##                    Before uploading faq.php you MUST do the following...
##                    
##                    1) Create a topic in your forum where users can can
##                       ask questions to be answered/added to the FAQ
##                    
##                    2) Open faq.php... find line:40... change URL to
##                       reflect the URL of your new topic.
##                    
##                    OPTIONS:
##                    1) If you do not want moderators to edit the FAQ, ignore
##                    steps 8 & 9. (They could still do it by manually entering
##                    the URL, but if you can't trust your mods....)
##                    
##                    2) I have removed the set relative widths for the admin
##                    nav bar to make room for the FAQ link (steps 8 & 9). You 
##                    could, alternatively, just add the FAQ line and manually 
##                    adjust the widths of the rest.
##                    
##                    ::::::::::::::::::::::::::::::::::::::::::::::::::::::
##                    This is my first Mod... If there are errors please be
##                    kind! Thanks to MarcB and Rickard for their help! 
##                    Thanks to Jansson for the install_mod script!
##                    ::::::::::::::::::::::::::::::::::::::::::::::::::::::
##
##                    Generated with ModGenerator (http://modgen.cactuz.nu/)
##                    on: 2004-03-18 17:18:28
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

The mod can be downloaded from Punres here: FAQ Mod
or directly here: FAQ Mod

EDIT:  [DONE]If someone wants to create an install_mod.php for me I'll include it...  my DB skills are sorely lacking!![/DONE]  Thanks, Jansson

Find what you want...  Where you want it... www.truelocal.com

Re: FAQ Mod v1.0

I've made an install script for this mod.

http://www.cactuz.nu/stuff/install_mod.phps

Hope it works :P

3 (edited by Cailean 2004-03-19 13:23)

Re: FAQ Mod v1.0

Thanks Jansson.. I'll add it to the .zip and update the readme when I have a chance..

EDIT: just looked at the install script....  wondered why id is int(255) instead of int(10)

Find what you want...  Where you want it... www.truelocal.com

Re: FAQ Mod v1.0

It doesn't really matter. Here's what the 255 means:

Another extension is supported by MySQL for optionally specifying the display width of an integer value in parentheses following the base keyword for the type (for example, INT(4)). This optional width specification is used to left-pad the display of values whose width is less than the width specified for the column, but does not constrain the range of values that can be stored in the column, nor the number of digits that will be displayed for values whose width exceeds that specified for the column. When used in conjunction with the optional extension attribute ZEROFILL, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(5) ZEROFILL, a value of 4 is retrieved as 00004. Note that if you store larger values than the display width in an integer column, you may experience problems when MySQL generates temporary tables for some complicated joins, as in these cases MySQL trusts that the data did fit into the original column width.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: FAQ Mod v1.0

oh, ok.  I had just used (10) because that was what most of the other ID fields in the other tables (topics, etc) use.

The ZIP and readme have been updated at PunRes.

Find what you want...  Where you want it... www.truelocal.com

Re: FAQ Mod v1.0

The link is broken is there a place where i can download it again.

Re: FAQ Mod v1.0

I've added a second DL link since the PunRes DL doesn't seem to be working...

Find what you want...  Where you want it... www.truelocal.com

8 (edited by mi 2004-10-13 20:08)

Re: FAQ Mod v1.0

Sounds excellent - anywhere we can see a demo of this?

New Friendly web-shop! • SO happy with PunBB! • Now punBB 1.4.x on ALL forums (won't tell how many or their addresses to avoid spam-regs)

9

Re: FAQ Mod v1.0

Cailean, not founded in punres.org

If your people come crazy, you will not need to your mind any more.