User:MadLittleMods/Manually Add Attachments: Difference between revisions From Online Manual

Jump to: navigation, search
(wikified)
Line 1: Line 1:
==How to manually add Attachments on SMF==
==How to manually add Attachments on SMF==


1. Upload your file to the Attachments Folder in your SMF Directory
Upload your file to the Attachments Folder in your SMF Directory
2. Make a unique 40 character hash including a-z and 0-9
# Make a unique 40 character hash including a-z and 0-9
3. Make your topic / message if you have not already and get your message id
# Make your topic / message if you have not already and get your message id
4. Log into your database and go to {smf_prefix}_attachments
# Log into your database and go to {smf_prefix}_attachments
5. Press insert from the navigation menu
# Press insert from the navigation menu<br /> Fill out the entry like the following
6. Fill out the entry like the following
#* id_attach: NA - Auto Incremented
id_attach: NA - Auto Incremented
#* id_thumb: NA
id_thumb: NA
#* id_msg: This is the mesage id you want the attachment to be on
id_msg: This is the mesage id you want the attachment to be on
#* id_member: NA
id_member: NA
#* id_folder: NA - If you have certain upload folders then choose the appropriate id for it
id_folder: NA - If you have certain upload folders then choose the appropriate id for it
#* attachment_type: NA
attachment_type: NA
#* filename: Full file name including extension
filename: Full file name including extension
#* file_hash: Put the hash you made in step 2 here
file_hash: Put the hash you made in step 2 here
#* fileext: Your file extension (no ".")
fileext: Your file extension (no ".")
#* size: Size in kb (you can get this by looking at the properties of the file)
size: Size in kb (you can get this by looking at the properties of the file)
#* downloads: NA - determines download count and you may change
downloads: NA - determines download count and you may change
#* width: NA
width: NA
#* height: NA
height: NA
#* mime_type: NA
mime_type: NA
#* approved: NA
approved: NA
# Press "Go" to insert the entry
7. Press "Go" to insert the entry
# Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
8. Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
#* {id_attach} is from your database entry
{id_attach} is from your database entry
#* {hash} the 40 character hash you made in step 2
{hash} the 40 character hash you made in step 2
#* Note: There is no extension!
* Note: There is no extension!


Done :)
Done :)

Revision as of 19:52, 29 November 2011

How to manually add Attachments on SMF

  1. Upload your file to the Attachments Folder in your SMF Directory
  2. Make a unique 40 character hash including a-z and 0-9
  3. Make your topic / message if you have not already and get your message id
  4. Log into your database and go to {smf_prefix}_attachments
  5. Press insert from the navigation menu
    Fill out the entry like the following
    • id_attach: NA - Auto Incremented
    • id_thumb: NA
    • id_msg: This is the mesage id you want the attachment to be on
    • id_member: NA
    • id_folder: NA - If you have certain upload folders then choose the appropriate id for it
    • attachment_type: NA
    • filename: Full file name including extension
    • file_hash: Put the hash you made in step 2 here
    • fileext: Your file extension (no ".")
    • size: Size in kb (you can get this by looking at the properties of the file)
    • downloads: NA - determines download count and you may change
    • width: NA
    • height: NA
    • mime_type: NA
    • approved: NA
  6. Press "Go" to insert the entry
  7. Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
    • {id_attach} is from your database entry
    • {hash} the 40 character hash you made in step 2
    • Note: There is no extension!

Done :)



Advertisement: