Poll Show Vote Mod 1.1 Normally a poll does not show you what you have voted for. This mod updates your YaBB 2 Board to show your vote via a star next the option you chose in a poll. To Install: ----------- - Install the mod file as usual. (See the BoardMod FAQ if you do not know how to do this). Version History: ---------------- Written by Peter Enzerink Version 1.0 - For each poll, show voter what they voted for Version 1.1 - Revised to accommodate multi option polls Peter Enzerink http://enzerink.net/peter/ Sources/Poll.pl ($voters_ip, $voters_name, $voters_vote, $vote_date) = split(/\|/, $tmpLine); @has_voted_for = split(/,/,$voters_vote); # only used if $has_voted > 0 # Display Poll Results $showvote = ""; foreach $one_vote (@has_voted_for) { if ($one_vote == $i) { $showvote = qq~ ~; last; } }
  $votes[$i] ($pollpercent%)
  $votes[$i] ($pollpercent%)$showvote
Admin/ModList.pl ### END BOARDMOD ANCHOR ### $poll_showvote_mod = "Poll Show Vote Mod|Peter Enzerink|Normally a poll does not show you what you have voted for. This mod updates your YaBB 2 Board to show your vote via a star next the option you chose in a poll.|1.1|04/05/05"; push (@installed_mods, "$poll_showvote_mod");