https://github.com/matthewcallis/bvote
Simplest WordPress Digg-esque voting plugin.
https://github.com/matthewcallis/bvote
php vote wordpress wordpress-plugin
Last synced: 2 months ago
JSON representation
Simplest WordPress Digg-esque voting plugin.
- Host: GitHub
- URL: https://github.com/matthewcallis/bvote
- Owner: MatthewCallis
- Created: 2013-08-19T17:49:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-21T22:20:41.000Z (over 11 years ago)
- Last Synced: 2025-01-05T23:41:26.935Z (4 months ago)
- Topics: php, vote, wordpress, wordpress-plugin
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bvote
Simple Digg style WordPress voting plugin. Easy to use, easy to hack, easy to custimize.
## Useage
### Simple Usage
In a single post, in a loop on the homepage, etc.```php
```
### Top 5 List
```php
get_results("SELECT id, post_title FROM $wpdb->posts, $wpdb->postmeta WHERE meta_key = 'bvote_score' AND id = post_id AND post_status = 'publish' ORDER BY meta_value DESC LIMIT 0,5");
foreach($popular_posts as $post) {
echo "- ".$post->post_title."
\n";
}
?>
```