I’m getting mixed signals about this one:
I’ve read al questions regarding this issue and saw this question http://www.designwall.com/question/okay-pointscredits-feature-mycred-me-integration-is-on-the-way-what-is-the-next-feature-you-are-looking-for/
However, although I do see the options in myCRED to give points to questions and answers IT DOES NOT SEEM TO WORK (on a clean site with default theme).
I also read that for a small fee the integration will be done…
PLEASE:
What’s the official status of DWQA and myCRED working together.
Thanks in advance.
Kinds regards,
Tschai.
Here is the code to get point from myCred
<?php if(function_exists('mycred_get_users_cred')) echo '<span class="sep">⋅</span><span class="author-bugget">'.mycred_get_users_cred(get_the_author_meta('ID')).' $tone</span>'; ?>
If you want to put this point next to author name. Please copy template files from /dw-question-answer/inc/templates/default/ into //dwqa-templates/ then put that code into your template files .
Hope this help!
Hi, I also want to add this feature. Where will I place the code. Is it the fuction.php? thanks
2) To put this point next to author name… I dont get the steps. How many template files will I copy the code to? where is dwqa templates? and which of the template files? thank you.
@Odanye Oluwatobiloba : to add this feature, you can follow my instruction :
First : you need to open plugins/dw-question-answer/inc/templates/default/*.php
All that php file in there are the template of default dwqa. You copy the template there and go to your theme : themes/< YOUR THEME >/
.. create a folder name dwqa-templates
: you copy the template you need that will appear the credit there( Just copy all if you hard to select which file will be modify ) , it’ll override the default template in dwqa plugin. that’s why @Dom want you to copy the template.
Next: the next thing you need to do is add the plugin MyCred then active it. Set up it Then you go to Hooks
in Mycred
back-end menu go to section Point for publishing content
, and config for dw-question-answer. You can see this picture : 
For comments , go to section Point for comments below it.
After that each time a question is ask or get answer , there will be a log that record it in backend. And to show the Point of each user you can use the fuction of Mycred to get it :
MYCRED_GET_USERS_CRED
read more here : http://codex.mycred.me/category/functions/
E.g : If you want to display the point next to the author : go to file dwqa-templates/single-questions.php
about line 32
after printf()
add these code :
if(function_exists('mycred_get_users_cred')) echo '<span class="sep">⋅</span><span class="author-bugget">'.mycred_get_users_cred(get_the_author_meta('ID')).' $</span>';
Hope this help, glad
This is Not Working Now!!
Please let me know detail about your issue.
You can try with the following code:
<?php if(function_exists('mycred_get_users_cred')) { echo '<span class="sep">⋅</span><span class="author-bugget">'.mycred_get_users_cred(get_the_author_meta('ID')).' $tone</span>'; } ?>
Please login or Register to submit your answer