This will add a simple yet lacking little feature to vB5x.
The pinned and locked icons.
Before
and after 
I originally planned to just edit the LTR sprites image but discovered a very annoying issue.
If for example the topic is both sticky and closed, only 1 sprite is displayed.
I found this message while looking into the matter.
The problem applies to any 2 or more combinations of topicPrefix. So, close the sticky topic, and I lost my Pinned icon.
New approach, hack it.
In templates, under Display Templates, search for display_Topics_item
You are looking for 2 entries, each the same. Line 155, 329
replace it with
Add your sprite, 
I store all my sites extra graphics in /images/ If you don't want it there, modify the code.
Next, the removal of the raw topicPrefix and replacing with other images.
Because it is an all or nothing situation at this time.
By adding this code
The closed statement now triggers a Locked icon.

Remove the text output
and add the info to the image ALT tags, and we now have as the final code change-

Now, I don't know about you, but I find that a lot more cosmetically pleasing.
The pinned and locked icons.
Before
I originally planned to just edit the LTR sprites image but discovered a very annoying issue.
If for example the topic is both sticky and closed, only 1 sprite is displayed.
I found this message while looking into the matter.
There's a problem here. Topic read state is set by javascript not the node API.
Also it's better to seperate different status into different class, for example:
hot unread (2 classes) instead of hot-unread (1 class) -- Xiaoyu
Also it's better to seperate different status into different class, for example:
hot unread (2 classes) instead of hot-unread (1 class) -- Xiaoyu
New approach, hack it.
In templates, under Display Templates, search for display_Topics_item
You are looking for 2 entries, each the same. Line 155, 329
Code:
<vb:if condition="!empty($topicPrefix)"><span class="prefix js-prefix">{vb:raw topicPrefix}: </span></vb:if>
Code:
<vb:if condition="!empty($topicPrefix)"><span class="prefix js-prefix">{vb:raw topicPrefix}<vb:if condition="$topic['sticky']"><img class="pinned" src="[B]/images[/B]/pinned.png" width="16" height="16" alt="" /></vb:if>: </span></vb:if>
I store all my sites extra graphics in /images/ If you don't want it there, modify the code.
Next, the removal of the raw topicPrefix and replacing with other images.
Because it is an all or nothing situation at this time.
By adding this code
Code:
<vb:if condition="$topic['showopen'] == 0"><img class="locked" src="/images/locked.png" width="16" height="16" alt="" /></vb:if>
Remove the text output
Code:
{vb:raw topicPrefix}
Code:
<vb:if condition="!empty($topicPrefix)"><span class="prefix js-prefix"><vb:if condition="$topic['showopen'] == 0"><img class="locked" src="/images/locked.png" width="16" height="16" alt="Locked" /></vb:if><vb:if condition="$topic['sticky']"><img class="pinned" src="/images/pinned.png" width="16" height="16" alt="Pinned" /></vb:if>: </span></vb:if>
Now, I don't know about you, but I find that a lot more cosmetically pleasing.
Comment