Name |
Foren mit Teamzugehörigkeit navlist |
Autor |
Miraculix
|
CMS-Version |
Clansphere 2009 |
Datei |
board/navlist.php
|
Datum |
04.08.2010 um 07:41 Uhr |
Beschreibung |
Behebt das Problem, das in der navlist die latest posts von Foren nicht angezeigt werden, auf die man Zugriff hat, wenn man in dem dazugehörigen Team ist, aber nicht den Access Level für das Forum hat. |
Alter Code |
Alter Code
1.
2.
3.
4.
5.
| 1. / 2. / ...
$tables = 'threads thr INNER JOIN {pre}_board frm ON frm.board_id = thr.board_id ';
$tables .= 'LEFT JOIN {pre}_read red ON thr.threads_id = red.threads_id AND red.users_id = \''.$account['users_id'].'\'';
$cells = 'thr.threads_headline AS threads_headline, thr.threads_id AS threads_id, ';
$cells .= 'thr.threads_last_time AS threads_last_time, frm.board_name AS board_name, frm.board_id AS board_id';
$cond = 'frm.board_access <= \''.$account['access_board'].'\' AND frm.board_pwd = \'\''; |
|
Neuer Code |
Neuer Code
1.
2.
3.
4.
5.
6.
| 1. / 2. / ...
$tables = 'threads thr INNER JOIN {pre}_board frm ON frm.board_id = thr.board_id ';
$tables .= 'LEFT JOIN {pre}_read red ON thr.threads_id = red.threads_id AND red.users_id = \''.$account['users_id'].'\' ';
$tables .= 'LEFT JOIN {pre}_members mrs ON frm.squads_id = mrs.squads_id AND mrs.users_id = \''.$account['users_id'].'\'';
$cells = 'thr.threads_headline AS threads_headline, thr.threads_id AS threads_id, ';
$cells .= 'thr.threads_last_time AS threads_last_time, frm.board_name AS board_name, frm.board_id AS board_id';
$cond = '(frm.board_access <= \''.$account['access_board'].'\' OR frm.squads_id = mrs.squads_id) AND frm.board_pwd = \'\''; |
|
Zurück -
Übersicht
|