Advertisement:

Author Topic: Set each category on Index to have an IMAGE instead of TEXT.  (Read 1085 times)

Offline eja8170

  • Semi-Newbie
  • *
  • Posts: 10
Set each category on Index to have an IMAGE instead of TEXT.
« on: January 31, 2018, 03:54:39 AM »
Hi! I am trying to get the category on my forum index to have an image (which will have text on it already) to replace the words for the category (as they don't really match what I'm trying to do with the rest of my site's design. I am absolutely baffled as to how to code this without messing something else up. Please, if anyone has a solution please help.

Again, this would be for a category image, NOT a board.

Offline Pipke

  • Full Member
  • ***
  • Posts: 525
    • #31970508 on GitHub
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #1 on: January 31, 2018, 04:22:05 AM »
check this topic
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,614
  • Gender: Male
    • Kindred-999 on GitHub
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #2 on: January 31, 2018, 11:58:23 AM »
no no no no no....   adding html to the category or board description is a **BAD** idea.

There is a description running about on how to do something similar with CSS. do that. Do not use HTML in the description (that is not allowed in 2.1 anyway)
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."

Offline Pipke

  • Full Member
  • ***
  • Posts: 525
    • #31970508 on GitHub
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #3 on: January 31, 2018, 12:42:26 PM »
no no no no no....   adding html to the category or board description is a **BAD** idea.


https://wiki.simplemachines.org/smf/Images_-_How_do_I_add_images_to_the_board%27s_description

thought this works the same for categories?
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,627
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #4 on: January 31, 2018, 12:47:32 PM »
that is outdated advise and we no longer recommend it for anywhere in SMF.

Offline eja8170

  • Semi-Newbie
  • *
  • Posts: 10
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #5 on: January 31, 2018, 02:41:49 PM »
So is there.. an actual solution that will give me what I want?

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 9,133
  • Gender: Male
    • XinYenFon on GitHub
    • @XinYenFon on Twitter
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #6 on: January 31, 2018, 02:58:12 PM »
You can do it with simple tricks but problem is Curve (SMF2.0's default theme) using images to show most of the graphic output which limits lots of things. Like you can't use images bigger than 31px (height) on category headers unless you go ahead and change cat_bar / catbg into CSS based headers.

Offline eja8170

  • Semi-Newbie
  • *
  • Posts: 10
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #7 on: January 31, 2018, 10:09:59 PM »
Well, I am able to do BOARDS with CSS code, but is there a CSS code for this ANYONE knows of?