Page 1 of 4

Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:14 pm
by Nachtschade
Hi there, i'm trying to get my custom topic icons to appear in topic lists.

For instance this icon appears when the topic itself is opened:

Image

But I want the icon to appear in the topic listings as well, like for instance in 'Active Topics':

Image

Where it currently does not, as you can see. I had it like this on my old forum (3.0.9) but am now on 3.2.5 and would like this functionality back. Maybe it has something to do with the Style i'm using?

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:21 pm
by </Solidjeuh>
I do that via my Board Magic extension.

Image

In: /ext/solidjeuh/boardmagic/styles/all/template/event/viewforum_forum_name_prepend.html
This is before the forum title, but there are more template events in my ext you can try.

Add the code like this:

Code: Select all

{% if FORUM_ID == "4" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/eab6ac803e984b5b9c24a5a28a75a53c.png" alt="" /> {% endif %}
{% if FORUM_ID == "13" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/4358523023a7a2791b82087828620dc1.png" alt="" /> {% endif %}
{% if FORUM_ID == "14" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/5e30f93d7022c6db48ee1b6ac2516904.png" alt="" /> {% endif %}
{% if FORUM_ID == "5" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/3b0a031c919e6582ff545e6d379da73b.png" alt="" /> {% endif %}
{% if FORUM_ID == "10" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/5a761dd5d27e03b698724fd72f2386cd.png" alt="" /> {% endif %}
{% if FORUM_ID == "11" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/4fa48bc32cbf424c6efd0e280c602fa1.png" alt="" /> {% endif %}
{% if FORUM_ID == "12" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/029251af8eb3dad02dcf5042624b549d.png" alt="" /> {% endif %}
{% if FORUM_ID == "7" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/15b4a17a34f6f461e2f8faa6fbc0b623.png" alt="" /> {% endif %}
{% if FORUM_ID == "8" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/790cac5748ddaa97a098d34f7fcaa41b.png" alt="" /> {% endif %}
{% if FORUM_ID == "2" %}<img src="https://www.solidjeuh.be/ext/dmzx/imageupload/files/1e9f0d5132387fbd1ce96e0e70be32ec.png" alt="" /> {% endif %}

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:30 pm
by Nachtschade
That seems pretty convoluted. The icons are simply uploaded to /public_html/images/icons/misc. Every topic on my forum has it's own icon, a few similar topics have the same icon.

I simply want the icons to appear in topic lists instead of the default icons for read/unread/new/hot/closed/etc.

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:33 pm
by Lumpy Burgertushie
then rename those icons with the same name as the default ones and remove the defaults and replace them with your new ones.

then purge the cache and refresh your browser.

rob ert

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:36 pm
by 3Di
ACP / posting / topic icons - http://prntscr.com/ngx3iy

There you manage the existing topic icons and eventually add your new icons as packages. That's the way to go.

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:37 pm
by Nachtschade
I'm not sure I've explained this correctly.

I do not want icons for hot/active/closed/etc. that change based upon the status of the topic.

I want to set a singular item for a specific topic and have that icon always appear in front of that topic everywhere that topic happens to be listed.

I know it is or was possible because this was how it was on my old forum.

Re: Custom Topic Icons in Topic Lists

Posted: Thu Apr 25, 2019 8:39 pm
by Nachtschade
3Di wrote:
Thu Apr 25, 2019 8:36 pm
ACP / posting / topic icons - http://prntscr.com/ngx3iy

There you manage the existing topic icons and eventually add your new icons as packages. That's the way to go.
Well yes, that is where I set the icon from my example in the first post but there is no setting there to have the icons appear in the topic listings.

Re: Custom Topic Icons in Topic Lists

Posted: Sat Apr 27, 2019 5:59 pm
by Nachtschade
So, does anyone know how to fix this or do people just don't understand what I mean?

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 7:19 am
by Mannix_
I just tested it and it works as intended
topicicon.png

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:07 pm
by Nachtschade
Mannix_ wrote:
Sun Apr 28, 2019 7:19 am
I just tested it and it works as intended topicicon.png
I'm not sure what you mean. I don't see a custom topic icon in your screenshot.

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:26 pm
by Mannix_
Nachtschade wrote:
Sun Apr 28, 2019 4:07 pm
Mannix_ wrote:
Sun Apr 28, 2019 7:19 am
I just tested it and it works as intended topicicon.png
I'm not sure what you mean. I don't see a custom topic icon in your screenshot.
Doesn't matter if it's custom or not
topicicon2.png

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:28 pm
by Nachtschade
Mannix_ wrote:
Sun Apr 28, 2019 4:26 pm
Nachtschade wrote:
Sun Apr 28, 2019 4:07 pm
Mannix_ wrote:
Sun Apr 28, 2019 7:19 am
I just tested it and it works as intended topicicon.png
I'm not sure what you mean. I don't see a custom topic icon in your screenshot.
Doesn't matter if it's custom or not topicicon2.png
Yes it does. The problem that I am having is that custom topic icons do not show up in the topic listings.

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:30 pm
by Mannix_
Nachtschade wrote:
Sun Apr 28, 2019 4:28 pm

Yes it does. The problem that I am having is that custom topic icons do not show up in the topic listings.
Do they work on prosilver ?

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:33 pm
by EA117
Nachtschade wrote:
Sun Apr 28, 2019 4:07 pm
I'm not sure what you mean. I don't see a custom topic icon in your screenshot.
It's there; it's the small "blob" down in the bottom-left of the icon being shown in his screen shot.
Mannix_ wrote:
Sun Apr 28, 2019 7:19 am
I just tested it and it works as intended
Agreed that's the intended & default behavior, and what I see on our board too. When viewing the actual post itself, you see "nothing but the custom icon", similar to this:

post.png

But then when viewing the list of threads in any given forum, for that same thread what you're going to see is this custom icon "overlaid" onto a larger generic icon, which also shows the read/unread status of the thread, similar to this:

default.png

I believe what OP is asking for here is to see primarily the custom icon, even when looking at the list of threads within a forum. Something more similar to:

custom.png

So it's not "replace the image being used by your style", because that's a single image used for all posts. It's "how to get the custom icon already set for the top post in a thread to be used even when displaying the list of forum threads." Which is going to be a different icon for each post, depending on which custom icon was selected.

Re: Custom Topic Icons in Topic Lists

Posted: Sun Apr 28, 2019 4:37 pm
by Nachtschade
Yeah, same thing:

Image
vs
Image