Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Con-a-ser on February 22, 2020, 05:36:08 AM

Title: Code for adding image into a Category
Post by: Con-a-ser on February 22, 2020, 05:36:08 AM
I know it can be done but can't remember how

You simple go into the category settings & add the code to the description & it then places an image as below

Thanks for any help on advance
the image is 468x60 if that helps

Attachment removed due to NSFW. -d3vcho
Title: Re: Code for adding image into a Category
Post by: Antes on February 22, 2020, 06:37:10 AM
NSFW Attachment...
Title: Re: Code for adding image into a Category
Post by: Kindred on March 10, 2020, 09:17:28 AM
nope....  I believe we purposefully removed the ability to use HTML in the description because WAY too many people broke their sites by doing that.

To add images for categories or boards -- there is a mod for boards.... or you can do it in CSS for either/both.
Title: Re: Code for adding image into a Category
Post by: Con-a-ser on March 15, 2020, 02:01:29 PM
sussed it, all had to do was insert this code & image location

<img src="insert image location here">
Title: Re: Code for adding image into a Category
Post by: Kindred on March 16, 2020, 01:17:35 PM
that is a **BAD BAD BAD** choice.

I thought we removed that capability entirely (we should have)
It's *NOT* a good idea to put HTML in the category or board descriptions. You can seriously break things by doing that.
Title: Re: Code for adding image into a Category
Post by: AlanDewey on March 16, 2020, 05:05:07 PM
Con-a-ser   what version of SMF are you running?
Title: Re: Code for adding image into a Category
Post by: Con-a-ser on March 16, 2020, 07:07:53 PM
Quote from: AlanDewey on March 16, 2020, 05:05:07 PM
Con-a-ser   what version of SMF are you running?

2.0.17
Title: Re: Code for adding image into a Category
Post by: Con-a-ser on March 16, 2020, 07:16:43 PM
Quote from: Kindred on March 16, 2020, 01:17:35 PM
that is a **BAD BAD BAD** choice.

I thought we removed that capability entirely (we should have)
It's *NOT* a good idea to put HTML in the category or board descriptions. You can seriously break things by doing that.

I will see how it goes & remove them if any issues arise
That does explain why I didn't find anything searching as well

but thanks all for the advice it is appreaciated
Title: Re: Code for adding image into a Category
Post by: Shambles on March 16, 2020, 07:46:57 PM
Quote from: Con-a-ser on March 16, 2020, 07:16:43 PM
I will see how it goes & remove them if any issues arise

Thing is, as Kindred was trying to point out, it's extremely difficult to remove your changes using standard Admin GUI controls, as you'll soon discover when you want to make changes or view settings.