Post by Joachim on Mar 12, 2013 8:35:14 GMT -8
Hello!
On my layout templates, thread list, I have the following code
Near the bottom, where on the thread list it shows when the last post was made.. I'd like it to show when the last post was edited instead, is that a possibility? I found this one: $[thread.last_post.edited.date] but when I replaced $[thread.last_post.date] with the other one.. I got a blank.
I have last edit hidden from posts themselves, would that change anything on this not working or am I simply not using the right variable?
I use this one board in particular for posted profiles, so each thread only has a single post and it gets edited when things need to be added, which is why I'd like my thread list to show when the post was last edited if at all possible.
ETA: Though I figure I should have likely posted this in template mods, feel free to move as necessary!
On my layout templates, thread list, I have the following code
{foreach $[thread]}
<tr id="$[thread.content_id]" class="$[thread.content_class]">
<td class="icon">$[thread.icon]</td>
<td class="checkbox clickable">$[thread.checkbox]</td>
<td class="main clickable" title="$[thread.short_content]">
<table width="100%">
<tr>
<td style="width: 0px; text-align: center;">
$[thread.icons]
</td>
<td>
<span class="link target">$[thread]</span>
{if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>
{else}{/if}
</td>
<td align="right" style="padding: 10px;">
$[thread.labels]
</td>
</tr>
</table>
</td>
<td class="created-by clickable"> $[thread.created_by_user]</td>
<td class="replies clickable">$[thread.replies] repl{if $[thread.num_posts] == 2}y{else}ies{/if}</td>
<td class="views">$[thread.views] view{if $[thread.views] != 1}s{/if}</td>
<td class="latest last">$[thread.last_post.date]</td>
</tr>
{/foreach}
{if !$[thread]}
<tr class="last">
<td class="last center" colspan="7">No threads were found.</td>
</tr>
{/if}
Near the bottom, where on the thread list it shows when the last post was made.. I'd like it to show when the last post was edited instead, is that a possibility? I found this one: $[thread.last_post.edited.date] but when I replaced $[thread.last_post.date] with the other one.. I got a blank.
I have last edit hidden from posts themselves, would that change anything on this not working or am I simply not using the right variable?
I use this one board in particular for posted profiles, so each thread only has a single post and it gets edited when things need to be added, which is why I'd like my thread list to show when the post was last edited if at all possible.
ETA: Though I figure I should have likely posted this in template mods, feel free to move as necessary!