Hi There,
How can I add Questions,answers,and comments section on user profile as it is available on DW profile pages like http://designwall.com/profile/feirox/
However I have managed to add Activity and Questions section on profile page using below reference:
Please help/suggest.
Hi Harsh !
Please check again your site now. I can not access the site URL.
Hi Dominic,
Sorry for Inconvenience. There is some issue occurring from host side. That’s why you are not able to see the site. Will get back to you soon.
Thanks.
Right now ! I have checked your site, I think you have resolved the issue.
Hi Dominic,
Thanks A lot..
However I have created one more test site:
http://mediassist.site88.net/author/harsh-deshmukh/
As the previous site is up.. We can work upon below:
http://harsh031.0fees.net/author/wardhan033/
Actually I want to see Questions,answers,and comments section on user profile. Can You please help suggest how we can achieve. ???
Thanks in advance.
Regards,
Harsh
My requirement is as below:
If you see dw-Q&A users profile we can see as below :
harsh deshmukh
@harsh031
1
Questions
0
Answer
10
Comments
I want to add these fields to my website users profile as well.
Thanks.
Hi Dominic,
Can You please look into my issue.
Thanks.
Hi Harsh,
If you want to add the infomation of question count, answer count or comment count on your profile page: we have here three functions
– dwqa_user_question_count( $user_id )
– dwqa_user_answer_count( $user_id )
– dwqa_user_comment_count( $user_id )
These functions will help you.
About the activity logs of DWQA plugin, we will plan to create it and release it in future. So please stay tuned and support us.
Regards
Hi Rambu,
Thanks for the reply…:)
Regards,
Harsh
Hi Rambu,
I used above code as below.
$user_id = get_current_user_id();
$question_count = dwqa_user_question_count( $user_id );
$answer_count = dwqa_user_answer_count( $user_id );
$comment_count = dwqa_user_comment_count( $user_id );
echo “Question $question_count Answeres $answer_count Comments $comment_count”;
?>
output is coming correctly, but I am not able to find out where should I add this code to appear it correctly the way it is visible in DW-Q & A profile page.
Thanks in advance.
Hi,
I got it I did the changes in my theme members/single/members-header.php file.
Thanks .
Hi,
I got it I did the changes in my theme members/single/members-header.php file.
Thanks .
Modified Updated Script.
$question_count = dwqa_user_question_count( $user_id );
$answer_count = dwqa_user_answer_count( $user_id );
$comment_count = dwqa_user_comment_count( $user_id );
echo “Question $question_count Answeres $answer_count Comments $comment_count”;
?>
Please login or Register to submit your answer
replied 10 years ago
Hi,
Any one out there who can look into my issue.
Thanks in advance. 🙂