{"id":35303,"date":"2015-03-25T13:55:13","date_gmt":"2015-03-25T13:55:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-voting\/"},"modified":"2015-04-04T20:34:52","modified_gmt":"2015-04-04T20:34:52","slug":"simple-voting","status":"publish","type":"plugin","link":"https:\/\/kn.wordpress.org\/plugins\/simple-voting\/","author":14344096,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"4.1.42","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Simple voting","header_author":"Seoringer","header_description":"","assets_banners_color":"fba612","last_updated":"2015-04-04 20:34:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/seoringer.com\/","header_plugin_uri":"http:\/\/seoringer.com\/simple-voting-plugin-for-wordpress\/","header_author_uri":"http:\/\/seoringer.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2474,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1120453","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1120453","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1120653","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1120653","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1127935","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1127935","resolution":"2","location":"assets"}},"screenshots":{"1":"Voting form.","2":"Voting result."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2295,11300],"plugin_category":[53],"plugin_contributors":[91659],"plugin_business_model":[],"class_list":["post-35303","plugin","type-plugin","status-publish","hentry","plugin_tags-rating","plugin_tags-voting","plugin_category-ratings-and-reviews","plugin_contributors-seoringer","plugin_committers-seoringer"],"banners":{"banner":"https:\/\/ps.w.org\/simple-voting\/assets\/banner-772x250.png?rev=1120653","banner_2x":"https:\/\/ps.w.org\/simple-voting\/assets\/banner-1544x500.png?rev=1120653","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/simple-voting\/assets\/icon-128x128.png?rev=1120453","icon_2x":"https:\/\/ps.w.org\/simple-voting\/assets\/icon-256x256.png?rev=1120453","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-voting\/assets\/screenshot-1.png?rev=1127935","caption":"Voting form."},{"src":"https:\/\/ps.w.org\/simple-voting\/assets\/screenshot-2.png?rev=1127935","caption":"Voting result."}],"raw_content":"<!--section=description-->\n<p>You can see a demo examples at <a href=\"http:\/\/seoringer.com\/simple-voting-plugin-for-wordpress\/\" title=\"simple voting plugin for WordPress\">Seoringer.com<\/a>.<\/p>\n\n<p>Any questions and bug reports are welcomed at seoringer@gmail.com<\/p>\n\n<p>This plugin can understand two shortcodes:<\/p>\n\n<ul>\n<li><strong>[voting]<\/strong><\/li>\n<li><strong>[voted]<\/strong><\/li>\n<\/ul>\n\n<p><br \/>\nLet's look at the variants of their usage.<\/p>\n\n<ol>\n<li><strong>Simplest (and most popular) using<\/strong>\n<br \/>\n<br \/>Just insert in your article or page this simple shortcode:\n<br \/><strong>[voting]<\/strong>\n<br \/>\n<br \/>This shortcode will be replaced with a voting form, which allow your visitors to rate current article or page.\nWhen one of the voting buttons pressed, this form will disappear, and current article rating will be shown instead.\n<br \/>\n<br \/>You can also use another shortcode:\n<br \/><strong>[voted]<\/strong>\n<br \/>This shortcode will just show the current article rating.\n<br \/>\n<br \/>If you have administrative privileges, then, while browsing through your articles, you will see near each\nvoting form the button with a title <strong>'You are admin. Check answers'<\/strong>. This button will allow\nadmins to see the detailed list of all votes for this subject.\n<br \/>\n<br \/>That's all you need to know about simplest way of using the Simple Voting plugin.\n<br \/>\n<br \/><\/li>\n<li><strong>Voting for arbitrary subjects<\/strong>\n<br \/>\n<br \/>If you want to allow your visitors to vote for an arbitrary subject, you must use more complex shortcode\nconstruction, like this:\n<br \/><strong>[voting] Arbitrary subject name [\/voting]<\/strong>\n<br \/>\n<br \/>Such block of code could be placed in any article, and will rate the <strong>'Arbitrary subject name'<\/strong>.\n<br \/>To show the rating of the <strong>'Arbitrary subject name'<\/strong>, use following shortcode:\n<br \/><strong>[voted] Arbitrary subject name [\/voted]<\/strong>\n<br \/>\n<br \/><\/li>\n<li><strong>Voting with redirection (for experienced webmasters)<\/strong>\n<br \/>\n<br \/>Immediately after voting, visitor (and information about his vote) could be sent to another web page - \njust include desired URL somewhere in the subject's name.\n<br \/>\n<br \/>Let's imagine, that after voting, you want to send visitor to the URL http:\/\/somesite.com\/somepage.php\n<br \/>To do so, you must write something like this:\n<br \/>\n<br \/><strong>[voting] Subject name http:\/\/somesite.com\/somepage.php [\/voting]<\/strong>\n<br \/>\n<br \/>Or something like this:\n<br \/>\n<br \/><strong>[voting]\n<br \/>Another\n<br \/>http:\/\/somesite.com\/somepage.php\n<br \/>subject\n<br \/>[\/voting]<\/strong>\n<br \/>\n<br \/>Or just that:\n<br \/>\n<br \/><strong>[voting] http:\/\/somesite.com\/somepage.php [\/voting]<\/strong>\n<br \/>\n<br \/>Note that although in all these examples I used same URL (http:\/\/somesite.com\/somepage.php),  they are\nDIFFERENT voting subjects, because texts inside shortcode tags are different.\n<br \/>\n<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\ninstead of <strong>[voting]<\/strong> one. Like this:\n<br \/>\n<br \/><strong>[voted] Subject name http:\/\/somesite.com\/somepage.php [\/voted]<\/strong>\n<br \/>\n<br \/><strong>[voted]\n<br \/>Another\n<br \/>http:\/\/somesite.com\/somepage.php\n<br \/>subject\n<br \/>[\/voted]<\/strong>\n<br \/>\n<br \/><strong>[voted] http:\/\/somesite.com\/somepage.php [\/voted]<\/strong>\n<br \/>\n<br \/>After voting on any of these subjects, user will be sent to the given web page\n(in our examples http:\/\/somesite.com\/somepage.php). To this page also will be POSTed data, containing\nfollowing information about voting subject:<\/li>\n<\/ol>\n\n<ul>\n<li><strong>sv_vote<\/strong>: user's vote (from 1 to 10)<\/li>\n<li><strong>sv_textID<\/strong>: unique subject identifier, which consists of three letters and numeric ID.<\/li>\n<li><strong>svUserName<\/strong>: user name<\/li>\n<li><strong>svUserEmail<\/strong>: user's Email<\/li>\n<li><strong>svUserComment<\/strong>: user's comment<\/li>\n<li><strong>sv_nonce<\/strong>: one time security code, generated by the function: wp_create_nonce( 'simple-voting' ).<\/li>\n<\/ul>\n\n<p><br \/>\n4. <strong>Database tables<\/strong>\n<br \/>\n<br \/>Simple voting plugin stores all information just in two database tables:\n<br \/><strong>\n<br \/>{db_prefix}simple_voting_subjects\n<br \/>{db_prefix}simple_voting_votes\n<br \/><\/strong>\n<br \/>\n<br \/>That's all. Fill free to to ask any questions: seoringer@gmail.com<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload <code>simple-voting<\/code> plugin to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>[voting]<\/code> shortcode in your article or page (for more details see Description)<\/li>\n<\/ol>","raw_excerpt":"You can see a demo examples at [Seoringer.com](http:\/\/seoringer.com\/simple-voting-plugin-for-wordpress\/ &quot;simple voting plugin for WordPress&quot; &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35303"}],"author":[{"embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/seoringer"}],"wp:attachment":[{"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35303"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35303"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35303"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35303"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35303"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}