Advertisement:

Author Topic: Different backgrounds for boards (or categories)  (Read 1400 times)

Offline Madzgo

  • Sophist Member
  • *****
  • Posts: 1,070
    • Urban Themes
Different backgrounds for boards (or categories)
« on: June 17, 2012, 05:49:28 PM »
Hey guys, i need help with making backgrounds of  Display.template and MessageIndex.template different for every category (or board, doesn't matter). I know there's a function to choose different themes for every board, so I thought you could help me with this.
Thanks

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,424
    • Arantor on GitHub
Re: Different backgrounds for boards (or categories)
« Reply #1 on: June 17, 2012, 05:52:54 PM »
Well, using a different theme for each board or category is by far the simplest way.

Doing anything else is pretty much going to be on a site-by-site basis.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Madzgo

  • Sophist Member
  • *****
  • Posts: 1,070
    • Urban Themes
Re: Different backgrounds for boards (or categories)
« Reply #2 on: June 17, 2012, 05:59:14 PM »
Well, using a different theme for each board or category is by far the simplest way.

Doing anything else is pretty much going to be on a site-by-site basis.
It is just for one site.

But using different themes will make installing mods difficult.

Can I make some sort of "Child themes" that have only images and CSS and use main theme's files?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,424
    • Arantor on GitHub
Re: Different backgrounds for boards (or categories)
« Reply #3 on: June 17, 2012, 06:02:46 PM »
There is internally a thing called theme variants, but they're really only for providing different CSS files to the parent, you can't even use a different folder for core images, though of course you can with anything set purely in the CSS.

I don't know that much about it, it's not documented very well, though I know some of DzinerStudios and Bloc's themes have used it in the past.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Madzgo

  • Sophist Member
  • *****
  • Posts: 1,070
    • Urban Themes
Re: Different backgrounds for boards (or categories)
« Reply #4 on: June 17, 2012, 06:13:12 PM »
My solution is to overwrite theme files over Default theme, then create a couple of themes that contain only CSS, images and theme_info
And that actually does the trick

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,424
    • Arantor on GitHub
Re: Different backgrounds for boards (or categories)
« Reply #5 on: June 17, 2012, 06:15:41 PM »
For your own site that's an option, and is why I said about things being on a site-by-site basis. On your own site you can do just that - but it's not an option for everyone else.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.