News:

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

Main Menu

Inserting image into sections

Started by Aslankokb, September 23, 2015, 08:45:43 AM

Previous topic - Next topic

Aslankokb



How can i insert an image under the sections like this?

Wellwisher

I like that theme. Which forum is that from?

You mean on your homepage inside the board sections? Login to your admin section and go to "modify boards". Choose a board you want the image to show inside e.g "General Discussion" (if you have one) then paste in the image code into the board description like so:



<img border="0" src="YOUR_IMAGE_GOES_HERE.png" alt="" width="500px">

Illori

we dont recommend adding html to a board description. in 2.1 that is already disabled.

also the image shows the image under the category heading not within the board description.

Wellwisher

Quote from: Illori on September 25, 2015, 03:22:49 PM
we dont recommend adding html to a board description. in 2.1 that is already disabled.

also the image shows the image under the category heading not within the board description.

Most SMF users insert images on homepage to board descriptions using this method without any problems. People also insert Ad/ j.s codes this way. It's fast, easy and more convenient.

@llori Works for SMF 2.1 for me. I am Using the 2.1 beta 2 release llori or are you refering to the GH 2.1 release?

Kindred

if it is not disabled, it should be and it will be.

including HTML is a BAD process and should be discouraged. There are better ways to include an image. There are better ways to include ads (although I can not conceive of a valid reason to put ads in the board description... that is just plain misusing that field)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Wellwisher

Quote from: Kindred on September 25, 2015, 05:04:47 PM
if it is not disabled, it should be and it will be.

including HTML is a BAD process and should be discouraged. There are better ways to include an image. There are better ways to include ads (although I can not conceive of a valid reason to put ads in the board description... that is just plain misusing that field)

Hello Kindred,

Can you explain what's so bad about this method and why it ought to be discouraged because I have seen a tone of SMF users doing this. Is there a security vulnerability?

Kindred

1- it can break things
2- it is a potential security issue (although not ay more so than having admin access in the first place)
3- it tends to break people's layouts and then they come complaining about broken layouts...

basically, it's just not a great idea - especially when there are better way to do it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Wellwisher

Quote from: Kindred on September 25, 2015, 05:49:22 PM
1- it can break things
2- it is a potential security issue (although not ay more so than having admin access in the first place)
3- it tends to break people's layouts and then they come complaining about broken layouts...

basically, it's just not a great idea - especially when there are better way to do it.

Thanks for responding Kindred, I am always game for some extra security. Can you suggest a safter way of doing this then or point people in the right direction? How would you achieve this?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Wellwisher

Quote from: Kindred on September 26, 2015, 07:12:33 AM
http://www.simplemachines.org/community/index.php?topic=539000.0

This is pretty awesome! Thank you @Kindred for responding to my question and pointing us into the correct direction.  :) Dude, I didn't even think of using css to achieve this, is great. My thanks also to @Antes for providing the solution. This is kinda cool.

Solved.

Advertisement: