1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Place thread status icons next to topic title

Discussion in 'Styling and Customization Questions' started by Luxus, Jun 11, 2012.

  1. Luxus

    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.


    However I have failed yet again in accomplishing html work related to the damn title bar. Any help is greatly appreciated.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Based on:


    Here is code for your specific application:

    Admin CP -> Appearance -> Templates -> thread_view

    <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: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:breadcrumb source="$nodeBreadCrumbs" />
    Luxus likes this.
  3. Luxus

    Luxus Well-Known Member

    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?

Share This Page