XF 2.2 How can I add something before the watch icon in thread list?

securedme

Active member
It just shows where I would like to put that thing, not really related to whether the thread is watched or not.


1698799561898.png
 
Well if you use your browser's developer tools you can inspect and see it's in a div with class structItem-statuses.

Then you can search for this class in the templates in admin control panel https://example.com/admin.php?templates/search

The results are

conversation_list_macros
structured_list.less
thread_list_macros

I think you want to change it in thread_list so let's take a look there.

Search again for structItem-statuses in the code editor, and we see all the statuses in this block:
Code:
<xf:if contentcheck="true">
                <ul class="structItem-statuses">
                <xf:contentcheck>
                <xf:extension name="statuses">

So below here you can add your custom code to display something. Here's the documentation for this template syntax:
 
Top Bottom