WordPress Plugins > WP-PostRatings
Tips & Tricks For WP-PostRatings
windwriters:
I have three questions about WP PostRatings
I have a widget on my site called Highest Rated. Is there a way to change the listing from 10 entries to 5 entries so that I have more room for another widget?
How can I remove static pages from the Highest Rated widget? There aren't even any ratings stars on these static pages. hmmm
I can click on the stars on a video post and the theme will remember what I clicked. But when I click on the stars for a blog post, the stars are not clickable. Does that sound like a WordPress problem, a theme problem, or is it a plugin problem? My guess is that it is a theme problem. If it is a theme problem, I can contact the theme developer.
Edward
RGT:
Hi, i use
WordPress 2.9.2
Theme Name: WP-CHATTER
Blog URL: http://www.todohit.com/
PostRatings 1.50
PHP 5.2.12
MYSQL 5.0.89-community-log
I do this:
To allow users to rate only once per day,
Open up postratings.php
Find:
Code:
$get_rated = $wpdb->get_var("SELECT rating_ip FROM $wpdb->ratings WHERE rating_postid = $post_id AND rating_ip = '".get_ipaddress()."'");Replace:
Code:
$get_rated = $wpdb->get_var("SELECT rating_ip FROM $wpdb->ratings WHERE rating_postid = $post_id AND rating_ip = '".get_ipaddress()."' AND AND rating_timestamp <= '".(current_time('timestamp')-86400)."'"");
Find:
Code:
$rate_cookie = setcookie("rated_".$post_id, $ratings_value[$rate-1], time() + 30000000, COOKIEPATH);Replace:
Code:
$rate_cookie = setcookie("rated_".$post_id, $ratings_value[$rate-1], time() + (24*60*60), COOKIEPATH);
I use that code, but I get an error when i run the web.
:'( :'( :'( :'( :'(
HorrorUK:
I'd like to be able to have the stars in the centre of a row, with two other things either side, but it always forces a line-break when I try to do that.
I tried the code shown in the first post on here:
<?php if(function_exists('the_ratings')) { the_ratings('span'); } ?>
That doesn't change anything though
Navigation
[0] Message Index
[*] Previous page
Go to full version