Edited Time next to Time posted?

Started by lordrene, December 13, 2014, 02:26:50 AM

Previous topic - Next topic

lordrene

Is there any way to make the edited time be next to the time posted like this


Hj Ahmad Rasyid Hj Ismail

Simply find in Display.template.php:
$message['time'], '</div>

Change to:
$message['time'], $settings['show_modify'] && !empty($message['modified']['name']) ? ' (<em>edited ' . $message['modified']['time'] . '</em>)' : '', '</div>

Then find and remove this code:

<div class="smalltext modified" id="modified_', $message['id'], '">';

// Show "� Last Edit: Time by Person �" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> »';

echo '
</div>

lordrene


Hj Ahmad Rasyid Hj Ismail

Great to hear that. I packaged it as a mod so it can be added / removed easily by installing / uninstalling. The package attached. This packaged mod can be used with the other mod in your remove thread title topic. I will package that and post it there as well.

Advertisement: