Place thread status icons next to topic title

Luxus

Well-known member
In this thread you can see how a locked thread looks like. On the right side of the thread status bar you can see the little locked icon. My goal is to get rid of the thread status bar and to put those status icons right next to the topic title.

lock.webp

However I have failed yet again in accomplishing html work related to the damn title bar. Any help is greatly appreciated.
 
Based on:

http://xenforo.com/community/threads/new-thread-title-header.24294/

Here is code for your specific application:

Admin CP -> Appearance -> Templates -> thread_view

Rich (BB code):
<xen:title>{xen:helper threadPrefix, $thread, escaped}{$thread.title}{xen:helper pagenumber, $page}</xen:title>
<xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1>

<xen:if is="!{$thread.discussion_open}">
<xen:container var="$beforeH1"><div style="float: left; margin-right: 5px; margin-top: 6px; width: 16px; height: 16px; background: url('@imagePath/xenforo/xenforo-ui-sprite.png') no-repeat -16px -16px;"></div></xen:container>
</xen:if>

<xen:description>
	{xen:phrase discussion_in_x_started_by_y_date_z,
		'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
		'name={xen:helper username, $thread}',
		'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}
</xen:description>

<xen:navigation>
	<xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>
 
Thanks. After some digging yesterday I solved this with a negative margin-top. I wonder what solution is better. All browsers support negative margins, yes?
 
Top Bottom