Zeile 19 | Zeile 19 |
---|
$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumbit_moderators_group"; $templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_nopermission"; $templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes,forumdisplay_thread_icon,forumdisplay_rules";
|
$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumbit_moderators_group"; $templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_nopermission"; $templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes,forumdisplay_thread_icon,forumdisplay_rules";
|
$templatelist .= ",forumdisplay_thread_deleted,forumdisplay_announcements_announcement_modbit,forumbit_depth2_forum_viewers,forumdisplay_threadlist_sortrating,forumdisplay_inlinemoderation_custom,forumdisplay_announcement_rating,forumdisplay_inlinemoderation_approveunapprove";
| $templatelist .= ",forumdisplay_thread_deleted,forumdisplay_announcements_announcement_modbit,forumbit_depth2_forum_viewers,forumdisplay_threadlist_sortrating,forumdisplay_inlinemoderation_custom,forumdisplay_announcement_rating,forumdisplay_inlinemoderation_approveunapprove,forumdisplay_threadlist_subscription";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 844 | Zeile 844 |
---|
if($fpermissions['canviewthreads'] != 0) { $plugins->run_hooks("forumdisplay_get_threads");
|
if($fpermissions['canviewthreads'] != 0) { $plugins->run_hooks("forumdisplay_get_threads");
|
| // Allow viewing unapproved threads for logged in users if($mybb->user['uid'] && $mybb->settings['showownunapproved']) { $tvisibleonly .= " OR (t.fid='$fid' AND t.uid=".$mybb->user['uid'].")"; }
|
// Start Getting Threads $query = $db->query("
| // Start Getting Threads $query = $db->query("
|
Zeile 854 | Zeile 860 |
---|
ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2 LIMIT $start, $perpage ");
|
ORDER BY t.sticky DESC, {$t}{$sortfield} $sortordernow $sortfield2 LIMIT $start, $perpage ");
|
|
|
$ratings = false; $moved_threads = array(); while($thread = $db->fetch_array($query))
| $ratings = false; $moved_threads = array(); while($thread = $db->fetch_array($query))
|
Zeile 864 | Zeile 870 |
---|
if($thread['numratings'] > 0 && $ratings == false) { $ratings = true; // Looks for ratings in the forum
|
if($thread['numratings'] > 0 && $ratings == false) { $ratings = true; // Looks for ratings in the forum
|
}
| }
|
// If this is a moved thread - set the tid for participation marking and thread read marking to that of the moved thread if(substr($thread['closed'], 0, 5) == "moved")
| // If this is a moved thread - set the tid for participation marking and thread read marking to that of the moved thread if(substr($thread['closed'], 0, 5) == "moved")
|
Zeile 893 | Zeile 899 |
---|
// Guests get the pleasure of not being ID'd, but will be checked when they try and rate $imp = implode(",", array_keys($threadcache)); $query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'");
|
// Guests get the pleasure of not being ID'd, but will be checked when they try and rate $imp = implode(",", array_keys($threadcache)); $query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'");
|
|
|
while($rating = $db->fetch_array($query)) { $threadcache[$rating['tid']]['rated'] = 1;
| while($rating = $db->fetch_array($query)) { $threadcache[$rating['tid']]['rated'] = 1;
|
Zeile 912 | Zeile 918 |
---|
}
if(!empty($tids))
|
}
if(!empty($tids))
|
{
| {
|
$tids = implode(",", $tids); }
| $tids = implode(",", $tids); }
|
Zeile 921 | Zeile 927 |
---|
{ $query = $db->simple_select("posts", "DISTINCT tid,uid", "uid='{$mybb->user['uid']}' AND tid IN ({$tids}) {$visibleonly}"); while($post = $db->fetch_array($query))
|
{ $query = $db->simple_select("posts", "DISTINCT tid,uid", "uid='{$mybb->user['uid']}' AND tid IN ({$tids}) {$visibleonly}"); while($post = $db->fetch_array($query))
|
{
| {
|
if(!empty($moved_threads[$post['tid']])) { $post['tid'] = $moved_threads[$post['tid']];
| if(!empty($moved_threads[$post['tid']])) { $post['tid'] = $moved_threads[$post['tid']];
|
Zeile 1074 | Zeile 1080 |
---|
$donestickysep = true; } else if($thread['sticky'] == 0 && !empty($shownormalsep))
|
$donestickysep = true; } else if($thread['sticky'] == 0 && !empty($shownormalsep))
|
{
| {
|
eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";"); $shownormalsep = false; }
| eval("\$threads .= \"".$templates->get("forumdisplay_threads_sep")."\";"); $shownormalsep = false; }
|
Zeile 1446 | Zeile 1452 |
---|
// Subscription status $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum;
|
// Subscription status $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum;
|
| $addremovesubscription = '';
|
if($mybb->user['uid']) {
| if($mybb->user['uid']) {
|
Zeile 1456 | Zeile 1463 |
---|
$add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum; }
|
$add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum; }
|
| eval("\$addremovesubscription = \"".$templates->get("forumdisplay_threadlist_subscription")."\";");
|
}
$inline_edit_js = $clearstoredpass = '';
| }
$inline_edit_js = $clearstoredpass = '';
|