| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,42 @@ |
| 1 |
+// ---------------------------------------------------------------------- |
|
| 2 |
+// LICENSE |
|
| 3 |
+// |
|
| 4 |
+// This program is free software; you can redistribute it and/or |
|
| 5 |
+// modify it under the terms of the GNU General Public License (GPL) |
|
| 6 |
+// as published by the Free Software Foundation; either version 2 |
|
| 7 |
+// of the License, or (at your option) any later version. |
|
| 8 |
+// |
|
| 9 |
+// This program is distributed in the hope that it will be useful, |
|
| 10 |
+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
+// GNU General Public License for more details. |
|
| 13 |
+// |
|
| 14 |
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|
| 15 |
+// ---------------------------------------------------------------------- |
|
| 16 |
+ |
|
| 17 |
+Copyright 2006 by Tammy Keefer. |
|
| 18 |
+ |
|
| 19 |
+This block for eFiction 3.0 displays a one question poll. It is set up so that only members |
|
| 20 |
+can vote and they can only vote once. Visitors and members will see the current tally of |
|
| 21 |
+votes while members who haven't voted will see the question with a form to cast their vote. |
|
| 22 |
+The only thing to set in the admin panel is the question and the options. Enter the options |
|
| 23 |
+one per line in the text box. Because of tinyMCE, <p> tags will get stripped from the options. |
|
| 24 |
+All other allowable tags from your site's config settings will be honored. You'll have to |
|
| 25 |
+use <br> tags instead if you want a multi-line option. Sorry. :( |
|
| 26 |
+ |
|
| 27 |
+The bar graphic is 12 pixels high by 1 pixel wide. There's a folder with a few alternatives |
|
| 28 |
+included. If you want to change the color of the bar for a single skin include the following |
|
| 29 |
+in the skin's variables.php file. |
|
| 30 |
+ |
|
| 31 |
+$blocks['poll']['bar'] = $skindir."/images/BARIMAGE.JPG"; |
|
| 32 |
+ |
|
| 33 |
+Replacing BARIMAGE.JPG with the name of your image. If you want to style the bar images (adding |
|
| 34 |
+a 1px solid border looks nice) use the .poll class. The poll question is inside a <div> with the |
|
| 35 |
+id of poll_question. So you can style that with #poll_question. There are a number of alternative |
|
| 36 |
+bars in the bars folder. |
|
| 37 |
+ |
|
| 38 |
+You can only have one poll active at a time. When you close a poll the votes for that poll are |
|
| 39 |
+deleted and the total results stored with the poll question. I did it this way to keep the |
|
| 40 |
+database from growing. The votes table will then be emptied for use in the next poll. If |
|
| 41 |
+no poll is going on the block will display "There is no poll currently active." |
|
| 42 |
+ |