Question: Mark PM's to indicate how the are labled.
Thread: http://www.simplemachines.org/community/index.php?topic=210690.0
Tested on SMF Version: 1.1.4
This small change in the Template will show you the lables of the pm.
$themedir/PersonalMessage.template.php
Serach for
// If we're in the outbox, show who it was sent to besides the "To:" people.
if (!empty($message['recipients']['bcc']))
echo '
<div class="smalltext">« <b> ', $txt[1502], ':</b> ', implode(', ', $message['recipients']['bcc']), ' »</div>';
Replace with
// If we're in the outbox, show who it was sent to besides the "To:" people.
if (!empty($message['recipients']['bcc']))
echo '
<div class="smalltext">« <b> ', $txt[1502], ':</b> ', implode(', ', $message['recipients']['bcc']), ' »</div>';
if (!empty($message['is_replied_to']))
echo '
<div class="smalltext">« ', $txt['pm_is_replied_to'], ' »</div>';
//Show me some Lable informations :D
if(!empty($message['labels']) && $context['folder'] != 'outbox' && !empty($context['currently_using_labels'])) {
echo '
<div class="smalltext"><b>'.$txt['pm_labels'].'</b>:';
$first = true;
foreach ($message['labels'] as $label) {
if(!$first)
echo ', ';
echo '
<a href="'.$scripturl.'?action=pm;l='.$label['id'].'">'.$label['name'].'</a>';
$first = false;
}
echo '
<div>';
}
Hope it will help some other people, too ;).
Bye
DIN1031