Custom Topic Icons in Topic Lists

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Custom Topic Icons in Topic Lists

Post by Nachtschade » Thu Apr 25, 2019 8:14 pm

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?
..vaak rankend of klimmend..

User avatar
</Solidjeuh>
Registered User
Posts: 1605
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Custom Topic Icons in Topic Lists

Post by </Solidjeuh> » Thu Apr 25, 2019 8:21 pm

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 %}
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Thu Apr 25, 2019 8:30 pm

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.
..vaak rankend of klimmend..

User avatar
Lumpy Burgertushie
Registered User
Posts: 66320
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Custom Topic Icons in Topic Lists

Post by Lumpy Burgertushie » Thu Apr 25, 2019 8:33 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
3Di
Former Team Member
Posts: 13766
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Custom Topic Icons in Topic Lists

Post by 3Di » 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.
Last edited by 3Di on Thu Apr 25, 2019 8:38 pm, edited 1 time in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Thu Apr 25, 2019 8:37 pm

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.
..vaak rankend of klimmend..

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Thu Apr 25, 2019 8:39 pm

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.
..vaak rankend of klimmend..

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Sat Apr 27, 2019 5:59 pm

So, does anyone know how to fix this or do people just don't understand what I mean?
..vaak rankend of klimmend..

User avatar
Mannix_
Registered User
Posts: 484
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Custom Topic Icons in Topic Lists

Post by Mannix_ » Sun Apr 28, 2019 7:19 am

I just tested it and it works as intended
topicicon.png
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
β€’ Hexagon β€’ HexagonReborn β€’ CleanSilver β€’ Project Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » 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.
..vaak rankend of klimmend..

User avatar
Mannix_
Registered User
Posts: 484
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Custom Topic Icons in Topic Lists

Post by Mannix_ » 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
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
β€’ Hexagon β€’ HexagonReborn β€’ CleanSilver β€’ Project Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Sun Apr 28, 2019 4:28 pm

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.
..vaak rankend of klimmend..

User avatar
Mannix_
Registered User
Posts: 484
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: Custom Topic Icons in Topic Lists

Post by Mannix_ » Sun Apr 28, 2019 4:30 pm

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 ?
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
β€’ Hexagon β€’ HexagonReborn β€’ CleanSilver β€’ Project Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
EA117
Registered User
Posts: 631
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Custom Topic Icons in Topic Lists

Post by EA117 » Sun Apr 28, 2019 4:33 pm

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.

User avatar
Nachtschade
Registered User
Posts: 107
Joined: Thu Nov 15, 2012 12:29 am
Location: Netherlands
Name: Marcel

Re: Custom Topic Icons in Topic Lists

Post by Nachtschade » Sun Apr 28, 2019 4:37 pm

Yeah, same thing:

Image
vs
Image
..vaak rankend of klimmend..

Post Reply

Return to β€œ[3.2.x] Styles Support & Discussion”