Advertisement:

Author Topic: Mark PM's to indicate how the are labled.  (Read 14719 times)

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Mark PM's to indicate how the are labled.
« on: December 13, 2007, 01:24:46 AM »
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
Code: [Select]
// 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">&#171; <b> ', $txt[1502], ':</b> ', implode(', ', $message['recipients']['bcc']), ' &#187;</div>';
Replace with
Code: [Select]
// 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">&#171; <b> ', $txt[1502], ':</b> ', implode(', ', $message['recipients']['bcc']), ' &#187;</div>';

if (!empty($message['is_replied_to']))
echo '
<div class="smalltext">&#171; ', $txt['pm_is_replied_to'], ' &#187;</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

« Last Edit: December 13, 2007, 02:42:18 PM by SleePy »
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x