Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: bayonetbrant on June 23, 2018, 08:52:07 PM

Title: Different default thread icons for different boards?
Post by: bayonetbrant on June 23, 2018, 08:52:07 PM
We've got a variety of gaming-related boards on our forum.

Right now, any message created in any forum uses the same default icon.

Is there a mod out there to specify different a different default icon depending on the board in which the thread was created?

For instance, I want to have a different icon for "mobile gaming" from "console gaming" from "tabletop gaming" and others default for "writing staff" or "moderator staff"


I searched the mods archive, but looking for changes to thread icons isn't nearly specific enough.

Thanks!
Title: Re: Different default thread icons for different boards?
Post by: br360 on June 23, 2018, 09:19:25 PM
This may be close to what you are looking for- https://custom.simplemachines.org/mods/index.php?mod=4038
Title: Re: Different default thread icons for different boards?
Post by: Kindred on June 23, 2018, 09:24:58 PM
Do you mean the on/off/on2 icons that indicate if there are new messages in the board?

There are 2 mods that do that.   Custom board icons  and one by adk, I think only available on their own site...
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on June 23, 2018, 11:01:15 PM
Quote from: br360 on June 23, 2018, 09:19:25 PM
This may be close to what you are looking for- https://custom.simplemachines.org/mods/index.php?mod=4038

That will add some labels to the board, but not change the default for that board :(
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on June 23, 2018, 11:03:23 PM
Quote from: Kindred on June 23, 2018, 09:24:58 PMDo you mean the on/off/on2 icons that indicate if there are new messages in the board?

No, not what I'm after.

I want the default message icon (below) to be different in boards with different topics
Title: Re: Different default thread icons for different boards?
Post by: Kindred on June 23, 2018, 11:08:06 PM
Then no, there is nothing of that sort
Title: Re: Different default thread icons for different boards?
Post by: GigaWatt on June 23, 2018, 11:27:03 PM
You could change the icons manually and the text too. The text resides in Post.yourlanguage.php or Post.yourlanguage-utf8.php, depending whether you're using an UTF-8 language pack or not.

$txt['standard'] = 'Standard';
$txt['thumbs_up'] = 'Thumb Up';
$txt['thumbs_down'] = 'Thumb Down';
$txt['excamation_point'] = 'Exclamation point';
$txt['question_mark'] = 'Question mark';
$txt['lamp'] = 'Lamp';


Change the translation to whatever suits your needs.

The icons reside in forum_root/Themes/default/images/post if your theme uses the icons from the default theme, or in forum_root/Themes/your_theme/images/post if you're using a different theme. By the looks of it, you're using the default theme.
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on June 24, 2018, 12:05:43 AM
Quote from: GigaWatt on June 23, 2018, 11:27:03 PM
You could change the icons manually and the text too.

yep, we've got a bunch of custom icons all over our forum

I'm just trying to find a way to force a different default depending on the board they're in, but it sounds like that's a mod too far  :-\
Title: Re: Different default thread icons for different boards?
Post by: GigaWatt on June 24, 2018, 12:25:12 AM
Quote from: bayonetbrant on June 24, 2018, 12:05:43 AM
I'm just trying to find a way to force a different default depending on the board they're in, but it sounds like that's a mod too far  :-\

Yep, a bit too far for what I had in mind too :-\.
Title: Re: Different default thread icons for different boards?
Post by: br360 on June 24, 2018, 12:34:25 AM
What about something like this mod- https://custom.simplemachines.org/mods/index.php?mod=3216
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on June 24, 2018, 01:31:47 AM
Quote from: br360 on June 24, 2018, 12:34:25 AM
What about something like this mod- https://custom.simplemachines.org/mods/index.php?mod=3216

That *might* be able to be 'hacked' into doing it.  I'll have to play with it and see.

In the meantime, though, that's a very useful mod that'll make some of the icon distro much easier across our boards :)

Meanwhile, if anyone with mad mod'ing skillz wants to take up this challenge, I can write up a sec of testable IT req's for it (I've been an IT BA for a decade now...)
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on July 14, 2018, 10:18:57 PM
Just one more flare going up to see if someone has any ideas, or knows of any mods in progress that might meet the need for this.

Thanks!
Title: Re: Different default thread icons for different boards?
Post by: Bigguy on July 14, 2018, 10:31:08 PM
I don't know:

https://custom.simplemachines.org/mods/index.php?mod=511
Title: Re: Different default thread icons for different boards?
Post by: Arantor on July 15, 2018, 05:13:05 AM
Quote from: Bigguy on July 14, 2018, 10:31:08 PM
I don't know:

https://custom.simplemachines.org/mods/index.php?mod=511

That changes the board icons, but the request is to change the thread icons per board. While there is some functionality for that in core, it isn't really that useful for what the OP wants.
Title: Re: Different default thread icons for different boards?
Post by: Kindred on July 15, 2018, 08:51:52 AM
exactly...   the OP wants to change the message icon set displayed on a per board level.

It actually shouldn't be that hard to code... but I haven't seen anyone ever do it.
Title: Re: Different default thread icons for different boards?
Post by: Arantor on July 15, 2018, 08:59:18 AM
Well, you can do it out of the box by going to Admin > Forum > Smiley Sets and Message Icons > Enable customised message icons, but you then have to be super tedious about configuring which icons go with which boards. Given that it's even configured that way on this very site, anyway... ;)

Emanuele did a mod some time ago to make this interface less painful to configure icons for boards but it's still tedious and far short of what the OP seems to have been talking about.
Title: Re: Different default thread icons for different boards?
Post by: bayonetbrant on August 30, 2018, 04:13:03 PM
Yes, there are definitely some tedious ways around this.  The 'easiest' way is to only allow 1 icon/board so it kind of has to be the default.

I accept that this might not be too hard to code...  for someone who knows how to write code.


I'm a rare IT weenie in that I can write some very detailed, testable requirements (10 years as a biz analyst) but I can't write the code for it :(
Title: Re: Different default thread icons for different boards?
Post by: EthanR on September 04, 2018, 08:51:37 PM
Cant help unfortunately but just chiming in that this would be a useful mod for me too  :)