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 5765 2012-03-27 09:52:45Z Tomm $
| * $Id: forumdisplay.php 5787 2012-04-19 13:30:23Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 887 | Zeile 887 |
---|
$load_inline_edit_js = 0; if(is_array($threadcache)) {
|
$load_inline_edit_js = 0; if(is_array($threadcache)) {
|
| if(!$mybb->settings['maxmultipagelinks']) { $mybb->settings['maxmultipagelinks'] = 5; }
if(!$mybb->settings['postsperpage']) { $mybb->settings['postperpage'] = 20; }
|
foreach($threadcache as $thread) { $plugins->run_hooks("forumdisplay_thread");
|
foreach($threadcache as $thread) { $plugins->run_hooks("forumdisplay_thread");
|
|
|
$moved = explode("|", $thread['closed']);
if($thread['visible'] == 0)
| $moved = explode("|", $thread['closed']);
if($thread['visible'] == 0)
|
Zeile 900 | Zeile 910 |
---|
else { $bgcolor = alt_trow();
|
else { $bgcolor = alt_trow();
|
}
| }
|
if($thread['sticky'] == 1) {
| if($thread['sticky'] == 1) {
|
Zeile 968 | Zeile 978 |
---|
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0) { if($moved[0] == "moved")
|
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0) { if($moved[0] == "moved")
|
{
| {
|
$rating = "<td class=\"{$bgcolor}\" style=\"text-align: center;\">-</td>"; } else
| $rating = "<td class=\"{$bgcolor}\" style=\"text-align: center;\">-</td>"; } else
|
Zeile 982 | Zeile 992 |
---|
{ $not_rated = ' star_rating_notrated'; }
|
{ $not_rated = ' star_rating_notrated'; }
|
|
|
$ratingvotesav = $lang->sprintf($lang->rating_votes_average, $thread['numratings'], $thread['averagerating']); eval("\$rating = \"".$templates->get("forumdisplay_thread_rating")."\";"); }
|
$ratingvotesav = $lang->sprintf($lang->rating_votes_average, $thread['numratings'], $thread['averagerating']); eval("\$rating = \"".$templates->get("forumdisplay_thread_rating")."\";"); }
|
}
| }
|
$thread['pages'] = 0; $thread['multipage'] = ''; $threadpages = ''; $morelink = ''; $thread['posts'] = $thread['replies'] + 1;
|
$thread['pages'] = 0; $thread['multipage'] = ''; $threadpages = ''; $morelink = ''; $thread['posts'] = $thread['replies'] + 1;
|
if(!$mybb->settings['postsperpage']) { $mybb->settings['postperpage'] = 20; }
| |
if($thread['unapprovedposts'] > 0 && $ismod) {
| if($thread['unapprovedposts'] > 0 && $ismod) {
|
Zeile 1009 | Zeile 1014 |
---|
$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage']; $thread['pages'] = ceil($thread['pages']);
|
$thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage']; $thread['pages'] = ceil($thread['pages']);
|
if($thread['pages'] > 5)
| if($thread['pages'] > $mybb->settings['maxmultipagelinks'])
|
{
|
{
|
$pagesstop = 4;
| $pagesstop = $mybb->settings['maxmultipagelinks'] - 1;
|
$page_link = get_thread_link($thread['tid'], $thread['pages']); eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";"); }
| $page_link = get_thread_link($thread['tid'], $thread['pages']); eval("\$morelink = \"".$templates->get("forumdisplay_thread_multipage_more")."\";"); }
|