ich habe mir jetzt das aktuelle phpBB3 installiert & zusätzlich das Board3Portal. Jetzt gibts dort den kleinen Kalender auf den Portal & wenn man dort auf die einzelne Tage klickt bekommt man alle unbeantworteten Beiträge angezeigt & das will ich ändern & habe folgendes gefunden : http://board3.de/viewtopic.php?f=28&t=1310#p10203
Wenn ich das richtig verstehe wird dort ein neuer Search_id in der search.php angelegt & der Link in den Kalender angepasst so dass nur noch die jeweiligen Themen von den jeweiligen Tag angezeigt werden sollen wo ein Beitrag geschrieben wurde.
Das klappt auch teilweise, wenn ich eine neues Thema erstelle wirds mir das angezeigt, aber wenn auf eine Thema antworte wird mir das Thema nicht angezeigt.
Mir scheint jetzt so als ob der neue search_id ein Fehler hat, ich weiß aber nicht wo da ich mir damit nicht so ausgekenne.
Hier mal der neue Code von den Eintrag in der search.php:
Code: Alles auswählen
case 'datesearch':
$l_search_title = $user->lang['SEARCH_DATE'];
// force sorting
$show_results = (request_var('sr', 'topics') == 'posts') ? 'posts' : 'topics';
$sort_key = 't';
$sort_dir = 'd';
$sort_by_sql['t'] = ($show_results == 'posts') ? 'p.post_time' : 't.topic_last_post_time';
$sql_sort = 'ORDER BY ' . $sort_by_sql[$sort_key] . (($sort_dir == 'a') ? ' ASC' : ' DESC');
gen_sort_selects($limit_days, $sort_by_text, $sort_days, $sort_key, $sort_dir, $s_limit_days, $s_sort_key, $s_sort_dir, $u_sort_param);
$s_sort_key = $s_sort_dir = $u_sort_param = $s_limit_days = '';
// set day before (23:59:59) the selected day
// if your board time zone is different than UTC 0, you need to add/subtract the amount of secs based of your time zone settings
// for example, my board is UTC+1 then I need to subtract 3600 secs to get the time in UTC 0.
// if your board is UTC-2, you should add 3600*2
$daybefore = ($search_date - (3600-1));
// set day after the selected day
$dayafter = ($search_date + (86400-3600));
if ($show_results == 'posts')
{
$sql = 'SELECT p.post_id
FROM ' . POSTS_TABLE . ' p
WHERE p.post_time > ' . $daybefore . '
AND p.post_time < ' . $dayafter . "
$m_approve_fid_sql
" . ((sizeof($ex_fid_ary)) ? ' AND ' . $db->sql_in_set('p.forum_id', $ex_fid_ary, true) : '') . "
$sql_sort";
$field = 'post_id';
}
else
{
$sql = 'SELECT t.topic_id
FROM ' . TOPICS_TABLE . ' t
WHERE t.topic_time > ' . $daybefore . '
AND t.topic_time < ' . $dayafter . '
AND t.topic_moved_id = 0
' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '') . "
$sql_sort";
$field = 'topic_id';
}
break;