dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: Consolidating multiple Simple Machines Forum (SMF) attachment directories  (Read 35 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7330
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 04:42:10 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
Consolidating multiple Simple Machines Forum (SMF) attachment directories - Google AI generated ...

This task requires moving physical files via FTP or File Manager and updating the id_folder references in your database so SMF knows where to look for them.

Step 1: Prepare the Target DirectoryChoose or create a single primary attachment folder on your server via FTP or your hosting control panel.Ensure the folder has correct write permissions (usually 755 or 777 depending on your host).

Step 2: Move and Merge the Physical FilesDownload or use your host's File Manager to copy all files from your secondary/older attachment directories into your chosen primary directory.If file names overlap (unlikely, as SMF prefixes or hashes names uniquely, but possible across different legacy IDs), make sure not to overwrite existing files.

Step 3: Update the SMF DatabaseSMF tracks which folder each attachment lives in using the id_folder column in the attachments table, alongside the base path configuration.

Open your database manager (such as phpMyAdmin).Locate your attachments table (usually smf_attachments).Run an SQL query to update all files to point to the primary folder ID (typically id_folder = 1 or whichever ID corresponds to your main directory):sqlUPDATE smf_attachments SET id_folder = 1;

Use code with caution.(Note: Change 1 to the actual id_folder number of your destination directory if it differs).

Step 4: Adjust SMF Admin SettingsLog in to your forum as an administrator.Go to Admin > Manage Attachments (or Attachments and Avatars).Clear out or disable the extra secondary directory paths so that SMF only points to your single, unified folder moving forward.

If you tell me your SMF version (e.g., SMF 2.0 or 2.1) and whether you are changing the base file path or just merging split folders, I can give you the exact database table names and settings to adjust.

YEAH RIGHT, LOL, HOW ? Butr i get the idea  ,,,
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
21753 Views
Last post May 09, 2019, 02:17:36 PM
by Chip
0 Replies
22150 Views
Last post June 08, 2021, 01:11:30 AM
by Chip
0 Replies
15948 Views
Last post March 22, 2025, 01:51:54 AM
by smfadmin
1 Replies
18320 Views
Last post May 10, 2025, 12:33:44 PM
by Chip
0 Replies
17549 Views
Last post November 23, 2025, 11:05:55 AM
by Chip
0 Replies
14785 Views
Last post November 30, 2025, 04:23:03 PM
by smfadmin
0 Replies
562 Views
Last post May 24, 2026, 08:43:57 AM
by Chip
0 Replies
590 Views
Last post June 09, 2026, 11:52:41 PM
by smfadmin
0 Replies
444 Views
Last post June 26, 2026, 10:43:56 PM
by Chip
0 Replies
68 Views
Last post August 21, 2026, 07:45:51 AM
by Chip


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal