
03-20-2005, 07:36 PM
|
|
|
Join Date: Apr 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by ambumann
Is it possible to add an option to this mod to let the users see the results after they have voted?
|
Here
Quote:
pollresults_table TEMPLATE
==========================
FIND:
<td class="tfoot" colspan="4" align="center"><span class="smallfont"><if condition="$show['multiple']">$vbphrase[multiple_choice_poll] </if>$vbphrase[voters]: <strong>$pollinfo[numbervotes]</strong>. $pollstatus</span></td>
REPLACE WITH:
<if condition="$noshow == 0 || $uservoted == 1">
<td class="tfoot" colspan="4" align="center"><span class="smallfont"><if condition="$show['multiple']">$vbphrase[multiple_choice_poll] </if>$vbphrase[voters]: <strong>$pollinfo[numbervotes]</strong>. $pollstatus</span></td>
</if>
<if condition="$noshow == 1 && $uservoted == 0">
<td class="tfoot" colspan="4" align="center"><span class="smallfont"><strong>$vbphrase[hidden_poll_footer]<br>$pollstatus</strong></td>
</if>
|
Quote:
showthread.php
======================
FIND:
if ($value == 0)
{
$option['percent'] = 0;
}
else
{
$option['percent'] = vb_number_format($value / $pollinfo['numbervotes'] * 100, 2);
}
REPLACE WITH:
// Start Hide Poll Results v1.0
if ($value == 0 || $noshow == 1 && $uservoted == 0)
{
$option['percent'] = 0;
$option['votes'] = 0;
}
else
{
$option['percent'] = vb_number_format($value / $pollinfo['numbervotes'] * 100, 2);
}
// End Hide Poll Results v1.0
|
|