Posted on: 29/09/05 05:08am
By: kemal
Posted on: 29/09/05 06:38am
By: romantaran
Posted on: 30/09/05 12:47am
By: romantaran
Posted on: 30/09/05 12:03pm
By: kemal
Posted on: 30/09/05 01:18pm
By: romantaran
Posted on: 11/10/05 02:25pm
By: kemal
Posted on: 11/10/05 02:38pm
By: romantaran
/////////////////////////////////////////////////////////// // Privmessages module's block /////////////////////////////////////////////////////////// function phpblock_privmessages() { global $_USER, $_CONF, $_TABLES; $uid = $_USER['uid']; if($uid > 1) { $sql = "SELECT * FROM privmessages WHERE to_uid = $uid"; $result = DB_query($sql); $nrows = DB_numRows($result); // ïðîâåðêà íîâûõ ñîîáùåíèé $sql = "SELECT * FROM privmessages WHERE to_uid = $uid AND status = 1"; $new_result = DB_query($sql); $new_nrows = DB_numRows($new_result); if($nrows == 0 && $new_nrows == 0) { // Åñëè âõîäÿùèõ íåò $result = 'There are no incoming messages.<br><a href="' . $_CONF['site_url'] . '/privmessages/">Create</a>'; } else { $result = 'New messages: <b>' . $new_nrows . '</b>. <br>'; $result .= 'Sum total messages: <b>' . $nrows . '</b>. <br><a href="' . $_CONF['site_url'] . '/privmessages/">View</a>'; } } else { $result = "This module is available only for registered users"; } Return $result; } ///////////////////////////////////////////////////////////
Posted on: 11/10/05 03:10pm
By: kemal
Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=58206