Changeset 1126495
- Timestamp:
- 04/02/2015 05:24:12 PM (11 years ago)
- Location:
- simple-voting/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (6 diffs)
-
core/css/voting-_-simple-voting.css (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-voting/trunk/README.txt
r1120641 r1126495 12 12 13 13 == Description == 14 15 Plugin has a Russian translation. 16 You can see a demo examples at [Seoringer.com](http://seoringer.com/simple-voting-plugin-for-wordpress/ "simple voting plugin for WordPress"). 14 17 15 18 This plugin can understand two shortcodes: … … 33 36 <br>This shortcode will just show the current article rating. 34 37 <br> 35 <br>If you have administrative privileges, then, while browsing through your articles, near each36 voting form you will seethe button with a title <strong>'You are admin. Check answers'</strong>. This button will allow37 admins to see the list of all votes for this subject.38 <br>If you have administrative privileges, then, while browsing through your articles, you will see near each 39 voting form the button with a title <strong>'You are admin. Check answers'</strong>. This button will allow 40 admins to see the detailed list of all votes for this subject. 38 41 <br> 39 <br>That's all you need to know about simplest using ofthe Simple Voting plugin.42 <br>That's all you need to know about simplest way of using the Simple Voting plugin. 40 43 <br> 41 44 <br> … … 46 49 <br><strong>[voting] Arbitrary subject name [/voting]</strong> 47 50 <br> 48 <br>Such block of code could be placed in any article, and will rate the same<strong>'Arbitrary subject name'</strong>.51 <br>Such block of code could be placed in any article, and will rate the <strong>'Arbitrary subject name'</strong>. 49 52 <br>To show the rating of the <strong>'Arbitrary subject name'</strong>, use following shortcode: 50 53 <br><strong>[voted] Arbitrary subject name [/voted]</strong> … … 53 56 3. <strong>Voting with redirection (for experienced webmasters)</strong> 54 57 <br> 55 <br>Immediately after voting, visitor (and information about his vote) could be sent to another web page .56 Just include desired URL somewhere in the subjectname.58 <br>Immediately after voting, visitor (and information about his vote) could be sent to another web page - 59 just include desired URL somewhere in the subject's name. 57 60 <br> 58 61 <br>Let's imagine, that after voting, you want to send visitor to the URL http://somesite.com/somepage.php 59 62 <br>To do so, you must write something like this: 60 63 <br> 61 <br><strong>[voting] http://somesite.com/somepage.php Subject name[/voting]</strong>64 <br><strong>[voting] Subject name http://somesite.com/somepage.php [/voting]</strong> 62 65 <br> 63 66 <br>Or something like this: … … 65 68 <br><strong>[voting] 66 69 <br>Another 70 <br>http://somesite.com/somepage.php 67 71 <br>subject 68 <br>http://somesite.com/somepage.php69 72 <br>[/voting]</strong> 70 73 <br> … … 76 79 DIFFERENT voting subjects, because texts inside shortcode tags are different. 77 80 <br> 78 <br> To show therating of the subjects from above examples, you must use <strong>[voted]</strong> shortcode81 <br>If, on some pages, you want to show just a rating of the subjects from above examples, you must use <strong>[voted]</strong> shortcode 79 82 instead of <strong>[voting]</strong> one. Like this: 80 83 <br> 81 <br><strong>[voted] http://somesite.com/somepage.php Subject name[/voted]</strong>84 <br><strong>[voted] Subject name http://somesite.com/somepage.php [/voted]</strong> 82 85 <br> 83 86 <br><strong>[voted] 84 87 <br>Another 88 <br>http://somesite.com/somepage.php 85 89 <br>subject 86 <br>http://somesite.com/somepage.php87 90 <br>[/voted]</strong> 88 91 <br> -
simple-voting/trunk/core/css/voting-_-simple-voting.css
r1120453 r1126495 13 13 margin-right: auto; 14 14 width: 350px; 15 }16 17 .text-input-_-simple-voting {18 width: 330px;19 15 } 20 16 21 .user-comment-_-simple-voting { height: 70px; } 17 .voting-area-_-simple-voting:after { 18 content: '\A'; 19 white-space: pre; 20 } 22 21 23 label.text-label-_-simple-voting { width: 330px; font-weight: bold; text-align: left; padding: 3px; } 24 .mandatory { color: red; text-weigth: bold; } 22 .user-data-_-simple-voting .text-input-_-simple-voting { width: 100%; } 25 23 26 .text-label-alarm-_-simple-voting { 24 .user-data-_-simple-voting .user-comment-_-simple-voting { height: 70px; } 25 26 .user-data-_-simple-voting label.text-label-_-simple-voting { width: 100%; font-weight: bold; text-align: left; padding: 3px; } 27 28 .user-data-_-simple-voting .mandatory { color: red; text-weigth: bold; } 29 30 .user-data-_-simple-voting .text-label-alarm-_-simple-voting { 27 31 outline: none !important; 28 32 border:2px solid red; … … 31 35 32 36 /* Voting Numbers */ 33 .voting-area-_-simple-voting span.voting-element-_-simple-voting { display: inline-block; }34 .voting-area-_-simple-voting span.voting-element-_-simple-voting a { border: 1px solid yellow; color: black; display: inline-block; font-size: 14px; padding: 4px 10px; text-decoration: none; }37 .voting-area-_-simple-voting span.voting-element-_-simple-voting { display: inline-block; float: left; width: 10%; } 38 .voting-area-_-simple-voting span.voting-element-_-simple-voting a { border: 1px solid yellow; color: black; display: inline-block; font-size: 14px; line-height: 2; width: 100%; text-decoration: none; } 35 39 .voting-area-_-simple-voting span.voting-element-_-simple-voting a:hover { border: 1px solid blue; color: white; text-decoration: none; } 36 40 … … 40 44 41 45 /* Voting buttons gradient */ 42 span.voting-element-_-simple-voting {46 .voting-area-_-simple-voting span.voting-element-_-simple-voting { 43 47 /* Followig 8 lines got from the http://www.colorzilla.com/gradient-editor/ */ 44 48 background: #f9e43e; /* Old browsers */ … … 67 71 68 72 /* Result gradient 1 */ 69 .voting- result-worst-_-simple-voting {73 .voting-area-_-simple-voting .voting-result-worst-_-simple-voting { 70 74 background: #ED5A5A; 71 75 } 72 76 /* Result gradient 2 */ 73 .voting- result-bad-_-simple-voting {77 .voting-area-_-simple-voting .voting-result-bad-_-simple-voting { 74 78 /* Followig 8 lines got from the http://www.colorzilla.com/gradient-editor/ */ 75 79 background: #8bf26f; /* Old browsers */ … … 83 87 } 84 88 /* Result gradient 3 */ 85 .voting- result-average-_-simple-voting {89 .voting-area-_-simple-voting .voting-result-average-_-simple-voting { 86 90 /* Followig 8 lines got from the http://www.colorzilla.com/gradient-editor/ */ 87 91 background: #8bf26f; /* Old browsers */ … … 95 99 } 96 100 /* Result gradient 4 */ 97 .voting- result-good-_-simple-voting {101 .voting-area-_-simple-voting .voting-result-good-_-simple-voting { 98 102 /* Followig 8 lines got from the http://www.colorzilla.com/gradient-editor/ */ 99 103 background: #8bf26f; /* Old browsers */ … … 107 111 } 108 112 /* Result gradient 5 */ 109 .voting- result-best-_-simple-voting { background: #8BF26F; /* Old browsers */113 .voting-area-_-simple-voting .voting-result-best-_-simple-voting { background: #8BF26F; /* Old browsers */ 110 114 }
Note: See TracChangeset
for help on using the changeset viewer.