Re: Locked topic icon

Posted by Pedro on
URL: https://support.nabble.com/Locked-topic-icon-tp7431914p7585996.html

If you want to show this icon, using a macro, at the root table and inside the topic, you should create and edit your macros like this:
1 - Creating:
<macro name="show_lock_icon" requires="node">    
    <span id="lock-icon" class="weak-color" style="padding:0 .5em;margin-right:.5em;[n.hidden_if.not.this_node.is_locked_topic/]">
        <img src="http://images.staticjw.com/exc/9454/exce-icon-thread-locked.png" width="13" height="18" style="vertical-align:middle"/> <t>Thread is locked</t>
    </span>
</macro>
2- Edit subcategories_column, line 15:
<td class="weak-color [n.column_default_border/] adbayes-content" style="width:60%">
	<div style="font-weight:bold;margin-bottom:.3em">
		<n.current_node.node_link/> <n.current_node.show_lock_icon/>
	</div>
3- Edit topic_controls_right:
<override_macro name="topic_controls_right" requires="forum_topic_namespace">
	<n.page_node.tweet_button/>
	<n.pin_icon/>
	<n.page_node.show_lock_icon/>
	<n.message_count/>
	<img src="/images/gear.png" class="image16" alt="[t]Options[/t]"/>
	<n.page_node.topic_dropdown/> 
</override_macro>  
My test forum.