Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: forumdisplay.php 5016 2010-06-12 00:24:02Z RyanGordon $
| * $Id: forumdisplay.php 5440 2011-04-15 10:18:35Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 92 | Zeile 92 |
---|
"); $forumsread = unserialize($mybb->cookies['mybb']['forumread']);
|
"); $forumsread = unserialize($mybb->cookies['mybb']['forumread']);
|
| if(!is_array($forumsread)) { $forumsread = array(); }
|
} else {
| } else {
|
Zeile 197 | Zeile 202 |
---|
{ continue; }
|
{ continue; }
|
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['id'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";
| $moderators .= "{$comma}<a href=\"".get_profile_link($moderator['id'])."\">".format_name(htmlspecialchars_uni($moderator['username']), $moderator['usergroup'], $moderator['displaygroup'])."</a>";
|
$done_moderators['users'][] = $moderator['id']; } $comma = $lang->comma;
| $done_moderators['users'][] = $moderator['id']; } $comma = $lang->comma;
|
Zeile 366 | Zeile 371 |
---|
if(!empty($foruminfo['defaultdatecut'])) { $datecut = $foruminfo['defaultdatecut'];
|
if(!empty($foruminfo['defaultdatecut'])) { $datecut = $foruminfo['defaultdatecut'];
|
}
| }
|
} } // If there was a manual date cut override, use it.
| } } // If there was a manual date cut override, use it.
|
Zeile 701 | Zeile 706 |
---|
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid){$select_voting} LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid = t.prefix) WHERE t.fid='$fid' $tuseronly $tvisibleonly $datecutsql2
|
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid){$select_voting} LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid = t.prefix) WHERE t.fid='$fid' $tuseronly $tvisibleonly $datecutsql2
|
| GROUP BY t.tid
|
ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2 LIMIT $start, $perpage ");
| ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2 LIMIT $start, $perpage ");
|
Zeile 912 | Zeile 918 |
---|
if(!$mybb->settings['postsperpage']) { $mybb->settings['postperpage'] = 20;
|
if(!$mybb->settings['postsperpage']) { $mybb->settings['postperpage'] = 20;
|
}
| }
|
if($thread['unapprovedposts'] > 0 && $ismod) {
| if($thread['unapprovedposts'] > 0 && $ismod) {
|
Zeile 996 | Zeile 1002 |
---|
$donenew = 0;
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
|
$donenew = 0;
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
|
{
| {
|
if($thread['lastread']) { $last_read = $thread['lastread'];
| if($thread['lastread']) { $last_read = $thread['lastread'];
|
Zeile 1029 | Zeile 1035 |
---|
{ $folder_label .= $lang->icon_no_new; $new_class = "subject_old";
|
{ $folder_label .= $lang->icon_no_new; $new_class = "subject_old";
|
}
| }
|
if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])
|
if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])
|
{
| {
|
$folder .= "hot"; $folder_label .= $lang->icon_hot;
|
$folder .= "hot"; $folder_label .= $lang->icon_hot;
|
}
| }
|
if($thread['closed'] == 1)
|
if($thread['closed'] == 1)
|
{
| {
|
$folder .= "lock"; $folder_label .= $lang->icon_lock;
|
$folder .= "lock"; $folder_label .= $lang->icon_lock;
|
}
| }
|
if($moved[0] == "moved") { $folder = "move"; $gotounread = '';
|
if($moved[0] == "moved") { $folder = "move"; $gotounread = '';
|
}
$folder .= "folder";
| }
$folder .= "folder";
|
$inline_edit_tid = $thread['tid'];
| $inline_edit_tid = $thread['tid'];
|
Zeile 1099 | Zeile 1105 |
---|
else { $unapproved_posts = '';
|
else { $unapproved_posts = '';
|
}
| }
|
// If this thread has 1 or more attachments show the papperclip if($thread['attachmentcount'] > 0) {
| // If this thread has 1 or more attachments show the papperclip if($thread['attachmentcount'] > 0) {
|
Zeile 1134 | Zeile 1140 |
---|
break; default: $query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND type = 't'");
|
break; default: $query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND type = 't'");
|
}
| }
|
while($tool = $db->fetch_array($query)) { eval("\$customthreadtools .= \"".$templates->get("forumdisplay_inlinemoderation_custom_tool")."\";");
| while($tool = $db->fetch_array($query)) { eval("\$customthreadtools .= \"".$templates->get("forumdisplay_inlinemoderation_custom_tool")."\";");
|
Zeile 1151 | Zeile 1157 |
---|
// If there are no unread threads in this forum and no unread child forums - mark it as read require_once MYBB_ROOT."inc/functions_indicators.php"; if(fetch_unread_count($fid) == 0 && $unread_forums == 0)
|
// If there are no unread threads in this forum and no unread child forums - mark it as read require_once MYBB_ROOT."inc/functions_indicators.php"; if(fetch_unread_count($fid) == 0 && $unread_forums == 0)
|
{
| {
|
mark_forum_read($fid);
|
mark_forum_read($fid);
|
}
| }
|
// Subscription status $query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));
| // Subscription status $query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));
|
Zeile 1162 | Zeile 1168 |
---|
{ $add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum;
|
{ $add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum;
|
}
| }
|
else { $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum; }
|
else { $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum; }
|
|
|
// Is this a real forum with threads? if($foruminfo['type'] != "c") { if(!$threadcount) { eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");
|
// Is this a real forum with threads? if($foruminfo['type'] != "c") { if(!$threadcount) { eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");
|
}
| }
|
if($foruminfo['password'] != '')
|
if($foruminfo['password'] != '')
|
{
| {
|
eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";"); }
|
eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";"); }
|
if($load_inline_edit_js == 1)
| if($load_inline_edit_js == 1) { eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";"); }
$post_code_string = ''; if($mybb->user['uid'])
|
{
|
{
|
eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";");
| $post_code_string = "&my_post_key=".$mybb->post_code;
|
}
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
| }
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
|