Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

How to identify new posts in a thread?

Aloittaja Charlie82, huhtikuu 28, 2007, 09:32:00 IP

« edellinen - seuraava »

Charlie82

Is there any way to put an icon in the new posts like it is done with topics in a forum?

Thanks

Oldiesmann

Yep :)

Themes/default/Display.template.php

Find
Koodi (Lines 382-384) [Valitse]
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>


Replace
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;', !empty($message['is_new']) ? '&nbsp;<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="new" />' : '', '</div></td>
Michael Eshom
Christian Metal Fans

Charlie82

It worked adding $message['new'] instead of $message['is_new']:

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;', !empty($message['new']) ? '&nbsp;<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="new" />' : '', '</div></td>


Thanks a lot.

Advertisement: