News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Mark PM's to indicate how the are labled.

Started by ディン1031, December 13, 2007, 01:24:46 AM

Previous topic - Next topic

ディン1031

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">&#171; <b> ', $txt[1502], ':</b> ', implode(', ', $message['recipients']['bcc']), ' &#187;</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">&#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

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

Advertisement: