dkraken
asked 6 years ago

I am running BuddyPress and DWQA for a while now, but when someone asks, comments or answers a question using DWQA the person’s link shows this (https://www.example.com/?user=username) and it displays all the questions the person has asked. How can I make it link to the BuddyPress Profile (https://www.example.com/username)? Please find a solution to this.

1 Answers
DominicStaff
answered 6 years ago

Yes, If you want to change the profile link URL to the BuddyPress profile, you need to custom the templates file of DWQA plugin. To resolve this issue, you can go to the wp-content/themes/your-theme, create a new folder named “dwqa-templates”. Navigate to the /wp-content/plugins/dw-question-answer/templates, select the content-question.php, conten-single-answer.php, content-single-questionquestion.php, content-comment.php files then paste this files into /wp-content/themes/your-theme/dwqa-template folder and open the files find the following code:
dwqa_get_author_link( $user_id )
And replace with new code:
bp_core_get_user_domain( $user_id )
If you still face their issue, you can send me username & password of your site, I will help you resolve it.

dkraken
replied 6 years ago

OK, it worked. sorry for the delay in response, I didn’t get a notification on the update.

agentlewis
replied 5 years ago

@Dominic I have looked to do the same fix overriding the files with a child theme. It looks like the file paths have changed. Can you provide an updated answer 🙂

Dominic Staff
replied 5 years ago

At the moment, the pro version has allowed add or override the styles, and we have included 3 styles for the DW Q&A (default, flat, helpdesk).
If you want to override the style, you can create the following path: dwqa-templates/styles/default, flat or helpdesk

If you want to create a new style, you can create the new folder with the name that you wish.
To select the style, you can go to the Dashboard > Questions > Settings.

Powered by DW Question & Answer Pro