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

Recent Threads and Link to last post for visitors

kankan

Active member
#1
Hello,

In the block recent thread, registered members can automatically click the last post date to go to the last message. But this link is desactivated for visitors.
I've check the permissions but did not find a way to give this access to the visitors
Any way to do that ? (see attached picture)

Thank you
 

Attachments

Jake Bunce

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

Add the red code:

Code:
	<div class="listBlock lastPost">
		<xen:if is="{$thread.isRedirect}">
			<div class="lastPostInfo">{xen:phrase n_a}</div>
		<xen:else />
			<dl class="lastPostInfo">
				<dt><xen:if is="{xen:helper isIgnored, $thread.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$thread.lastPostInfo" /></xen:if></dt>
				<dd class="muted"><a{xen:if '{$visitor.user_id} OR 1', ' href="{xen:link posts, $thread.lastPostInfo}" title="{xen:phrase go_to_last_message}"'} class="dateTime"><xen:datetime time="$thread.lastPostInfo.post_date" /></a></dd>
			</dl>
		</xen:if>
	</div>

</li>

</xen:if>