คุณมี ...ข้อความ , ...ข้อความใหม่ Add PM Info To Header Area
smf 1.1.xx
/languages/Modifications.english.php และ Modifications.thai-utf8.php
เพิ้มไว้ก่อน ?>
โค๊ด: [Select]
$txt['youhave'] = 'You have ';
index.template.php
ค้นหา
โค๊ด: [Select]
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
เพิ่มต่อ
โค๊ด: [Select]
if ($context['allow_pm'])
echo $txt['youhave'], '<a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '[/url]', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'], '
';
smf 2.0.xx
/languages/Modifications.english.php และ Modifications.thai-utf8.php
เพิ่มไว้ก่อน ?>
โค๊ด: [Select]
$txt['youhave'] = 'คุณมี ';
$txt['youhave1'] = 'ข้อความ';
$txt['youhave2'] = 'ข้อความ';
$txt['youhave3'] = 'ข้อความใหม่';
$txt['youhave4'] = 'ข้อความใหม่';
index.template.php
ค้นหา
โค๊ด: [Select]
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '[/url]</li>';
เพิ่มต่อ
โค๊ด: [Select]
if ($context['allow_pm'])
echo '
<li>',$txt['youhave'], '<a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[youhave1] : $txt[youhave2], '[/url] , <a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['youhave3'] : $txt['youhave4'], '[/url]</li>';