Otwórz plik: sources/action_public/topics.php
Znajdź:
//-----------------------------------------
// Get the choices for this question
//-----------------------------------------
Dodaj powyżej:
/* (DP23) Disable Poll View Results */
$show = 1;
if( $this->topic['state'] != 'closed' )
{
$show = 0;
}
Znajdź:
$choice_html .= $this->ipsclass->compiled_templates['skin_poll']->poll_show_rendered_choice($choice_id, $votes, $id, $choice, $percent, $width);
Zamień na:
$choice_html .= $this->ipsclass->compiled_templates['skin_poll']->poll_show_rendered_choice($choice_id, $votes, $id, $choice, $percent, $width, $show);
Zapisz i wyślij.
Przejdź do edycji skina: View Poll :bounce: poll_show_rendered_choice
W zmienne skina dodaj na końcu:
, $show=""
Znajdź:
<td class="post2" width='10%' nowrap='nowrap'> [ <b>$votes</b> ] </td>
<td class="post2" width='70%' nowrap='nowrap'><{BAR_LEFT}><img src="{$this->ipsclass->vars['img_url']}/bar.gif" width="$width" height="11" align="middle" alt="" /><{BAR_RIGHT}> [$percentage%]</td>
Zamień na:
<if="$show">
<td class="post2" width='10%' nowrap='nowrap'> [ <b>$votes</b> ] </td>
<td class="post2" width='70%' nowrap='nowrap'><{BAR_LEFT}><img src="{$this->ipsclass->vars['img_url']}/bar.gif" width="$width" height="11" align="middle" alt="" /><{BAR_RIGHT}> [$percentage%]</td>
</if>
Zapisz.