1. 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

Discussion in 'Styling and Customization Questions' started by kankan, Dec 9, 2012.

  1. kankan

    kankan Active Member


    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

    Attached Files:

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> thread_list_item

    Add the red 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>
    efendi and tidus like this.
  3. kankan

    kankan Active Member

    thank you Jake.

Share This Page