Topic: Attachment Mod 1.0 by Frank H
##
##
## Mod title: Attachment Mod
##
## Mod version: 1.0
## Works on PunBB: 1.0.1
## Release date: 2003-11-07
## Author: Frank Hagstrom (frank_n05pam@hotmail.com)
##
## Description: This mod will add the ability for attachments beeing
## posted in PunBB
##
## Affected files: admin_forums.php
## delete.php
## edit.php
## post.php
## viewtopic.php
## commonadmin.php
##
## Affects DB: Yes
##
## Notes: This mod stores the files in the database, thus you must
## configure it to accept large querys. You must set this
## alittle larger than the files you accept. Settings for
## mysql can be found in my.cnf (or in windows my.ini).
## Furthermore you also need to let php accept large posts,
## and files attached. Set this in php.ini.
##
## The attachment mod can be configured by altering the
## /include/attach.php file, in there you will find the
## following variables:
##
## $attach_use_icon - Set this to false if you don't
## want icons next to your
## attachments. Users that don't want
## to view images, don't see icons.
## $attach_max_size - Set this to the max allowed
## filesize you want to be uploaded.
## Will be dependent on what you have
## set in the configuration of PHP
## and SQL. This is for the whole mod
## and each forum is then configured
## with it's own max size, that cannot
## be larger than this.
## $attach_always_deny - These are the files the attachment
## mod will deny from everyone but
## the Administrators. So if you
## allow all files on a forum, these
## will still be rejected, and it's
## impossible to override by setting
## the forum to allow them. Good for
## the forum owner that he has the
## control, and not the admins.
## $attach_mime_types - This holds different mime types if
## the browser fail to supply them.
## $attach_icon_mime - This array links each mime to an
## icon. Option to link to extentions
## might be added at a later version.
##
## Generated with ModGenerator (http://modgen.cactuz.nu/)
## on: 2003-09-06 20:26:03
##
## 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.
##
##
Link removed, pointed to an old location
If you use another language you need to copy en_attachments.php into that language directory and rename the two first letters to match. And then you can edit the language file and if you'd like, e-mail it to me and I will post it on the download page.
On that same link, you will also find a zip containing more colors for the icons, and it also has a template for your own board if you want something other. Have fun!