News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Board Icons ändern

Started by kurapika, December 02, 2024, 11:54:21 AM

Previous topic - Next topic

kurapika

Since nothing is happening in the DE forum, I'll ask here.

Today it's about changing the board icons. So the symbol that is displayed on the left in the boards. An icon that changes when a new post is written.

How can you use other graphics here without changing anything in the codes?
After all, you have to note down and save enough more important modifications. That's why I want it without it
reprogram solve.

Basically it's just a file in theme name/images and it's called 'boardicons.png' right?
Maybe. Is it enough to replace them? But where do you get new, nicer ones?

I've read a lot of tips on this, but everyone here is reprogramming some files. Which I don't want if I don't have to.




Da sich im DE Forum nichts tut, frage ich mal hier.

Heute geht es um das ändern der Board Icons. Also das Symbol, welches links in den Boards angezeigt wird. Ein Symbol, welches sich ändert, wenn ein neuer Beitrag geschrieben wurde.

Wie kann man hier andere Grafiken verwenden, ohne etwas an den Codes zu verändern?
Immerhin muss man schon genug wichtigere Modifikationen notieren, sichern. Daher will ich das ohne
umprogrammieren lösen.

Im Grunde ist es doch nur eine Datei in Themename/images und heißt "boardicons.png" oder?
Vllt. reicht es ja, diese auszutauschen? Nur woher bekommt man neue, schönere?

Habe viele Tipps dazu gelesen, doch alle programmieren hier irgendwelche Dateien um. Was ich nicht will, wenn es nicht sein muss.

Diego Andrés

If you checked the default image, you see that you'll need 3 icons and should have similar size and placement if you replace them in the image size.
If you wanted to use separated images for each status (or board), you'd need to tweak the index.css file.

There are also more alternatives in the form of MODs:
https://custom.simplemachines.org/index.php?mod=4224
https://custom.simplemachines.org/index.php?mod=4375

SMF Tricks - Free & Premium Responsive Themes for SMF.

Kindred

If you want to specify individual icons for each separate board -- then you either need a mod or you need to change the CSS to use different images based on the boardID
Сл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."

kurapika

Quote from: Diego Andrés on December 02, 2024, 12:03:35 PMIf you checked the default image, you see that you'll need 3 icons and should have similar size and placement if you replace them in the image size.

So mine looks like this (Theme Flatline):


So new icons would have to be exactly the same size and arrangement so that the program (CSS Sprite or something?) can assign them exactly, right?


QuoteIf you wanted to use separated images for each status (or board), you'd need to tweak the index.css file.
That doesn't necessarily have to be the case... So I can get by without CSS?


I'll take a look at the mods, thanks!

kurapika

I'm happy with 'FA Board Icons'!
This brings a convenient setting of FontAwesome symbols- thanks!

And if I ever find a nicer, graphic icon set somewhere, I can easily upload it with 'Custom Board Icons'.

Thank you for the tips!

Kindred

I modified the FA Board icons to use the star wars font icons. :D
https://test2.turtleshellprod.com/index.php



kurapika -- it looks like the theme used that specific set - which is different from how the default smf theme does it...


but, you can define the board icon image(s) directly in CSS, without even using the CBI because each board has CSS that uses it's board ID as part of the CSS ID (for example #board_1 .board_icon)
Сл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."

kurapika

Quote from: Kindred on December 02, 2024, 03:51:53 PMI modified the FA Board icons to use the star wars font icons.
8)

Quoteit looks like the theme used that specific set - which is different from how the default smf theme does it...
I don't know ...

Quotebut, you can define the board icon image(s) directly in CSS, without even using the CBI because each board has CSS that uses it's board ID as part of the CSS ID (for example #board_1 .board_icon)

I want to change the CSS as little as possible, hence the question about alternative methods without changing the code.
Which works great with the 'FA Board Icons' mod.


It's a shame that SMF isn't as update-safe as WordPress. With WP I can adjust styles and codes here, it stays safely in the child theme.

Kindred

SMF is fairly update safe within the version path these days.

Most 2.1 mods use hooks, not direct edits.

Most SMF updates are going to affect SOURCE files... the ones that affect template files are still going to target specific code -- patch upgrades do not replace files - which means your customizations will not be removed in a patch update...   and major upgrades (like 2.0 to 2.1 or 2.1 to 3.0) will require new themes anyway, so manual customizations to themes would have to be redone as will many mods.

Also, mods (and thus patches) are only applied to custom themes IF YOU TELL IT to do so...

So, there's a good chance that the FA Board Icons mod would require a replacement if you did a major upgrade anyway.


Сл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: