Örnek:



Özel Mesaj geldiginde, Üye özel mesajini okuyana kadar sitenin en üstünde örnekte gördügünüz gibi özel mesajiniz oldugunu yziyor....


Ilk olarak acp/setup.php'yi calisitirin....



global.php ara:

------------------------------

[code]eval("\$header = \"".$tpl->get("header")."\";");[/code]

------------------------------

altina ekle:

------------------------------

[code]// global pn-info by bräke | start
// check group-pms, user-pms and new-pms, if ok start info
if ($wbbuserdata['can_use_pms'] == 1 && $wbbuserdata['receivepm'] == 1 && $wbbuserdata['pmunreadcount'] != 0) {

// count of new pms
$globalpmsunreadcount = $wbbuserdata['pmunreadcount'];

// singular or plural
if ($globalpmsunreadcount == 1) $globalpmsunread_UNREADMESSAGE = $lang->items['LANG_GLOBAL_GLOBALPMSUNREAD_MESSAGE'];
else $globalpmsunread_UNREADMESSAGE = $lang->items['LANG_GLOBAL_GLOBALPMSUNREAD_MESSAGES'];

// output languages
$lang->items['LANG_GLOBAL_GLOBALPMSUNREAD_TITLE'] = $lang->get("LANG_GLOBAL_GLOBALPMSUNREAD_TITLE", array('$globalpmsunreadcount' => $globalpmsunreadcount, '$globalpmsunread_UNREADMESSAGE' => $globalpmsunread_UNREADMESSAGE));

// sql-select
$header_globalpms_bit = '';
$result = $db->unbuffered_query("SELECT ".
"p.privatemessageid, p.subject, p.sendtime, pmr.deletepm, pmr.view, ".
"u.userid, u.username ".
"FROM bb".$n."_privatemessagereceipts pmr ".
"LEFT JOIN bb".$n."_privatemessage p ON (p.privatemessageid = pmr.privatemessageid) ".
"LEFT JOIN bb".$n."_users u ON (p.senderid=u.userid) ".
"WHERE pmr.recipientid='$wbbuserdata[userid]' AND pmr.deletepm = 0 AND pmr.view = 0 ".
"ORDER BY p.sendtime DESC");
while ($row = $db->fetch_array($result)) {

// username
if ($row['userid'] > 0) $row['username'] = htmlconverter($row['username']);
else $row['username'] = $lang->get('LANG_GLOBAL_GLOBALPMSUNREAD_SENDER_SYSTEM', array('$master_board_name' => $master_board_name));

// subject
$row['subject'] = htmlconverter($row['subject']);

// bit template
eval("\$header_globalpms_bit .= \"".$tpl->get("header_globalpms_bit")."\";");
}

// output template
eval("\$header .= \"".$tpl->get("header_globalpms")."\";");
}
// global pn-info by bräke | end[/code]



Dil Paketini mevcut dil paketine ekleyin.....


[url]http://rapidshare.de/files/47599644/acp.rar.html[/url]

Beğeniler: 1
Favoriler: 1
İzlenmeler: 455
favori
like
share
Climanjaro Tarih: 24.08.2009 11:55
Dostum rapid linki ölmüş.
Yeniden yükler misin?