Zeile 617 | Zeile 617 |
---|
// Decide what poll status to show depending on the status of the poll and whether or not the user voted already. if(isset($alreadyvoted) || isset($showresults) || isset($nopermission)) {
|
// Decide what poll status to show depending on the status of the poll and whether or not the user voted already. if(isset($alreadyvoted) || isset($showresults) || isset($nopermission)) {
|
if($alreadyvoted)
| $undovote = '';
if(isset($alreadyvoted))
|
{ $pollstatus = $lang->already_voted;
|
{ $pollstatus = $lang->already_voted;
|
$undovote = '';
| |
if($mybb->usergroup['canundovotes'] == 1) { eval("\$undovote = \"".$templates->get("showthread_poll_undovote")."\";"); } }
|
if($mybb->usergroup['canundovotes'] == 1) { eval("\$undovote = \"".$templates->get("showthread_poll_undovote")."\";"); } }
|
elseif($nopermission)
| elseif(isset($nopermission))
|
{ $pollstatus = $lang->no_voting_permission; }
| { $pollstatus = $lang->no_voting_permission; }
|
Zeile 762 | Zeile 763 |
---|
// Work out the thread rating for this thread. $rating = $ratethread = ''; if($mybb->settings['allowthreadratings'] != 0 && $forum['allowtratings'] != 0)
|
// Work out the thread rating for this thread. $rating = $ratethread = ''; if($mybb->settings['allowthreadratings'] != 0 && $forum['allowtratings'] != 0)
|
{
| {
|
$rated = 0; $lang->load("ratethread"); if($thread['numratings'] <= 0)
| $rated = 0; $lang->load("ratethread"); if($thread['numratings'] <= 0)
|
Zeile 1047 | Zeile 1048 |
---|
else { $highlight = "&highlight=".urlencode($mybb->get_input('highlight'));
|
else { $highlight = "&highlight=".urlencode($mybb->get_input('highlight'));
|
}
| }
|
}
if($defaultmode != "linear")
| }
if($defaultmode != "linear")
|
Zeile 1126 | Zeile 1127 |
---|
if($mybb->settings['showsimilarthreads'] != 0) { $own_perm = '';
|
if($mybb->settings['showsimilarthreads'] != 0) { $own_perm = '';
|
if($forumpermissions['canonlyviewownthreads'] == 1)
| if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1)
|
{ $own_perm = " AND t.uid={$mybb->user['uid']}"; }
| { $own_perm = " AND t.uid={$mybb->user['uid']}"; }
|
Zeile 1191 | Zeile 1192 |
---|
{ $similar_thread['threadprefix'] = $prefix['displaystyle'].' '; }
|
{ $similar_thread['threadprefix'] = $prefix['displaystyle'].' '; }
|
| } else { $similar_thread['threadprefix'] = '';
|
}
$similar_thread['subject'] = $parser->parse_badwords($similar_thread['subject']);
| }
$similar_thread['subject'] = $parser->parse_badwords($similar_thread['subject']);
|