News:

Join the Facebook Fan Page.

Main Menu

SMF Templates

Started by Senkusha, December 25, 2023, 08:54:43 AM

Previous topic - Next topic

Senkusha

I know there's a spot for Themes, but I'm looking for Templates.  The difference, as I understand it, is Themes mostly change the colors and some User Interface, whereas Templates drastically can change the User Interface of SMF.  I'm looking for a way to list my sub boards along the side, but only for certain boards (I know that I can override the theme for a board in Manage Boards).  Has something like this been done before?
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

Arantor

The templates are literally part of the theme, the theme is the templates plus the CSS. (Many themes will inherit the templates from the default theme because they don't want to lug around their own templates which won't play nicely with mods)

Depending on *exactly* what you want, there may not be a good way to do it cleanly because the templates are structured in a particular way, namely there is one template that's common to all pages that holds the header/footer and whatever's 'around' the main page content, and then the page content itself is its own template, and one slots inside the other.

And, of course, the templates are common to all boards; it's possible to have a 'if board is this, do that' but it gets messy quickly.

What I'd suggest doing is using one of the portal mods and adding an HTML block to the left side, and making the list manually there. This would at least prove the concept, and get some response to whether it's useful before hacking up the templates to do things conditionally to pretty it up (because blocks can be set in most(all?) of the portals on a per area basis, and you don't have to use a portal mod for the front page)
Holder of controversial views, all of which my own.


Kindred

What arantor said...
Theme is the term for the package,  whether it is just css changes or a complete template rewrite.

BTW, test2.turtleshellprod.com
That is 99% css changes and only one touched template with teeny changes.
Сл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."

Antechinus

Quote from: Senkusha on December 25, 2023, 08:54:43 AMI'm looking for a way to list my sub boards along the side, but only for certain boards (I know that I can override the theme for a board in Manage Boards).  Has something like this been done before?
Depending on exactly what you mean by "list my sub boards along the side" it may be possible with only CSS changes.

Senkusha

For now, I just moved all these boards into separate categories so that they can be collapsed.
-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

Kindred

The would literally be the purpose of categories.....
Сл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."

Advertisement: