ติดตั้งอัตโนมัติ:
http://adf.ly/Otzw ติดตั้งด้วยมือ จาก:
http://adf.ly/OtpT เปิดไฟล์ ./Sources/Subs.php
หา
// This looks weird, but it's because BoardIndex.php references the variable.
เอาโค้ดนี้วางก่อนหน้า
$context['html_headers'] .= '
<script type="text/javascript" language="javascript" src="' . $settings['default_theme_url'] . '/newpm.js"></script>
<style type="text/css">
#topbar{
position:absolute;
padding: 2px;
BORDER-RIGHT: #455690 1px solid;
BORDER-TOP: #b9c9ef 1px solid;
BORDER-LEFT: #b9c9ef 1px solid;
BORDER-BOTTOM: #455690 1px solid;
background-color: #e0e9f8;
width: 200px;
height: 105px;
visibility: hidden;
z-index: 100;
}
</style>';
เปิดไฟล์ ./Themes/default/index.template.php
หา
<body>';
เอาโค้ดนี้วางทับ
<body>';
// New Pm
if ($context['user']['is_logged'] && $context['allow_pm'])
{
if($context['user']['unread_messages'] >= 1)
{
echo '<bgsound src="', $settings['images_url'], '/newpm.wma" loop="0">';
}
}
หา
</body>
เอาโค้ดนี้วางทับ
';
if ($context['user']['is_logged'] && $context['allow_pm'])
if($context['user']['unread_messages'] >= 1)
echo '
<div id="topbar">
<table width="100%" style="cursor: default;">
<tr>
<td valign="top" align="left">
<img src="', $settings['images_url'], '/popup.gif" border="0" />
</td>
<td valign="top" align="left">
<center><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'] > 0 ? '<strong>'. $context['user']['unread_messages'] . '</strong>' : '' , '[/url]<font color="black"><font size="1px"> ', $txt['therenew'], '</font>
</td>
<td valign="top" align="right">
<a href="" onClick="closebar(); return false">
<img src="', $settings['images_url'], '/close.gif" border="0" />
[/url]
</td>
</tr>
</table>
<table height="78%" width="100%" style="border-right:1px solid #b9c9ef; border-top:1px solid #728eb8; border-bottom:1px solid #b9c9ef; border-left:1px solid #728eb8; cursor: default;">
<tr>
<td valign="center">
<center><a href="', $scripturl, '?action=pm" style="color:blue; font-size:11px">', $txt['newpm'], '[/url]
</td>
</tr>
<tr>
<td valign="top" align="center" colspan="2">
<a href="" onClick="closebar(); return false"><span style="font-size:10px; color:red;">', $txt['close'], '</ span>[/url]
</td>
</tr>
</table>
</div>
</body>
./Themes/default/languages/Modifications.thai-utf8.php (หรือธีมที่ใช้อยู่)
หา
?>
เอาโค้ดนี้วางก่อนหน้า
// Newpm By !!kaos!! Mod
$txt['therenew'] = 'คุณได้รับข้อความส่วนตัวใหม่!';
$txt['newpm'] = 'คลิกเพื่อเปิดอ่านข้อความเดี๋ยวนี้';
$txt['close'] = 'ปิดหน้าต่างนี้';
// Newpm By !!kaos!! Mod
* สามารถแก้เป็นข้อความอื่นได้น่ะครับ
มาจากที่นี่เด้อครับ ขอบคุณครับ
http://yogolas.com/index.php?topic=433.0