Code: Selecteer alles
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th>{L_POLL}</th>
</tr>
<tr>
<td class="row1" colspan="2"><br clear="all" /><form method="POST" action="{S_POLL_ACTION}"><table cellspacing="0" cellpadding="4" border="0" align="center">
<tr>
<td class="row1" align="center"><span class="gensmall">{POLL_QUESTION}</span></td>
</tr>
<tr>
<td align="center"><table cellspacing="0" cellpadding="2" border="0">
<!-- BEGIN poll_option -->
<tr>
<td><input type="radio" name="vote_id" value="{poll_option.POLL_OPTION_ID}" /> </td>
<td><span class="gensmall">{poll_option.POLL_OPTION_CAPTION}</span></td>
</tr>
<!-- END poll_option -->
</table></td>
</tr>
<tr>
<td class="row1" align="center">
<!-- BEGIN switch_user_logged_in -->
{L_SUBMIT_VOTE}
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<span class="gensmall">{LOGIN_TO_VOTE}<span>
<!-- END switch_user_logged_out -->
</td>
</tr>
</table>{S_HIDDEN_FIELDS}</form></td>
</tr>
</table>
<br />
Code: Selecteer alles
------- [ OPEN ]-------------------------
templates>portal_body.tpl
------- [ Find ]-------------------------
<td class="row1" align="left"><span class="gensmall">
<form method="post" action="{S_POLL_ACTION}">
-----------------[ From ]-----------------------------
<td class="row1" align="left"><span class="gensmall">
--------------- [ to ]----------------------------
<input type="hidden" name="mode" value="vote">
<!-- END switch_user_logged_in -->
</form><br />
</span></td>
</tr>
</table>
------------ [ REPLACE WITH ] --------------------------
<td class="row1" align="left"><span class="gensmall">
<form method="post" action="{S_POLL_ACTION}">
<center><b>{S_POLL_QUESTION}</b></center><br />
<!-- BEGIN poll_option_row -->
<input type="radio" name="vote_id" value="{poll_option_row.OPTION_ID}">{poll_option_row.OPTION_TEXT} [{poll_option_row.VOTE_RESULT}]<br />
<!-- END poll_option_row -->
<br />
<!-- BEGIN switch_user_logged_out -->
<center><input type="submit" class="mainoption" name="submit" value="{L_VOTE_BUTTON}" {DISABLED}></center>
<input type="hidden" name="topic_id" value="{S_TOPIC_ID}">
<input type="hidden" name="mode" value="vote">
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<center><input type="submit" class="mainoption" name="submit" value="{L_VOTE_BUTTON}" {DISABLED}></center>
<input type="hidden" name="topic_id" value="{S_TOPIC_ID}">
<input type="hidden" name="mode" value="vote">
<!-- END switch_user_logged_in -->
</form><br />
</span></td>
</tr>
</table>
-------------- [then] -------------------
make sure all poll voting is on for the portal page. enjoy
---------------EOM-------------------