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

How Do I Lengthen The Amount Of Text Allowed For The Last Post

Discussion in 'Styling and Customization Questions' started by Xarcell, Apr 24, 2012.

  1. Xarcell

    Xarcell Well-Known Member

    On the board index, at the "last post" section, how do I make it allow more characters before it cuts if off and adds "..." to the end of it?

    I'm building a custom style, and I made room for more text.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> node_forum_level_2

    Edit the length in red (scroll right):

    		<div class="nodeLastPost secondaryContent">
    			<xen:if is="{$forum.privateInfo}">
    				<span class="noMessages muted">({xen:phrase private})</span>
    			<xen:elseif is="{$forum.lastPost.date}" />
    				{xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
    				<span class="lastThreadMeta"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
    			<xen:else />
    				<span class="noMessages muted">({xen:phrase contains_no_messages})</span>
    Xarcell likes this.
  3. Xarcell

    Xarcell Well-Known Member

    Thanks Jake!

Share This Page