Re: Private Message System
Hm, I dont know what happened here or when. I just reloaded the page and it worked.
http://vifta.missvogue.net/~fabian/pms.jpg
Edit:
http://malin.isa-geek.com/search.php?action=show_new (occurs only when there are no new posts)
http://malin.isa-geek.com/misc.php?action=rules
Brings
Warning: main(./lang//_pms.php): failed to open stream: No such file or directory in /home/httpd/htdocs/cg/punbb/pms/header_new_messages.php on line 3
header_new_messages.php
<?
if(!$cookie['is_guest']){
require $pun_root.'lang/'.$language.'/'.$language.'_pms.php';
// Check for new messages
$result_messages = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'messages WHERE showed=0 AND owner='.$cur_user['id']) or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
if ($db->result($result_messages, 0)){
$tpl_temp .= '<br><a class="punhot" href="message_list.php">'.$lang_pms['New messages'].'</a>';
}// Check if the inbox is full
if($pun_config['o_pms_messages'] != 0 && $cur_user['status'] < PUN_MOD){
$result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$cur_user['id']) or error('Unable to get message count', __FILE__, __LINE__, $db->error());
list($count) = $db->fetch_row($result);
// Display error message
if($count >= $pun_config['o_pms_messages'])
$tpl_temp .= '<br><a class="punhot" href="message_list.php">'.$lang_pms['Full inbox'].'</a>';
}
}
?>