justfordevelope
Forum Replies Created
-
Forum: Plugins
In reply to: [GD Star Rating] Ajax call issueThis plugin is crap… This one is better kk Star Ratings
Forum: Plugins
In reply to: [GD Star Rating] Get rate stars on custom postsNow I have another problem. 🙁 Everything is good but when i’m trying to load more posts using ajax, method cache_posts in previously created method is not working -> there is no $gdsr->f it’s empty. Do I have to initialize plugin again? If yes can you tell me which method should i use because I can’t find it.
Thanks mate
Forum: Plugins
In reply to: [GD Star Rating] Get rate stars on custom postsHey just found the solution. I made new method for this, similar to method you send me just plus one more parameter…
function wp_gdsr_render_rate_stars_by_post($template_id = 0, $read_only = false, $stars_set = "", $stars_size = 0, $stars_set_ie6 = "", $echo = true, $my_post) { global $post, $userdata, $gdsr; $override = array("style" => $stars_set, "style_ie6" => $stars_set_ie6, "size" => $stars_size, "tpl" => $template_id, "read_only" => $read_only ? 1 : 0); $user_id = is_object($userdata) ? $userdata->ID : 0; $gdsr->cache_posts($user_id); if ($echo) echo $gdsr->f->render_article($my_post, $userdata, $override); else return $gdsr->f->render_article($my_post, $userdata, $override); }Resolved!
Forum: Plugins
In reply to: [GD Star Rating] Get rate stars on custom postsThanks for your answer but I forgot to say that I need some method where I can pass $post_id and get clickable star rating for those posts.
There is no jquery conflicts.
Thanks, I did it. For all others who need more help… function is miniAudioPlayer_player_head();