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

Jump to: navigation, search
(added a test box)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ambox
| type=content
| image = [[File:Ambox_speedy_deletion.png]]
| imageright = [[File:Ambox_speedy_deletion.png]]
| style = background-color:yellow
| text  = This tip is potentially dangerous. If you are not sure of any step ask for clarifications!
}}
==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
See also: http://www.youtube.com/watch?v=zOLT-p9Y5xI
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
Upload your file to the "attachments" Folder in your SMF root directory
4. Log into your database and go to {smf_prefix}_attachments
# Make a unique 40 character hash including a-z and 0-9
5. Press insert from the navigation menu
#* I suggest using this site (just combine two 20-character strings): http://www.random.org/strings/
6. Fill out the entry like the following
# Make your topic / message if you have not already and get your message id
id_attach: NA - Auto Incremented
#* If you do not know it you can just press edit on the message and it will be a GET variable "msg"
id_thumb: NA
# Log into your database and go to {smf_prefix}_attachments
id_msg: This is the mesage id you want the attachment to be on
# Press insert from the navigation menu
id_member: NA
#*[[File:database_insert.png]]
id_folder: NA - If you have certain upload folders then choose the appropriate id for it
# Fill out the entry like the following
attachment_type: NA
#* id_attach: NA - Auto Incremented
filename: Full file name including extension
#* id_thumb: NA
file_hash: Put the hash you made in step 2 here
#* id_msg: This is the mesage id you want the attachment to be on
fileext: Your file extension (no ".")
#* id_member: NA
size: Size in kb (you can get this by looking at the properties of the file)
#* id_folder: NA - If you have certain upload folders then choose the appropriate id for it
downloads: NA - determines download count and you may change
#* attachment_type: NA
width: NA
#* filename: Full file name including extension
height: NA
#* file_hash: Put the hash you made in step 2 here
mime_type: NA
#* fileext: Your file extension (no ".")
approved: NA
#* size: Size in kb (you can get this by looking at the properties of the file)
7. Press "Go" to insert the entry
#* downloads: NA - determines download count and you may change
8. Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
#* width: NA
{id_attach} is from your database entry
#* height: NA
{hash} the 40 character hash you made in step 2
#* mime_type: NA
* Note: There is no extension!
#* approved: NA
# Press "Go" to insert the entry
# Rename the file you uploaded to your attachments folder to {id_attach}_{hash}  
#* ex. 53_vizgvbn7671rh5bd8ob920qhe22j3xd3sks6jyit
#* {id_attach} is from your database entry
#* {hash} the 40 character hash you made in step 2
#* Note: There is no extension!


Done :)
Done :)

Latest revision as of 21:06, 3 December 2011

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. Make your topic / message if you have not already and get your message id
    • If you do not know it you can just press edit on the message and it will be a GET variable "msg"
  4. Log into your database and go to {smf_prefix}_attachments
  5. Press insert from the navigation menu
    • Database insert.png
  6. 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
  7. Press "Go" to insert the entry
  8. Rename the file you uploaded to your attachments folder to {id_attach}_{hash}
    • ex. 53_vizgvbn7671rh5bd8ob920qhe22j3xd3sks6jyit
    • {id_attach} is from your database entry
    • {hash} the 40 character hash you made in step 2
    • Note: There is no extension!

Done :)



Advertisement: