[XB] Shared Attachments: Reuse & Organize Attachments

[XB] Shared Attachments: Reuse & Organize Attachments 1.0.0

No permission to buy ($35.00)
Compatible XF 2.x versions
  1. 2.3
Additional requirements
https://xenbaker.com/products/xb-core-library.379/
License
Single Use License (may be used on one website)
Updates duration
6 months ($25 renewal) / $45 - 1 year ($35 yearly renewal)
banner.webp


Shared Attachments lets members reuse their existing XenForo attachments without uploading the files again.

Add a linked or independent attachment directly from the editor, or organize and inspect files in the private My shared attachments library. Sharing works across forum posts, conversation messages, profile posts and comments, and XenForo Resource Manager descriptions and updates.




Features:​

  • 📂 Attachment Picker: Pick a file you already uploaded using the button next to the standard upload control.
  • 🔀 Addition Methods: Link to the original or add an independent copy. Both use the same stored file. Links depend on the original, while copies survive its deletion and follow the new location’s permissions.
  • 🔧 Default Method and Choice Permission: Set the default under Options → Attachments. Give members Choose addition method to let them switch. Both methods work alongside regular uploads.
  • 💬 Conversations and Profiles: Reuse files in conversations, profile posts, and profile comments, including quick edits. Conversation drafts remember selected files.
  • 📚 Resource Manager Integration: With XenForo Resource Manager, reuse files in resource descriptions and updates, including drafts and previews. Version downloads, icons, and reviews are excluded.
  • 🔎 Search and Filters: Search as you type or filter by file type and upload date. Scroll for more results without losing your selection. The controls stay in view.
  • 📷 Configurable Layout: Choose thumbnails or a compact list in style properties. The picker starts in thumbnail view.
  • 🧵 Native Editor Integration: Manage all attachments in XenForo’s usual list. Insert thumbnails or full images and work with multiple files at once. Saving after removing a link leaves the original in place.
  • 🚧 Unavailable References: If you lose access to a linked file, the editor shows a removable placeholder and keeps the file details hidden. Remove it to select an accessible copy. The change takes effect when you save.
  • 📝 Drafts and Preview: Restore selected files from thread and reply drafts, preview your message, and switch between the visual editor and BB code.
  • 📊 Attachment Limits: Uploads and reused files count toward the same limit. Size, dimensions, format, and video rules apply when adding files. Existing links can stay when limits change.
  • 🔒 Native Access Checks: You need access to the original and permission to add attachments where you’re posting. Readers of a linked file also need access to the original.
  • 📁 Unique File Library: The picker lists each stored file once and disables files already attached to your message.
  • 📁 Attachment Library: Open Your account → My shared attachments to browse, download, or check where your files are used. Search or filter by type, source, or date in list or thumbnail view. Each file appears once if you can access one of its sources. Browsing requires no reuse permission.
  • 🔍 Unused Files Filter: Only unused shows files with one saved attachment and no linked uses. Clear filters keeps your current collection and layout.
  • ⭐ Favorites and Recent: Stars sync between My shared attachments and the picker. Recent tracks the last 50 distinct files reused in saved content. Clear that history separately from your favorites.
  • 📦 Collections: Group files into private, color-coded collections. Add files one at a time or in bulk, reorder collections by dragging, and open them from My shared attachments or the picker. A file can belong to several collections and stays in your library when removed from one.
  • 🔑 Collection Creation Permission: Use Create collections under General permissions to control who can create collections. Members can still manage their existing collections after this permission is removed.
  • 🔗 File Usages: Open the usage counter to see where a file is attached or linked and what deletion would remove. Locations you can’t view are counted without showing their titles.
  • 🧹 Automatic Clean-Up: Broken links are cleaned up daily. Run cleanup or rebuild usage counters from Tools → Rebuild caches.
  • 🔑 Sharing Permission: Allow reuse by user group, forum, or resource category, with separate permissions for conversations and profiles.
  • 🔄 Convert Linked Files: Choose Make independent to replace a link and update its references in the editor. Save to apply the change. The original stays in place. Your access, the destination’s rules, and permission to add independent copies still apply.
  • 🛑 Deletion Warning: Before confirming an immediate deletion in the editor or admin panel, see which links will disappear and which copies will stay. Hidden locations appear only in the count. The warning also covers bulk selections.

Requirements:​

  • XenForo 2.3.0 or later

Useful for:​

  • 📷 Repeated Images: Reuse photographs, screenshots, and diagrams across forum discussions.
  • 📄 Reference Files: Include existing documents in replies without uploading another copy.
  • 🛠️ Support Forums: Keep common setup guides and troubleshooting screenshots handy for recurring questions.

FAQ:​

  • ❓ Which attachments can members reuse?Members can select their own existing post, conversation message, profile post, profile post comment, resource description, and resource update attachments when they can still access the source and have both attachment-upload and attachment-reuse permissions at the destination. Temporary uploads, resource version downloads, and files already belonging to the edited content are excluded.
  • ❓ What happens when the original file is deleted or its source becomes private?Linked files depend on their originals. Deleting the original removes its shared references, and losing access to the source makes the linked file unavailable. Independent attachments remain available through their own receiving publication. They share the stored file and metadata, and the physical file is retained while any native attachment still uses it.
  • 🔍 How can I check what depends on a file before deleting it?Open the attachment picker and select the usage counter on the file. The list shows each attachment and its linked references, with a badge for independent copies made by this add-on. Deleting an attachment removes only the linked references to that attachment; independent copies and their references remain.
  • 💬 Can a shared conversation attachment be viewed outside that conversation?In linked mode, only readers who can access both the receiving content and the original conversation can view the file. In independent mode, the new attachment follows the receiving publication's permissions and can therefore be viewed by its readers. The picker explains this before adding files.
  • ❓ What happens if I disable or uninstall the add-on?Original attachments and independent copies stay available. Disabling the add-on hides linked attachments until you re-enable it. Uninstalling deletes the links, favorites, usage history, and collections. To keep a linked attachment in its post or message, choose Make independent and save before uninstalling.

Screenshots:​

Attachment picker​

pub_pb_sas_attachment_picker_select_linked.webp
Pick an existing upload and link to its original attachment.​
pub_pb_sas_attachment_picker_select_independent.webp
Add an independent attachment with access determined by the new publication.​

Attachment library​

pub_pb_sas_file_library_browse.webp
Browse uploads and filter by name, type, source, date, or usage.​
pub_pb_sas_file_library_favorites.webp
Find starred files in Favorites.​
pub_pb_sas_file_library_recent.webp
See files recently reused in saved content.​

Collections​

pub_pb_sas_file_library_collection.webp
Open a private, color-coded collection from the library.​
pub_pb_sas_file_collection_manage_edit.webp
Add the same file to more than one collection.​

Editor and file usages​

pub_pb_sas_attachment_macros_linked_editor.webp
Manage a linked file alongside other attachments in the editor.​
pub_pb_sas_attachment_delete_preview.webp
Review affected links and retained attachments before deleting the original.​

Admin settings and permissions​

admin_option_list_shared_attachments.webp
Set the default addition method under Options → Attachments.​
admin_permission_edit_shared_attachments.webp
Set permissions for attachment reuse, addition method selection, and collection creation.​
permissions.webp
Enable attachment reuse under Forum permissions.​
  • Wow
Reactions: VMgrid
Author
Painbaker
Views
30
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Painbaker

Back
Top Bottom