Plugin Mania
I’ve been installing and testing plugins all over to further customize the blog until I feel it’s up to par. Consider these the corporate sponsorships!
- Chris J. Davis’ Rate-It plugin - adds some sweetness and personality
- IImage Browser - an AWESOME way to manage image uploads for and Wordpress writer
- MonthChunks
- Customizable Comment Listings
- Super Archives - I can’t get it to fully work, but it is an AWESOME plugin. Waiting for the bugs to be ironed out here…
how can i download the rate-it plugin ?? i cant find any download link ..
Hit up Chris Davis’ site over at http://www.chrisjdavis.org/2005/05/14/cjd-rate-it/ then hit the wp-plugins link, you go to a page that has the cjd_rate_it.php link, basically copy the resulting code:
< ?php
/*
Plugin Name: Rate it!
Plugin URI: http://chrisjdavis.org/university/rate-it/
Version: 1.5.1
Description: A collection of functions that allow you to add a rating to each post.
Author: Chris J. Davis
Author URI: http://chrisjdavis.org
*/
if (! function_exists(’maybe_add_column’)) {
require_once(ABSPATH . ‘/wp-admin/upgrade-functions.php’); }
$cjd_table = $wpdb->posts;
$cjd_table_column = “post_rating”; $cjd_table_sql= “ALTER TABLE ” . $cjd_table . ” ADD COLUMN ” . $cjd_table_column . ” INT(11) DEFAULT ‘1′ NOT NULL”;
maybe_add_column($cjd_table, $cjd_table_column, $cjd_table_sql);
function current_rating($ID) {
global $wpdb, $post;
$post_rating = $wpdb->get_var(”SELECT post_rating FROM $wpdb->posts WHERE ID = ‘$ID’”);
$rating = $post_rating;
if ($rating < 50) {
echo "(";
echo $rating;
echo ")";
echo "
“;
} else {
echo “(”;
echo $rating;
echo “)”;
}
}
function rate_post($ID) {
global $wpdb, $post;
$ratings = $wpdb->get_var(”SELECT post_rating FROM $wpdb->posts WHERE ID = ‘$ID’”);
if ($ratings) {
$add = ($ratings + 1);
$return = $wpdb->query(”UPDATE $wpdb->posts SET post_rating = ‘$add’ WHERE ID=’$ID’”);
}
}
//Thanks to zedrdave and masquerade from #wordpress for their help in getting this done.
function rating_icon($ID) {
global $wpdb, $post;
$star = “★”;
$heart = “❤”;
$post_rating = $wpdb->get_var(”SELECT post_rating FROM $wpdb->posts WHERE ID = ‘$ID’”);
$rating = $post_rating;
if (($rating > 29) and ($rating < 49)) {
echo '‘;
//echo ‘‘;
echo $star;
//echo ““;
echo ”;
} else {
if ($rating > 49) {
echo ‘‘;
//echo ‘‘;
echo $heart;
//echo ““;
echo ‘‘;
} else {
if ($rating >= 29) {
echo “”;
}
}
}
}
function if_admin($ID) {
global $user_level;
get_currentuserinfo();
if ($user_level > 9) {
echo ‘ echo get_permalink($ID);
echo '">1/ echo get_permalink($ID);
echo '">30/ echo get_permalink($ID);
echo '">50‘;
} else {
echo “”;
}
}
function rate_admin() {
global $user_level;
get_currentuserinfo();
if ($user_level > 9) {
echo ‘ echo get_permalink();
echo '">1/ echo get_permalink();
echo '">30/ echo get_permalink();
echo '">50‘;
} else {
echo “”;
}
}
function admin_rate($num,$ID) {
global $wpdb, $post;
$ratings = $wpdb->get_var(”SELECT post_rating FROM $wpdb->posts WHERE ID = ‘$ID’”);
if ($ratings) {
$return = $wpdb->query(”UPDATE $wpdb->posts SET post_rating = ‘$num’ WHERE ID=’$ID’”);
}
}
?>
and put it into a file name “cjd-rate-it.php” then follow his instructions.
What I want to do on my blog, is every few hours take the oldest post and move it to the
front of the queue, all automatically. Anyone know if there is a plugin that can do this or
a simple way to set up another plugin to do this (use my own feed perhaps)?
Thanks.
I’m not sure, so you want a plugin that will repost or just search for the oldest posts and change the posted dates to the current date. Hmmm, using your RSS feed isn’t a bad idea, I would maybe look into that.