harsh deshmukh
asked 8 years ago

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:

Profile page

Please  help/suggest.

harsh deshmukh
replied 8 years ago

Hi,

Any one out there who can look into my issue.

Thanks in advance. 🙂

5 Answers
DominicStaff
answered 8 years ago

Hi Harsh !
Please check again your site now. I can not access the site URL.

harsh deshmukh
replied 8 years ago

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.

Dominic Staff
replied 8 years ago

Right now ! I have checked your site, I think you have resolved the issue.

harsh deshmukh
replied 8 years ago

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

harsh deshmukh
replied 8 years ago

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.

harsh deshmukh
answered 8 years ago

Hi Dominic,
 
Can You please look into my issue.
 
Thanks.

BigHug
answered 8 years ago

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

harsh deshmukh
replied 8 years ago

Hi Rambu,

Thanks for the reply…:)

Regards,
Harsh

harsh deshmukh
replied 8 years ago

Hi Rambu,

I used above code as below.

< ?php
$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.

harsh deshmukh
answered 8 years ago

Hi,
 
I got it I did the changes in my theme members/single/members-header.php file.
 
Thanks .

harsh deshmukh
answered 8 years ago

Hi,
 
I got it I did the changes in my theme members/single/members-header.php file.
 
Thanks .

harsh deshmukh
replied 8 years ago

Modified Updated Script.

< ?php
$user_id = bp_displayed_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”;
?>
Powered by DW Question & Answer Pro