Quote:
Originally Posted by dartho
I can extend the highlighting of new threads when they have new posts, but this doesn't *appear* to extend to being able to do the same with new posts with in a thread.
|
I've had a quick look and they turned out both to be pretty straightforward with just an addition of a template conditional, so I've implemented it on my board.
Here is the code, feel free to use it in an upcoming release
Code:
POSTBIT:
<if condition="$post[statustitle] == 'Old'">
<div class="windowbg2">
<else />
<div class="new">
</if>
$post[username] $post[posttime] $post[postdate]
</div>
<div class="windowbg">$post[message]
<if condition="$post['editlink']"><a href="$post[editlink]">[Ed]</a></if>
<if condition="$post['replylink']"><a href="$post[replylink]">[Rep]</a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">[!!]</a> </if>
</div>
=========================
THEADBIT:
<if condition="$show['sticky']">
<div class="sticky">Sticky:
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><strong>$thread[threadtitle]</strong></a>
<br />
by $thread[lastposter]: $thread[lastposttime] $thread[lastpostdate] </div>
<else />
<if condition="$show['gotonewpost']">
<div class="new">
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><strong>>></a>
<else />
<div class="windowbg2">
</if>
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">$thread[threadtitle]</strong></a>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">( $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
<if condition="$show['deletethread']">
<a href="postings.php?$session[sessionurl]do=deletethread&t=$thread[threadid]">[X]</a></if>
</div>
<div class="windowbg">
$thread[lastposter]$thread[lastposttime] $thread[lastpostdate]
$thread[replycount]
</div>
</if>