открываем файл /components/forum/includes/forumcore.php
ищем, приблизительно 165 строка, такой блок:
//SHOW POLL $total = 0; $html .= '<table class="forum_poll_table" width="100%" cellspacing="2" cellpadding="5" border="0">'; $html .= '<tr><td class="forum_poll_header" width="100%" colspan="2">'; $html .= '<div class="forum_poll_title">'.$poll['title'].'</div>'; $html .= '<div class="forum_poll_desc">'.$poll['description'].'</div>'; $html .= '</td></tr>'; $html .= '<tr>'; $html .= '<td class="forum_poll_data" width="30%" valign="top">'; if (!$uservote || ($uservote && $opt['result']==2)){ //show answers $html .= '<form action="" method="post">'; $html .= '<input type="hidden" name="poll_id" value="'.$poll['id'].'" />'; $html .= '<table class="forum_poll_answers">'; foreach($answers_title as $key=>$value){ $html .= '<tr>'; $html .= '<td><input name="answer" id="an_'.$key.'" type="radio" value="'.htmlspecialchars($value).'"></td>'; $html .= '<td class="mod_poll_answer"><label for="an_'.$key.'">'.$value; $html .= '</label></td>'; $html .= '</tr>'; $total += $answers_num[$key]; } $html .= '</table>'; if (!$thread['closed']){ if (@$inUser->id && !$uservote){ $html .= '<div class="forum_poll_submit"><input type="submit" name="votepoll" value="'.$_LANG['VOTING'].'"></div>'; } if (!$inUser->id){ $html .= '<div class="forum_poll_submit">'.$_LANG['GUESTS_NOT_VOTE'].'</div>'; } } $html .= '</form>';
//SHOW POLL $total = 0; $html .= '<table class="forum_poll_table" width="100%" cellspacing="2" cellpadding="5" border="0">'; $html .= '<tr><td class="forum_poll_header" width="100%" colspan="2">'; $html .= '<div class="forum_poll_title">'.$poll['title'].'</div>'; $html .= '<div class="forum_poll_desc">'.$poll['description'].'</div>'; $html .= '</td></tr>'; $html .= '<tr>'; $html .= '<td class="forum_poll_data" width="30%" valign="top">'; if (!$uservote || ($uservote && $opt['result']==2)){ //show answers if (!$inUser->id){ $html .= '<div class="forum_poll_submit">'.$_LANG['GUESTS_NOT_VOTE'].'</div>'; } else { $html .= '<form action="" method="post">'; $html .= '<input type="hidden" name="poll_id" value="'.$poll['id'].'" />'; $html .= '<table class="forum_poll_answers">'; foreach($answers_title as $key=>$value){ $html .= '<tr>'; $html .= '<td><input name="answer" id="an_'.$key.'" type="radio" value="'.htmlspecialchars($value).'"></td>'; $html .= '<td class="mod_poll_answer"><label for="an_'.$key.'">'.$value; $html .= '</label></td>'; $html .= '</tr>'; $total += $answers_num[$key]; } $html .= '</table>'; if (!$thread['closed']){ if (@$inUser->id && !$uservote){ $html .= '<div class="forum_poll_submit"><input type="submit" name="votepoll" value="'.$_LANG['VOTING'].'"></div>'; } } $html .= '</form>'; }