Apraksts
UpDownUpDown provides two template tags for adding up/down voting for any post or comment. Anonymous guest visitors can either be allowed to vote (tracked by ip address) or be denied voting and shown a view-only vote count badge. Votes are registered on the server without refreshing the page.
Fork the Github repo: https://github.com/davekonopka/updownupdown
This plugin was initially developed as a project of Wharton Research Data Services.
Ekrānuzņēmumi
Uzstādīšana
- Upload the folder containing the plugin to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place the following function calls in your templates, somewhere inside the post or comment loop:
<?php if(function_exists('up_down_post_votes')) { up_down_post_votes( get_the_ID() ); } ?>
<?php if(function_exists('up_down_comment_votes')) { up_down_comment_votes( get_comment_ID() ); } ?>
- Display vote badge display only with no voting by setting the second parameter to false:
<?php if(function_exists('up_down_post_votes')) { up_down_post_votes( get_the_ID(), false ); } ?>
<?php if(function_exists('up_down_comment_votes')) { up_down_comment_votes( get_comment_ID(), false ); } ?>
- Visit the plugin settings page to customize it.
Atsauksmes
Par šo spraudni nav atsauksmju.
Autori un izstrādātāji
“UpDownUpDown” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.
LīdzdalībniekiTulkot “UpDownUpDown” savā valodā.
Vai jūs interesē attīstība?
Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.
Izmaiņu žurnāls
1.1
- Release includes major contributions by Martin Scharm
- Added admin page
- Added option to allow guest-votes
- Added option to select from multiple styles, added simple styling
- Choose between up/down counts or a total count
- Fixed some XHTML errors
1.0.1
- Replaced JavaScript JSON.parse reference with jQuery.parseJSON to accommodate browsers without native JSON support. In IE7 votes were registering on the server but not updating in the browser without a refresh. Now it’s fixed in IE7.
1.0
- Initial release.