Hab' schon genau verstanden, wie Du das meintest.Kirk hat geschrieben:Danke Miriam aber das meinte ich nicht, sondern so...

Finde in der includes/functions.php
Code: Alles auswählen
// start How Many Unread Posts
Code: Alles auswählen
// end How Many Unread Posts
Code: Alles auswählen
$not_readable = array_keys($auth->acl_getf('!f_read', true));
$unread_topics = get_unread_topics($user->data['user_id'], ((sizeof($not_readable)) ? ' AND ' . $db->sql_in_set('t.forum_id', $not_readable, true) : ''));
$unread_cnt = count($unread_topics);
$unread_posts = 0;
$sql_where = '';
$i = 0;
if ($unread_cnt)
{
foreach ($unread_topics as $topic_id => $mark_time)
{
if ($i > 0)
{
$sql_where .= 'OR ';
}
$sql_where .= '(topic_id = ' . $topic_id . ' AND post_time > ' . $mark_time . ' AND post_approved = 1) ';
$i++;
}
$sql = 'SELECT COUNT(post_id) AS posts FROM ' . POSTS_TABLE . "
WHERE $sql_where";
$result = $db->sql_query($sql);
if($row = $db->sql_fetchrow($result))
{
$unread_posts = $row['posts'];
}
$db->sql_freeresult($result);
}
Es sind 5 Themen mit 32 ungelesenen Beiträgen vorhanden
Die Variablen sind da.