Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: showthread.php 4276 2008-11-23 03:01:33Z Tikitiki $
| * $Id: showthread.php 4351 2009-04-17 02:37:21Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 531 | Zeile 531 |
---|
else { $thread['averagerating'] = floatval(round($thread['totalratings']/$thread['numratings'], 2));
|
else { $thread['averagerating'] = floatval(round($thread['totalratings']/$thread['numratings'], 2));
|
$thread['width'] = intval($thread['averagerating'])*20;
| $thread['width'] = intval(round($thread['averagerating']))*20;
|
$thread['numratings'] = intval($thread['numratings']); }
| $thread['numratings'] = intval($thread['numratings']); }
|
Zeile 575 | Zeile 575 |
---|
} }
|
} }
|
// Which thread mode is our user using?
| // Which thread mode is our user using by default? if(!empty($mybb->user['threadmode'])) { $defaultmode = $mybb->user['threadmode']; } else if($mybb->settings['threadusenetstyle'] == 1) { $defaultmode = 'threaded'; } else { $defaultmode = 'linear'; } // If mode is unset, set the default mode
|
if(!isset($mybb->input['mode'])) {
|
if(!isset($mybb->input['mode'])) {
|
if(!empty($mybb->user['threadmode'])) // Take user's default preference first (if there is one) and run with it { $mybb->input['mode'] = $mybb->user['threadmode']; } else if($mybb->settings['threadusenetstyle'] == 1) { $mybb->input['mode'] = 'threaded'; } else { $mybb->input['mode'] = 'linear'; }
| $mybb->input['mode'] = $defaultmode;
|
}
// Threaded or linear display?
| }
// Threaded or linear display?
|
Zeile 658 | Zeile 661 |
---|
} $tree[$post['replyto']][$post['pid']] = $post; $postsdone[$post['pid']] = 1;
|
} $tree[$post['replyto']][$post['pid']] = $post; $postsdone[$post['pid']] = 1;
|
}
| }
|
} $threadedbits = buildtree();
| } $threadedbits = buildtree();
|
Zeile 729 | Zeile 732 |
---|
$upper = $start+$perpage; // Work out if we have terms to highlight
|
$upper = $start+$perpage; // Work out if we have terms to highlight
|
$highlight = ""; if($mybb->input['highlight']) { if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))
| $highlight = ""; $threadmode = ""; if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1)) { if($mybb->input['highlight']) { $highlight = "?highlight=".urlencode($mybb->input['highlight']); } if($defaultmode != "linear")
|
{
|
{
|
$highlight = "?highlight=".urlencode($mybb->input['highlight']);
| if($mybb->input['highlight']) { $threadmode = "&mode=linear"; } else { $threadmode = "?mode=linear"; }
|
}
|
}
|
else { $highlight = "&highlight=".urlencode($mybb->input['highlight']); } }
| } else { if($mybb->input['highlight']) { $highlight = "&highlight=".urlencode($mybb->input['highlight']); } if($defaultmode != "linear") { $threadmode = "&mode=linear"; } }
|
|
|
$multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight));
| $multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight.$threadmode));
|
if($postcount > $perpage) { eval("\$threadpages = \"".$templates->get("showthread_multipage")."\";");
| if($postcount > $perpage) { eval("\$threadpages = \"".$templates->get("showthread_multipage")."\";");
|