User:MadLittleMods/Manually Add Attachments

How to manually add Attachments on SMF
See also: http://www.youtube.com/watch?v=zOLT-p9Y5xI


 * 1)  Upload your file to the "attachments" Folder in your SMF root directory
 * 2) Make a unique 40 character hash including a-z and 0-9
 * 3) * I suggest using this site (just combine two 20-character strings): http://www.random.org/strings/
 * 4) Make your topic / message if you have not already and get your message id
 * 5) * If you do not know it you can just press edit on the message and it will be a GET variable "msg"
 * 6) Log into your database and go to {smf_prefix}_attachments
 * 7) Press insert from the navigation menu
 * 8) *[[File:database_insert.png]]
 * 9) Fill out the entry like the following
 * 10) * id_attach: NA - Auto Incremented
 * 11) * id_thumb: NA
 * 12) * id_msg: This is the mesage id you want the attachment to be on
 * 13) * id_member: NA
 * 14) * id_folder: NA - If you have certain upload folders then choose the appropriate id for it
 * 15) * attachment_type: NA
 * 16) * filename: Full file name including extension
 * 17) * file_hash: Put the hash you made in step 2 here
 * 18) * fileext: Your file extension (no ".")
 * 19) * size: Size in kb (you can get this by looking at the properties of the file)
 * 20) * downloads: NA - determines download count and you may change
 * 21) * width: NA
 * 22) * height: NA
 * 23) * mime_type: NA
 * 24) * approved: NA
 * 25) Press "Go" to insert the entry
 * 26) Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
 * 27) * ex. 53_vizgvbn7671rh5bd8ob920qhe22j3xd3sks6jyit
 * 28) * {id_attach} is from your database entry
 * 29) * {hash} the 40 character hash you made in step 2
 * 30) * Note: There is no extension!

Done :)