Over here we are given $tone for supplying comments, how can i do the same for my own Forum?
install mycred plugin 🙂
You can use many plugins systems. Such as the myCred plugin mentioned by Well wisher. There is also https://wordpress.org/plugins/cubepoints/ but you need to first understand or describe what you actually need to figure out whats best for you!
Hi Guru/Well wisher
Does these plugins are compatible with DWQa..?? Does it work in same way we see the points in Desingwall profile..?
Regards,
harsh
Pretty much compatible moreover my cred is the plugin designwall team is currently working on to integrate completely !!!
Thank you very much Well wisher. But how will I be able to display the top scorers and their score and other categories beside the forum? Just as it is done on DW.
the plugin provides widgets for the same which you may find in your widgets section once you have installed mycred
Dear wellwisher, have you tried to integrate the mycred system on your end like the DW team have done so far? If you please share the details with us to follow.
We are using those codes to intergrade MyCred Point with DW Question & Answer plugin. You can put this into functions.php file of your theme.
// Question function yourtheme_question_point( $post_id ) { $post = get_post($post_id); if(($post->post_status != 'publish') && ($post->post_status != 'private')) return; $user_id = get_current_user_id(); if(function_exists('mycred_add')) { if($post->post_status == 'private') { mycred_add( 'new_question', $user_id, '-20', '%plural% for Ask a Question', $post_id, array( 'ref_type' => 'post' ) ); } else { mycred_add( 'new_question', $user_id, '-10', '%plural% for Ask a Question', $post_id, array( 'ref_type' => 'post' ) ); } } } add_action( 'dwqa_add_question', 'yourtheme_question_point'); //Answer function yourtheme_answer_point( $post_id ) { $post = get_post($post_id); if($post->post_status != 'publish') return; $user_id = $post->post_author; if(function_exists('mycred_add')) mycred_add( 'new_answer', $user_id, '20', '%plural% for Answer a Question', $post_id, array( 'ref_type' => 'post' ) ); } add_action( 'dwqa_add_answer', 'yourtheme_answer_point'); //Comment function yourtheme_comment_point( $comment_id ) { $comment = get_comment($comment_id); $user_id = get_current_user_id(); $post_id = $comment->comment_post_ID; if(function_exists('mycred_add')) mycred_add( 'new_comment', $user_id, '10', '%plural% for a Comment', $post_id, array( 'ref_type' => 'comment' ) ); } add_action( 'dwqa_add_comment', 'yourtheme_comment_point');
Hope this helps,
Jackie
Hi Jackie,
Thanks for sharing. What code are you using to display the widget leaderboard?
I will sharing later
but if someone gives points to a user (I mean for example click on +1 near an answer or a question) then how can we change the myCRED’s points?
I hope you understand what I mean! because I don’t know English well 😐
Please login or Register to submit your answer