Articles of plugin gd star rating

How to integrate noimage picture in this code

How can i integrate a image if there is no attached image? I’m using this code with success to integrate no-image picture if is no picture is attached to post. <?php if ( ! $img = get_field(‘img_actor’, $post_object->ID ) ) $img = ‘/wp-content/uploads/noimage1.jpg’; ?> <img class=”actor_img” src=”/scripts/timthumb.php?src=<?php echo urlencode($img); ?>&h=70&w=50&zc=1″ Ok for this, but how […]

Has anyone effectively integrated GD star rating and Cube Points?

Has anyone effectively integrated GD star rating and Cube Points? From the documentation: Plugin Integration CubePoints can also be easily integrated with other plugins. Other plugins can be coded such that certain actions trigger the cp_alterPoints() function to add or subtract points from a specified user. Function cp_alterPoints( int $uid, int $points ) Parameters int […]

Get Posts from Last 24 hours and Sort them via GD Star Rating

I am trying to sort the posts using GD Star Rating in the last 24 hours. I have two separate queries, but I don’t know how to merge them. function filter_where($where = ”) { //posts in the last 24 Hours $where .= “AND post_date > ‘” . date(‘Y-m-d H:i:s’, strtotime(‘-24 hours’)) . “‘”; return $where; […]

add GD Star Rating's to buddypress comments

I am trying to add GD Star Rating’s to wordpress comments but struggling to add them to the comment form There is an explanation here but the code snippet is corrupted - The code I need to add to the comment form is wp_gdsr_comment_integrate_standard_rating Does anyone have any ideas on how this would be added […]

Thumb rating for wordpress – top user

I am currently using gd star rating (thumb rating) to rate posts (articles – no rating on comments). What I really want to do is show a table of the top 5 users and their number of votes based on the total number of thumbs up they receive for all their posts. For instance | […]

Override GD star rating IP based restrictions

Anyone know if its possible to prevent GD star rating from logging the IP address of a user’s machine? I realise this is intended to stop people rating more than once but it prevents people from being able to rate if they are behind a proxy. A couple of thoughts which come to mind: override […]

Advice for a voting / multiple rating plugin for post types other than GD Star Rating

I would like to let users of one of my WP projects to cast votes on certain post types; the type of votes cast should differ slightly according to post type. For example for one post type they might vote for things like “money value”, “quality”, “comfort” (imagine a hotel…) for other things they might […]

Why is that gdsr_sort=thumbs (GD start rating plugin) only works with query_posts and not with WP_Query?

This correctly sort posts by thumbs vote (GD star rating plugin): <?php query_posts(‘gdsr_sort=thumbs&post_type=bbp_reply&posts_per_page=2&post_parent=’.$post->ID); ?> <?php while ( have_posts() ) : the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <?php endwhile; ?> <?php wp_reset_query(); ?> But this doesn’t sort them at all: <?php $custom_posts = new WP_Query(); ?> <?php $custom_posts->query(‘gdsr_sort=thumbs&post_type=bbp_reply&posts_per_page=2&post_parent=’.$post->ID); ?> <?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); […]