XF 2.1 Nodes png icons

Faust

Well-known member
Hello. I would like to ask how I can change nodes icons with png icons ? Or if there are any addon which can do this Thanks.
 
open the node_list_forum template

Find below code.

PHP:
<span class="node-icon" aria-hidden="true"><i></i></span>

Replace this code with follows.

PHP:
<span class="node-icon" aria-hidden="true">
<img class="cticnbrdr" src="/styles/default/xenforo/icon/{$node.node_id}.png" alt="{$node.title}" />
</span>


Icon location: /styles/default/xenforo/icon/ this is icon location in FTP, you replace it with your own.
Icon name: Icon name should match with node id. That's mean your icon name for node id 5 should be 5.png
 
open the node_list_forum template

Find below code.

PHP:
<span class="node-icon" aria-hidden="true"><i></i></span>

Replace this code with follows.

PHP:
<span class="node-icon" aria-hidden="true">
<img class="cticnbrdr" src="/styles/default/xenforo/icon/{$node.node_id}.png" alt="{$node.title}" />
</span>


Icon location: /styles/default/xenforo/icon/ this is icon location in FTP, you replace it with your own.
Icon name: Icon name should match with node id. That's mean your icon name for node id 5 should be 5.png

would this work with read and unread , also with TH nodes addon ?
 
I have only read one at the moment. By the way, I have 30 nodes my forum. :)
Is this how your forum setup looks like:

2iHgxgd.png
 
this is what I want, how I can achieve this ?
OK. Go to your admin control panel, click on Appeareance>Styles>Styles properties>Node icons. When you get to node icons, you are going to thick the box that says "use images for node icons." After that, you are going to change replace the read and unread icon urls with your png images urls> See the pic below:

iQKALij.gif
 
Back
Top Bottom