diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-08-22 13:09:44 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-08-22 13:09:44 +0000 |
commit | 101f2c95b917d4af5f623a05609dd4890f7849b9 (patch) | |
tree | de346c43f409aef3ed3a486a6ae05bfac82fe008 /phpBB | |
parent | c946266fa38c0dca29ec91b80c2d64b57842a5fe (diff) | |
download | forums-101f2c95b917d4af5f623a05609dd4890f7849b9.tar forums-101f2c95b917d4af5f623a05609dd4890f7849b9.tar.gz forums-101f2c95b917d4af5f623a05609dd4890f7849b9.tar.bz2 forums-101f2c95b917d4af5f623a05609dd4890f7849b9.tar.xz forums-101f2c95b917d4af5f623a05609dd4890f7849b9.zip |
- remove avatar class
- added S_FIRST_UNREAD and S_UNREAD
- removed U_POST_ID
git-svn-id: file:///svn/phpbb/trunk@4964 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewtopic.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 616c145da9..301a9b05b3 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -882,7 +882,7 @@ while ($row = $db->sql_fetchrow($result)) } $avatar_img .= $row['user_avatar']; - $user_cache[$poster_id]['avatar'] = '<img src="' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" border="0" alt=""' . (($user->theme['primary']['avatar_img_class']) ? ' class="' . $user->theme['primary']['avatar_img_class'] . '"' : '') . ' />'; + $user_cache[$poster_id]['avatar'] = '<img src="' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" border="0" alt="" />'; } if (!empty($row['user_rank'])) @@ -1262,16 +1262,18 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'U_MCP_REPORT' => ($auth->acl_gets('m_', 'a_', 'f_report', $forum_id)) ? "mcp.$phpEx$SID&mode=post_details&p=" . $row['post_id'] : '', 'U_MCP_APPROVE' => ($auth->acl_get('m_approve', $forum_id)) ? "mcp.$phpEx$SID&i=queue&mode=approve&post_id_list[]=" . $row['post_id'] : '', 'U_MINI_POST' => "viewtopic.$phpEx$SID&p=" . $row['post_id'] . '#' . $row['post_id'], - 'U_POST_ID' => ($unread_post_id == $row['post_id']) ? 'unread' : $row['post_id'], - 'POST_ID' => $row['post_id'], 'U_NEXT_POST_ID' => ($i < $i_total && isset($rowset[$i + 1])) ? $rowset[$i + 1]['post_id'] : '', 'U_PREV_POST_ID' => $prev_post_id, + 'POST_ID' => $row['post_id'], + 'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? TRUE : FALSE, 'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE, 'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_get('m_', $forum_id)) ? TRUE : FALSE, 'S_DISPLAY_NOTICE' => $display_notice && $row['post_attachment'], - 'S_FRIEND' => ($row['friend']) ? true : false + 'S_FRIEND' => ($row['friend']) ? true : false, + 'S_UNREAD' => ($user->data['user_id'] != ANONYMOUS && $row['post_time'] > $user->data['user_lastvisit'] && $row['post_time'] > $topic_last_read) ? true : false, + 'S_FIRST_UNREAD' => ($unread_post_id == $row['post_id']) ? true : false ); /* if (sizeof($cp_row)) |