Skip to content

sbulen/SMF-Attachment-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

The Attachment Browser lets you browse, filter & sort attachments, while honoring user access.

A simple tagging system is provided. Categories of tags are supported. Each tag belongs to a single category, and each tag may have one or more aliases.

A form is also provided to allow users to add or remove tags from their attachments. Admins may also update tags. To update the tags on an attachment, click on the tags value when browsing.

Auto Tagging

When an attachment is added to a post, the message subject and body are scanned for tags & their aliases. The board and category names & descriptions are also scanned. If found, the tags are associated with the attachment.

There is also a bulk Auto Tag admin feature, where all existing attachments can be auto-tagged. You may choose to run this after you configure your tags so historical attachments are included. The Auto Tag process can be re-run - tags found are added to the existing list.

For example, if you have different boards set up for different products in your forum, with tags that correspond to the products, you can easily filter by product.

Tag Filters

When using the tags to filter the list of attachments, the search utilizes ANDs across tag categories, and ORs within tag categories.

A "Search Again" button is provided to allow the user to refine the filter.

Limitations

  • Only 255 characters of tag info per attachment are supported. You need to find the right level of categorization.
  • The focus is attachments - avatars & thumbnails are excluded.
  • Performance is a concern given the flexibility provided. This mod may not be appropriate for extremely large forums. In testing, for forums with less than 20K attachments, performance is sub-second. For a forum with 500K attachments, performance is ~2-6 seconds per page. YMMV. The more filters used to narrow the result set, the better!