Half Assed
asked 9 years ago

Is it possible to list all the questions that a user had asked like if you click on a username on this site (the user profile page)? If it’s not possible because of closed modification it’s no problem! Thank you in advance.

muhammad hussain
replied 8 years ago

one thing want to ask please tell me witch plugin you are using this social share button like facebook, google,twitter,linked,tumblr and embed code

muhammad hussain
replied 8 years ago

also please tell me witch plugin use for Login for a Ask question and Register use this site

5 Answers
Kido D
answered 9 years ago

We don’t have this feature at the moment.
Will add it in the next updated versions of DW Q&A. Stay tuned!
 
Kind regards.

Half Assed
replied 9 years ago

Thank you very much for the answer! No problem! Keep up the great work and I can’t wait for future release of this awesome plugin! ūüėÄ

Kido D
answered 9 years ago

Hi Half Assed,
 
Currently, we are using BuddyPress plugin for member management and we integrated that plugin to DW Q&A to show the questions list and activity pages for members. Of course, I can show you how we did it, please follow instruction steps below:
 
Step 1: Install BuddyPress plugin.

Step 2:¬†Go to your theme folder (wp-content/themes/[theme-name]), and create a new folder, named it “buddypress”.¬†Inside your new folder, create a new file: “bp-custom.php”.¬†
 
Now, open up the new file in notepad or any code editor, and copy/paste the code at this link : http://snippi.com/s/rqwxbkq
 
Note: Please change ‘dw_simplex’ & ‘dw-simplex’ to your theme name

Step 3: Open the function file of your theme (wp-content/themes/[theme-name]/functions.php), and add this code in (somewhere at top of the file):

 include_once get_template_directory().'/buddypress/bp-custom.php';

Final step: Save the files and go to your profile page to see list of all questions on the new Questions tab.
 
Hope that helps!

Half Assed
replied 9 years ago

Hello Kido D, Thanks for your answer! Unfortunately I have no intention of using BuddyPress. Is there still a way to display this in regular WordPress? Thanks again!

Leo Diz
answered 9 years ago

I’m looking for same solution and got some partial solution.
Detail: I’m testing it with Twenty Twelve theme, I don’t know if it will work in all themes.
1) Copy/ Duplicate the file inc/template/archive-questions.php
2) Rename it to author.php
3) Remove (or comment) the function 

 do_action('dwqa-prepare-archive-posts')

It is on line #13 on version 1.0.4
4) Add the following php code instead:

 global $wp_query;
if( $wp_query->query_vars['post_type'] != 'dwqa-question' ) {
$query = array(
'post_type' => 'dwqa-question',
'posts_per_page' => $wp_query->query_vars['posts_per_page'],
'author_name' => $wp_query->query_vars['author_name']
);
query_posts( $query );
}

It must be before

 if ( have_posts() )

5) Save the file and upload it to the root of your theme. Probably you would want to backup your current author.php file before upload this new one if it exists.
6) That is it! You don’t need to change any line on plugin.
IMPORTANT! It willl work ALMOST fine! Filters will not work – any one. I’m trying to solve this, if I do not get it I will just remove the filter options from interface.
It will overwrite your Author page. If you want to keep it, you have to put this into another file.
Sorry my english.

Jin
replied 9 years ago

Wow, thanks for the solution Leo.
Do you mind if we post it to our project in Github?

Leo Diz
replied 8 years ago

Sorry for my late answer; Sure you can post it!

Dom Amor
answered 9 years ago

I could not get this work. Should your code be wrapped or something. What do I know really. However I’m very good at breaking things..¬†

Dom Amor
answered 9 years ago

what is it that you use on this site ? to show user activity and stuff ? This would be the icing on the cake.

Dom Amor
replied 9 years ago

Forget I even asked. Sometimes I just read to fast.. sorry.

Kido D
answered 9 years ago

Hi Dom,
As you can see in my above answer to Half Assed’s question, we are using BuddyPress plugin for member management & activities
http://cmspioneer.com/designwall/question/question-list-for-user/#answer-16407

Powered by DW Question & Answer Pro