CritiKiL
Active member
This code provides the ability to 'limit' the amount of characters in the 'Recent Posts' column and I would like to do the same for the 'Posted By' column:
I just need to know how to phrase it properly using the "wordTrim". Can anyone help? Thanks in Advance ;-)
BTW: The reason is because on a mobile phones-view, a posters name that is larger than 10 characters stretches my set width.
Code:
<tr class="dataRow">
<td><a href="{xen:link 'posts', $post}" class="Tooltip" title="{$post.title}">{xen:helper wordTrim,{$post.title}, 30}</a></td>
<td><xen:username user="$post" rich="true" />
<div class="userTitle">{xen:helper userTitle, 'username', $post}</div></td>
<td><xen:datetime time="$post.post_date" class="muted" /></td>
<td><a href="{xen:link 'forums', $post}">{$post.node_title}</a></td>
</tr>
BTW: The reason is because on a mobile phones-view, a posters name that is larger than 10 characters stretches my set width.