News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Hello, learning to use SMF!

Started by securobo, October 06, 2008, 07:17:49 PM

Previous topic - Next topic

securobo

I am learning to use SMF and I have a little complication. I do not understand how to make use of the
img][/img tags and could someone explain the difference between the image tags and an attachment of an image please.

Adish - (F.L.A.M.E.R)

An attachment gets uploaded on the server, while the image tag doesnt upload it up. It basically does the work of embedding videos (in this case images).

Images in attachments arnt prefered most as it is mainly used for file sharing.

While when a person wants to preview the images, he uses a file sharing site to upload the image and then puts the "img" code in order to show up the image directly from the image hosting site.

securobo

Just a little confused. I understand that an attachement is uploaded to the server and anyone that clicks on the link can download it.

However, the embedded image. Does it get saved to the database? if someone could please answer that and also, could someone give me an example of how to do this. I can click on the icon and it adds the tags for me, but I am not sure what to add between the tags to make the image show up in the post (there is no file requester).

Adish - (F.L.A.M.E.R)

Quote from: kbrizs on October 06, 2008, 07:25:24 PM
Just a little confused. I understand that an attachement is uploaded to the server and anyone that clicks on the link can download it.

However, the embedded image. Does it get saved to the database? if someone could please answer that and also, could someone give me an example of how to do this. I can click on the icon and it adds the tags for me, but I am not sure what to add between the tags to make the image show up in the post (there is no file requester).

yes, it does add it up in the database, as whenever you move your site, it will carry on the link onto other side without any problems.

How to use the img BBcode.
1. Use a Image hosting site. I use http://imageshack.us/
2. Upload the image there. Example:- http://imageshack.us/images/greylogo.png (this is being uploaded from URL, the Steps are to upload the image via your own computer)
3. You will get an image link after you upload it, For me it is:- http://img137.imageshack.us/img137/394/greylogoxt3.png
4. Now to embed the image in between, use the bbcode.
[img]IMAGE LINK[/img]

For me [img]http://img137.imageshack.us/img137/394/greylogoxt3.png[/img]
5. Thats it, it will show up after its submitted.

securobo

Thanks. No need to reply to this if I understand correctly. The image itself has nothing to do with the database, just the link gets saved in the db. It's up to the site (in this case image shack) to maintain the image for whatever length of time they usually do. Also if I upload an attachment, it gets saved on the server in a directory which also has nothing to do with the database, so if I move my site to another host, I have to manually also move the files in the upload directory for the links to be valid.

Adish - (F.L.A.M.E.R)

You have understood the 1st part correctly, but in the second part, the attachments do have a link over with the database. As it is linked with different parts of the forum, the information is to be stored inside the database, so that you dont have problems accessing them later on. Also the encryption of the files happen via the database in order that others cant steal the files if they are confidential.

Hope the explaination helps you out :)

Rumbaar

I think the HELP section of your forum will have your answers regarding BBCode:
HELP->Posting=>SMF Bulletin Board Code
http://www.simplemachines.org/community/index.php?action=help;page=post#bbcref
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: