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

XF 1.1 link threads open in a new tab?

#3

Code:
<div class="nodeText">
            <h3 class="nodeTitle"><a href="{xen:link link-forums, $link}" data-description-x="#nodeDescription-{$link.node_id}" target="_blank">{$link.title}</a></h3>
            <xen:if is="{$link.description}"><blockquote class="nodeDescription muted baseHtml" id="nodeDescription-{$link.node_id}">{xen:raw $link.description}</blockquote></xen:if>
        </div>
I edit node_link_level_2 not successful.:(
 
#5
What I want is every time when you wanna press any thread it could be open in a new tap as well.
( not only a sub-topic can open new tap)
 

Jake Bunce

XenForo moderator
Staff member
#6
Admin CP -> Appearance -> Templates -> thread_list_item

Add the red code:

Code:
				<xen:else />
						{xen:helper threadPrefix, $thread}
					</xen:if>
				</xen:if>
				<a target="_blank" href="{xen:link "threads{xen:if '{$thread.isNew} AND {$thread.haveReadData}', '/unread'}", $thread}"
					title="{xen:if '{$thread.isNew} AND {$thread.haveReadData}', {xen:phrase go_to_first_unread_message}}"
					class="{xen:if $thread.hasPreview, PreviewTooltip}"
					data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">{xen:helper wrap, $thread.title, 50}</a>
				<xen:if is="{$thread.isNew}"><a href="{xen:link threads/unread, $thread}" class="unreadLink" title="{xen:phrase go_to_first_unread_message}"></a></xen:if>
			</h3>