Add “alt” Attribute to GD Star Rating Tags

Add the attribute to each line of code that creates an img tag. In your text editor, search for lines that contain the string “<img”. Lines 241 and 273: $row->item_trend_rating = sprintf(‘<img class=”trend” src=”https://wordpress.stackexchange.com/questions/96226/%s” style=”https://wordpress.stackexchange.com/questions/96226/%s” width=”https://wordpress.stackexchange.com/questions/96226/%s” height=”https://wordpress.stackexchange.com/questions/96226/%s”></img>’, $gdsr->e, $image_bg, $set_rating->size, $set_rating->size); Becomes: $row->item_trend_rating = sprintf(‘<img class=”trend” src=”https://wordpress.stackexchange.com/questions/96226/%s” style=”https://wordpress.stackexchange.com/questions/96226/%s” width=”https://wordpress.stackexchange.com/questions/96226/%s” height=”https://wordpress.stackexchange.com/questions/96226/%s” alt=”https://wordpress.stackexchange.com/questions/96226/%s”></img>’, $gdsr->e, $image_bg, $set_rating->size, $set_rating->size, … Read more

How to integrate noimage picture in this code

Change this: else if ($widget[“image_from”] == “custom”) { $post_custom_id = get_post_meta($row->post_id, $widget[“image_custom”], true); $row->image = get_bloginfo(‘url’).”/scripts/timthumb.php?src=”https://wordpress.stackexchange.com/questions/106998/.get_bloginfo(“url’).”/wp-content/uploads/”.get_post_meta($post_custom_id,”_wp_attached_file”,true).”&amp;h=70&amp;w=55&amp;zc=1″; } To this: } else if ( ‘custom’ == $widget[‘image_from’] ) { $post_custom_id = get_post_meta( $row->post_id, $widget[‘image_custom’], true ); if ( get_post_meta( $post_custom_id, ‘_wp_attached_file’, true ) ) $row->image = get_bloginfo(‘url’) . ‘/scripts/timthumb.php?src=”https://wordpress.stackexchange.com/questions/106998/. get_bloginfo(“url’) . ‘/wp-content/uploads/’ . get_post_meta( $post_custom_id, ‘_wp_attached_file’, … Read more

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

The posts_where filters the ‘WHERE’ part of the SQL statement, and not the query string. So $where .= “&post_date > ‘”.date(‘Y-m-d H:i:s’, strtotime(‘-24 hours’)).”‘”; should be $where .= ” AND post_date > ‘”.date(‘Y-m-d H:i:s’, strtotime(‘-24 hours’)).”‘”; Also as this hook is fired for every query (admin and public side), you should use some logic to … Read more

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

i wrote this plugin a while back for a client and never got around to polishing it off for general release. https://github.com/dwenaus/bp-rate-vote-like-anything Myself and another developer plan to launch it soon. But even as it is now, it’s totally solid and very cleanly coded. I wrote it because GD Star Rating plugin was so bloated. … Read more

Thumb rating for wordpress – top user

there are varaiables in gd rating to sort query. you can use in URL like : http://www.gdstarrating.com/?gdsr_sort=rating&gdsr_order=desc http://www.gdstarrating.com/?gdsr_sort=review&gdsr_order=desc http://www.gdstarrating.com/category/tutorials/?gdsr_sort=votes&gdsr_order=asc or pass to a query query_posts(“gdsr_sort=rating”); query_posts(“gdsr_sort=review&sort_order=asc”); query_posts(“gdsr_sort=rating&gdsr_multi=3”); query_posts(“gdsr_sort=votes&sort_order=asc&gdsr_multi=3”); you can find more info here : http://www.gdstarrating.com/2009/07/03/how-to-reorder-posts/

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)