http://scottstudio.adsldns.org/download ... _1_3_3.zip
代碼: 選擇全部
## EasyMod 0.0.7 compliant
##############################################################
## MOD Title: MultiVote_Mod_v.1.3.3
##
## MOD Author: vilaras < vilaras@freemail.gr > (Theodoros Vilaras) http://users.otenet.gr/~vil1st/multivote_mod/
##
## MOD Description:
##
## Multiple choice voting in phpBB polls:
## - It's up to the user to define the number of the allowed selections.
## - Usage of 'checkboxes' instead of 'radio buttons' (when needed).
## - Users-voters are automatically notified of the max allowed choices.
## - Can set poll expiration within hours.
## - Time left to poll expiration appears when viewing poll results page.
## - Choose whether to hide results and total number of votes till poll expires or not.
## ATTENTION: Addition of 4 db table fields (columns) is required
##
##
## MOD Version: 1.3.3
##
## Installation Level: Intermediate
##
## Installation Time: 20 Minutes
##
## Files To Edit: posting.php,
## viewtopic.php,
## includes/functions_post.php,
## language/lang_english/lang_main.php,
## templates/subSilver/posting_poll_body.tpl,
## templates/subSilver/viewtopic_poll_ballot.tpl
## templates/subSilver/viewtopic_poll_result.tpl
##
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##
##
## ATTENTION: Addition of 4 table fields is REQUIRED.
## That is, either you need to have access to the db
## (either direct access or through another program,
## for example phpMyAdmin for MySQL
## (available at http://www.phpmyadmin.net/)
##
## If you do not create the required fields, then your Board is
## not going to function properly!
##
## Do NOT try to use this mod without installing the fields!
##
##
##############################################################
## MOD History:
##
## 2003-10-26 - Version 1.3.3
##
## - a bug was fixed in templates/subSilver/posting_poll_body.tpl by ashtor (thanks ashtor!)
##
## 2003-6-25 - Version 1.3.2
##
## - a minor change in posting.php alterations in order to be compliant with phpBB v.2.0.5 and phpBB v.2.0.6
##
## 2003-6-15 - Version 1.3.1
##
## - minor changes in the text format in order to comply with the requirements
## - of the Mod Validator tool
##
## 2003-3-9 - Version 1.3.0
##
## - time left till poll expires visible when viewing results
## - ability to hide total no of votes till poll expires (only if hide results enabled)
## (added one more field in the db)
##
## 2003-3-7 - Version 1.2.0
##
## - (not released)
## - possible to set poll expiration within hours
## - ability to hide results till the poll expires
## (added one more field in the db)
##
## 2003-2-28 - Version 1.1.0
##
## - added one more field in the db (how many users have voted)
## (number of voters shows up in the results only for multiple choice polls)
##
## 2003-2-23 - Version 1.0.0
##
## - added files (under Acyd Burn's authorisation) in order to automate db field creation
##
## 2003-2-23 - Version 0.1.2
##
## - minnor changes in order to comply with Easy_mod_0.0.7
##
## 2003-2-22 - Version 0.1.1
##
## - formatted the db modification instructions according
## to what seems to be kind of a standard
## - changed the version numbers according to the suggested standards
##
## 2003-2-22 - Version 0.1.0
##
## - 'radio buttons' are used when only 1 choice is acceptable (without any additional text)
## - removed one line with '<tr>' from file templates/subSilver/viewtopic_poll_ballot.tpl
## (there were two identical lines, one after the other - v0.0.2 mistake)
##
## 2003-2-19 - Version 0.0.2
##
## - Formatted installation instructions according to phpBB requirements
## - Assigned number 1 as the default number of accepted sum of selections
## in file posting.php : $max_vote = '1';
## instead of : $max_vote = '';
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
## Possible Actions:
##
## COPY
## OPEN
## FIND
## REPLACE WITH
## AFTER, ADD
## BEFORE, ADD
## IN-LINE FIND
## IN-LINE AFTER, ADD
## IN-LINE BEFORE, ADD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# CHANGE TABLE PREFIX ACCORDINGLY!!!
#
ALTER TABLE `phpbb_vote_desc` ADD `vote_max` INT( 3 ) DEFAULT '1' NOT NULL;
ALTER TABLE `phpbb_vote_desc` ADD `vote_voted` INT( 7 ) DEFAULT '0' NOT NULL;
ALTER TABLE `phpbb_vote_desc` ADD `vote_hide` TINYINT( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE `phpbb_vote_desc` ADD `vote_tothide` TINYINT( 1 ) DEFAULT '0' NOT NULL;
#
#-----[ OPEN ]---------------------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------------------
#
$poll_length = $row['vote_length'] / 86400;
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$poll_length = intval($row['vote_length'] / 86400);
$poll_length_h = intval( ( $row['vote_length'] - ( $poll_length *86400) ) /3600 ) ;
$max_vote = $row['vote_max'];
$hide_vote = $row['vote_hide'];
$tothide_vote = $row['vote_tothide'];
#
#-----[ FIND ]---------------------------------------------
#
if ( !empty($HTTP_POST_VARS['vote_id']) )
{
$vote_option_id = intval($HTTP_POST_VARS['vote_id']);
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$vote_option_id = intval($HTTP_POST_VARS['vote_id']);
$sql = "SELECT vd.vote_id, vd.vote_max
FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr
WHERE vd.topic_id = $topic_id
AND vr.vote_id = vd.vote_id
AND vr.vote_option_id = $vote_option_id
GROUP BY vd.vote_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql);
}
if ( $vote_info = $db->sql_fetchrow($result) )
{
$max_vote = $vote_info['vote_max'];
}
$max_voting=count($vote_id);
if ($max_voting>$max_vote)
$max_voting=$max_vote;
$vddd='';
for($i = 0; $i < $max_voting; $i++)
{
$vbn[$i]= $vote_id[$i];
}
#
#-----[ FIND ]---------------------------------------------
#
$sql = "UPDATE " . VOTE_RESULTS_TABLE . "
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
for($i = 0; $i < $max_voting; $i++)
{
$vote_option_id = $vbn[$i];
#
#-----[ FIND ]---------------------------------------------
#
SET vote_result = vote_result + 1
WHERE vote_id = $vote_id
AND vote_option_id = $vote_option_id";
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$vote_option_id = $vddd;
#
#-----[ FIND ]---------------------------------------------
#
$sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip)
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
}
$sql = "UPDATE " . VOTE_DESC_TABLE . "
SET vote_voted = vote_voted + 1
WHERE vote_id = $vote_id
AND topic_id = $topic_id";
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Could not update poll voted', '', __LINE__, __FILE__, $sql);
}
#
#-----[ FIND ]---------------------------------------------
#
}
else
{
redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true));
}
}
else if ( $submit || $confirm )
#
#-----[ REPLACE WITH ]---------------------------------------------
#
}
else if ( $submit || $confirm )
#
#-----[ FIND ]---------------------------------------------
#
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? intval($HTTP_POST_VARS['poll_length']) : '0';
$poll_length_h = ( isset($HTTP_POST_VARS['poll_length_h']) && $is_auth['auth_pollcreate'] ) ? intval($HTTP_POST_VARS['poll_length_h']) : '0';
$poll_length = $poll_length*24;
$poll_length = $poll_length_h+$poll_length;
$poll_length = ($poll_length) ? max(0, ($poll_length/24)) : 0;
$max_vote = ( isset($HTTP_POST_VARS['max_vote']) && $is_auth['auth_pollcreate'] ) ? ( ( $HTTP_POST_VARS['max_vote'] == 0 ) ? 1 : $HTTP_POST_VARS['max_vote'] ) : '';
$hide_vote = ( isset($HTTP_POST_VARS['hide_vote']) && $is_auth['auth_pollcreate'] && ($poll_length>0) ) ? 1 : '';
$tothide_vote = ( isset($HTTP_POST_VARS['tothide_vote']) && isset($HTTP_POST_VARS['hide_vote']) && $is_auth['auth_pollcreate'] && ($poll_length>0) ) ? 1 : '';
#
#-----[ FIND ]---------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
, $poll_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, $max_vote, $hide_vote, $tothide_vote
#
#-----[ FIND ]---------------------------------------------
#
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
, $poll_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, $max_vote, $hide_vote, $tothide_vote
#
#-----[ FIND ]---------------------------------------------
#
$poll_length = ( isset($HTTP_POST_VARS['poll_length']) ) ? max(0, intval($HTTP_POST_VARS['poll_length'])) : 0;
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$max_vote = ( isset($HTTP_POST_VARS['max_vote']) ) ? max(0, intval($HTTP_POST_VARS['max_vote'])) : 0;
$hide_vote = ( isset($HTTP_POST_VARS['hide_vote']) ) ? max(0, intval($HTTP_POST_VARS['hide_vote'])) : 0;
$tothide_vote = ( isset($HTTP_POST_VARS['tothide_vote']) ) ? max(0, intval($HTTP_POST_VARS['tothide_vote'])) : 0;
#
#-----[ FIND ]---------------------------------------------
#
$poll_length = '';
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$poll_length_h = '';
$max_vote = '1';
$hide_vote = '';
$tothide_vote = '';
#
#-----[ FIND ]---------------------------------------------
#
'L_POLL_LENGTH' => $lang['Poll_for'],
#
#-----[ AFTER, ADD ]---------------------------------------------
#
'L_MAX_VOTE' => $lang['Max_vote'],
'L_MAX_VOTE_EXPLAIN' => $lang['Max_vote_explain'],
'L_MAX_VOTING_1_EXPLAIN' => $lang['Max_voting_1_explain'],
'L_MAX_VOTING_2_EXPLAIN' => $lang['Max_voting_2_explain'],
'L_MAX_VOTING_3_EXPLAIN' => $lang['Max_voting_3_explain'],
'L_VHIDE' => $lang['Vhide'],
'L_HIDE_VOTE' => $lang['Hide_vote'],
'L_TOTHIDE_VOTE' => $lang['Tothide_vote'],
'L_HIDE_VOTE_EXPLAIN' => $lang['Hide_vote_explain'],
'L_HOURS' => $lang['Hours'],
#
#-----[ FIND ]---------------------------------------------
#
'POLL_LENGTH' => $poll_length)
#
#-----[ REPLACE WITH ]---------------------------------------------
#
'HIDE_VOTE' => ( $hide_vote ) ? 'checked="checked"' : '',
'TOTHIDE_VOTE' => ( $tothide_vote ) ? 'checked="checked"' : '',
'POLL_LENGTH_H' => $poll_length_h,
'MAX_VOTE' => $max_vote,
'POLL_LENGTH' => $poll_length)
#
#-----[ OPEN ]---------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vd.vote_max, vd.vote_voted, vd.vote_hide, vd.vote_tothide, vr.vote_option_id, vr.vote_option_text, vr.vote_result
#
#-----[ FIND ]---------------------------------------------
#
$vote_title = $vote_info[0]['vote_text'];
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$max_vote = $vote_info[0]['vote_max'];
$voted_vote = $vote_info[0]['vote_voted'];
$hide_vote = $vote_info[0]['vote_hide'];
$tothide_vote = $vote_info[0]['vote_tothide'];
#
#-----[ FIND ]---------------------------------------------
#
$template->assign_block_vars("poll_option", array(
'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'],
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
$hide_vote_bl = '';
$hide_vote_zr = '0';
$total_votes_1 = $lang['Total_votes'] ;
$total_votes_2 = $vote_results_sum ;
if ( ( $poll_expired == 0 ) && ( $hide_vote == 1 ) && ( $vote_info[0]['vote_length'] <> 0 ) )
{
if ( $tothide_vote == 1 )
{
$total_votes_1 = '' ;
$total_votes_2 = '' ;
}
$poll_expires_c = $lang['Results_after'];
$template->assign_block_vars("poll_option", array(
'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'],
'POLL_OPTION_RESULT' => $hide_vote_bl,
'POLL_OPTION_PERCENT' => $hide_vote_bl,
'POLL_OPTION_IMG' => $vote_graphic_img,
'POLL_OPTION_IMG_WIDTH' => $hide_vote_zr)
);
}
else
{
$poll_expires_c = '';
#
#-----[ FIND ]---------------------------------------------
#
'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length)
);
#
#-----[ AFTER, ADD ]---------------------------------------------
#
}
#
#-----[ FIND ]---------------------------------------------
#
$template->assign_vars(array(
'L_TOTAL_VOTES' => $lang['Total_votes'],
'TOTAL_VOTES' => $vote_results_sum)
#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ( ( $poll_expired == 0 ) && ( $vote_info[0]['vote_length'] <> 0 ) )
{
$poll_expire_1 = (( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] ) - time() );
$poll_expire_2 = intval($poll_expire_1/86400);
$poll_expire_a = $poll_expire_2*86400;
$poll_expire_3 = intval(($poll_expire_1 - ($poll_expire_a))/3600);
$poll_expire_b = $poll_expire_3*3600;
$poll_expire_4 = intval((($poll_expire_1 - ($poll_expire_a) - ($poll_expire_b)))/60);
$poll_comma = ', ';
$poll_space = ' ';
$poll_expire_2 == '0' ? $poll_expire_6='' : ( ( $poll_expire_3 == 0 && $poll_expire_4 == 0 ) ? $poll_expire_6=$poll_expire_2.$poll_space.$lang['Days'] : $poll_expire_6=$poll_expire_2.$poll_space.$lang['Days'].$poll_comma ) ;
$poll_expire_3 == '0' ? $poll_expire_7='' : ( $poll_expire_4 == 0 ? $poll_expire_7=$poll_expire_3.$poll_space.$lang['Hours'] : $poll_expire_7=$poll_expire_3.$poll_space.$lang['Hours'].$poll_comma ) ;
$poll_expire_4 == '0' ? $poll_expire_8='' : $poll_expire_8=$poll_expire_4.$poll_space.$lang['Minutes'] ;
$poll_expires_d = $lang['Poll_expires'];
}
else
{
$poll_expires_6 = '';
$poll_expires_7 = '';
$poll_expires_8 = '';
$poll_expires_d = '';
}
$voted_vote_nb = $voted_vote;
$template->assign_vars(array(
'VOTED_SHOW' => $lang['Voted_show'],
'L_TOTAL_VOTES' => $total_votes_1,
'L_RESULTS_AFTER' => $poll_expires_c,
'L_POLL_EXPIRES' => $poll_expires_d,
'POLL_EXPIRES' => ($poll_expire_6.$poll_expire_7.$poll_expire_8),
'TOTAL_VOTES' => $total_votes_2)
#
#-----[ FIND ]---------------------------------------------
#
'pollbox' => 'viewtopic_poll_ballot.tpl')
);
#
#-----[ AFTER, ADD ]---------------------------------------------
#
if ( $max_vote > 1 )
$vote_box = 'checkbox';
else $vote_box = 'radio';
#
#-----[ FIND ]---------------------------------------------
#
'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'],
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
'POLL_VOTE_BOX' => $vote_box,
#
#-----[ FIND ]---------------------------------------------
#
$s_hidden_fields = '<input type="hidden" name="topic_id" value="' . $topic_id . '" /><input type="hidden" name="mode" value="vote" />';
}
#
#-----[ AFTER, ADD ]---------------------------------------------
#
if ( $max_vote > 1 )
{
$vote_br = '<br>';
$max_vote_nb = $max_vote;
}
else
{
$vote_br = '';
$lang['Max_voting_1_explain'] = '';
$lang['Max_voting_2_explain'] = '';
$lang['Max_voting_3_explain'] = '';
$max_vote_nb = '';
}
#
#-----[ FIND ]---------------------------------------------
#
'POLL_QUESTION' => $vote_title,
#
#-----[ AFTER, ADD ]---------------------------------------------
#
'POLL_VOTE_BR' => $vote_br,
'MAX_VOTING_1_EXPLAIN' => $lang['Max_voting_1_explain'],
'MAX_VOTING_2_EXPLAIN' => $lang['Max_voting_2_explain'],
'MAX_VOTING_3_EXPLAIN' => $lang['Max_voting_3_explain'],
'max_vote' => $max_vote_nb,
'voted_vote' => $voted_vote_nb,
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]---------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
&$poll_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, &$max_vote, &$hide_vote, &$tothide_vote
#
#-----[ FIND ]---------------------------------------------
#
$poll_length = (isset($poll_length)) ? max(0, intval($poll_length)) : 0;
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$poll_length = (isset($poll_length)) ? max(0, ($poll_length+$poll_length_h/24)) : 0;
$$max_vote = (isset($max_vote)) ? max(0, intval($max_vote)) : 0;
$$hide_vote = (isset($hide_vote)) ? max(0, intval($hide_vote)) : 0;
$$tothide_vote = (isset($tothide_vote)) ? max(0, intval($tothide_vote)) : 0;
#
#-----[ FIND ]---------------------------------------------
#
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
&$poll_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, &$max_vote, &$hide_vote, &$tothide_vote
#
#-----[ FIND ]---------------------------------------------
#
$sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id";
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
vote_length
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, vote_max, vote_hide, vote_tothide
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$current_time, " . ($poll_length * 86400) . "
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, '$max_vote', '$hide_vote', '$tothide_vote'
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
vote_length = " . ($poll_length * 86400) . "
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------
#
, vote_max = '$max_vote', vote_hide = '$hide_vote', vote_tothide = '$tothide_vote'
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------
#
$lang['Total_votes'] = 'Total Votes';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$lang['Total_votes'] = 'Total Votes : ';
$lang['Voted_show'] = 'Voted : '; // it means : users that voted (the number of voters will follow)
$lang['Results_after'] = 'Results will be visible after the poll expires';
$lang['Poll_expires'] = 'Poll expires in : ';
$lang['Minutes'] = 'Minutes';
#
#-----[ FIND ]---------------------------------------------
#
$lang['Delete_poll'] = 'Delete Poll';
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$lang['Max_vote'] = 'Maximum selections';
$lang['Max_vote_explain'] = '[ Enter 1 or leave blank to allow only one selection ]';
$lang['Max_voting_1_explain'] = 'Please select only ';
$lang['Max_voting_2_explain'] = ' answers';
$lang['Max_voting_3_explain'] = ' (selections above limit will be ignored)';
$lang['Vhide'] = 'Hide';
$lang['Hide_vote'] = 'Results';
$lang['Tothide_vote'] = 'Sum of votes';
$lang['Hide_vote_explain'] = ' [ Hide until poll expires ]';
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/posting_poll_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
<tr>
<td class="row1"><span class="gen"><b>{L_POLL_OPTION}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="add_poll_option_text" size="50" maxlength="255" class="post" value="{ADD_POLL_OPTION}" /></span> <input type="submit" name="add_poll_option" value="{L_ADD_OPTION}" class="liteoption" /></td>
</tr>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<tr>
<td class="row1"><span class="gen"><b>{L_MAX_VOTE}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="max_vote" size="3" maxlength="3" class="post" value="{MAX_VOTE}" /></span> <span class="gen"><b>{L_OPTIONS}</b></span> <span class="gensmall">{L_MAX_VOTE_EXPLAIN}</span></td>
</tr>
#
#-----[ FIND ]---------------------------------------------
#
<td class="row2"><span class="genmed"><input type="text" name="poll_length" size="3" maxlength="3" class="post" value="{POLL_LENGTH}" /></span> <span class="gen"><b>{L_DAYS}</b></span> <span class="gensmall">{L_POLL_LENGTH_EXPLAIN}</span></td>
</tr>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
<td class="row2">
<span class="genmed"><input type="text" name="poll_length" size="3" maxlength="3" class="post" value="{POLL_LENGTH}" /></span> <span class="gen"><b>{L_DAYS}</b></span>
<span class="genmed"><input type="text" name="poll_length_h" size="3" maxlength="3" class="post" value="{POLL_LENGTH_H}" /></span> <span class="gen"><b>{L_HOURS}</b></span> <span class="gensmall">{L_POLL_LENGTH_EXPLAIN}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b>{L_VHIDE}</b></span></td>
<td class="row2"><input type="checkbox" name="hide_vote" {HIDE_VOTE} /> <span class="gen"><b>{L_HIDE_VOTE} </b>( </span><input type="checkbox" name="tothide_vote" {TOTHIDE_VOTE} /> <span class="gen"><b>{L_TOTHIDE_VOTE}</b> )</span> <span class="gensmall">{L_HIDE_VOTE_EXPLAIN}</span></td>
</tr>
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/viewtopic_poll_ballot.tpl
#
#-----[ FIND ]---------------------------------------------
#
<tr>
<td class="row2" colspan="2"><br clear="all" /><form method="POST" action="{S_POLL_ACTION}"><table cellspacing="0" cellpadding="4" border="0" align="center">
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<tr>
<td align="center"><span class="gen"><b><font color="#990000">{MAX_VOTING_1_EXPLAIN}{max_vote}{MAX_VOTING_2_EXPLAIN}</font></b>{POLL_VOTE_BR}<font size="-1" color="#CC9900">{MAX_VOTING_3_EXPLAIN}</font>{POLL_VOTE_BR}{POLL_VOTE_BR}</span></td>
</tr>
#
#-----[ FIND ]---------------------------------------------
#
<td><input type="radio" name="vote_id" value="{poll_option.POLL_OPTION_ID}" /> </td>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
<td><input type="{poll_option.POLL_VOTE_BOX}" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}" /> </td>
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/viewtopic_poll_result.tpl
#
#-----[ FIND ]---------------------------------------------
#
<tr>
<td colspan="4" align="center"><span class="gen"><b>{L_TOTAL_VOTES} : {TOTAL_VOTES}</b></span></td>
</tr>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
<tr>
<td colspan="4" align="center"><span class="gen"><b>{VOTED_SHOW}{voted_vote}</b></span></td>
</tr>
<tr>
<td colspan="4" align="center"><span class="gen"><b>{L_TOTAL_VOTES}{TOTAL_VOTES}</b></span></td>
</tr>
<tr>
<td colspan="4" align="center"><span class="gensmall">{L_RESULTS_AFTER}</span></td>
</tr>
<tr>
<td colspan="4" align="center"><span class="gensmall">{L_POLL_EXPIRES}{POLL_EXPIRES}</span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------------
#
# EoM
The End!