SMF1.1:Attachments and Avatars
From Online Manual
From here, you can administer the attached files on your system and you can also delete attachments by size and by date to your requirements. This is a useful area to work out how much your server is storing in the way of general attachments and users uploaded avatars, which over time can soon become a large figure especially if you have a large membership to your discussion forum.
Here you can configure your Attachment settings with information such as choosing a location to store the uploaded files, maximum visible sizes and limiting file extension use.
- Attachments mode - Enable attachments, disable attachments or just disable new attachments.
- Membergroups allowed to view attachments - Select the membergroups allowed to view attachments.
- Membergroups allowed to Post attachments - Select the membergroups allowed to attach files to their posts.
- Check attachment's extension - Select this box to enable Attachment filtering. If enabled, you can specify in the box below this area which extensions are allowed to be uploaded by your members such as Text Documents (txt).
- Allowed attachment's extensions - If Check Attachment's is enabled, you can specify here which attachments are allowed to be written for example like the following: txt,doc,mp3. These three extensions would enable members to upload Text Documents, Word Documents and MP3 Audio files. You can alter this to your own requirements and remember to be careful in your chosen file extension. Some file extensions can cause a major security risk to your websites security.
- Encrypt stored filenames - This is a useful feature as when enabled; you will never have the problem of different users uploading a file with the same name and the older one being overwritten. This also provides an additional layer of security, since it would be harder to link directly to the files in the Attachment directory.
- Attachments Directory - Select where you want the files uploaded to be stored on your server. This can be located outside your public html directory for additional security.
- Max Attachment folder space - Specify how large in capacity the upload area can store. This is useful for servers with limited web space.
- Max Attachment size per Post - Specify how big a single post's upload by a Member can be.
- Max size per Attachment - Specify how big a single Attachment upload by a Member can be.
- Max number of attachments per Post - With SMF, you can allow members to upload more then one Attachment with each single post. Here you can specify how many attachments can be made with each post.
- Display image attachments as pictures under Post - If a Member has attached an image to a post, the image will automatically be displayed if enabled.
- Resize images when showing under Post - Limit the size of the image when displaying within the forum. This is useful when you have specified a width for your entire Forum and you do not want the image to stretch further distorting your Forum look.
- Maximum width of thumbnails - Set the maximum width of the thumbnails to be displayed.
- Maximum height of thumbnails - Set the maximum height of the thumbnails to be displayed.
Server stored avatars are already on the server, placed there by who ever uploaded them via FTP. These are usually located inside your SMF avatars folder, and may be in their own folder, creating a category effect. Users can select these from their profiles.
- Membergroups allowed to select a server stored avatar - Select which membergroups can or cannot use server stored avatars.
- Avatars directory – The path for the base directory where server stored avatars are stored.
- Avatars URL - Web address.
Externally stored avatars
- Membergroups allowed to select an external avatar - Select which membergroups can or cannot use externally stored avatars.
- Download avatar at given URL - Specify whether external avatars are downloaded on to your own server. Selecting this option may speed things up when it comes to external avatars.
- Maximum width external avatar - Specify the maximum width of externally linked avatars.
- Maximum height external avatar - Specify maximum height of externally linked avatars.
- Allow members to upload their own avatars - Select which membergroups can or cannot upload avatars to your server.
- Maximum width of uploaded avatar - Specify the maximum width allowed for avatars that are uploaded.
- Maximum height of uploaded avatar - Specify the maximum height allowed for avatars that are uploaded.
- Resize oversized large avatars - If enabled will resize larger then specified avatars (requires a GD module).
- Use PNG for resized avatars - .PNG files are larger, but offer better quality compression. If this is unchecked, .JPEG will be used instead. Although .JPEG images are smaller in filesize they are usually less quality than .PNG files.
- Upload avatars to - Specify whether you want the avatars to be uploaded to the attachments directory, or to a folder you choose to specify in the field below this option.
- Upload directory - If Upload avatars to specific directory is selected, you can specify the upload location here.
- Upload URL - If 'Upload avatars to specific directory' is selected, you can specify the upload URL here.
Here you can browse and delete the uploaded files by your members listing in order of:
- Attachment Name
- File Size
- Posted By
From here, you can administer the attached files on your system. You can delete attachments by size and by date from your system. Statistics on attachments are also displayed in this area.
File Attachment Statistics
- Total Attachments - Total number of Attachment files uploaded.
- Total Avatars - Total number of avatars uploaded.
- Total Size of Attachment Directory - Total space used on server to hold the attachments.
- Total Size Available in Attachment Directory - Space remaining for any new uploaded attachments to come.
File Attachment Options - In this area, you can delete files older then a specified number of days or attachments over a specified size. Both of these options have the added settings of enabling you to include a message of your choice to be included where any Attachment has been removed by the system.
You can also delete attachments that have not been accessed over a certain period of time.