today when i signed in to my wordpress dashboard, a message came up. "DWQA needs to updated the database" I did that, then dwqa widgets disappeared and also buddypresss integration lost, no more dwqa widgets are shown in the widget area and also no more question tab is shown in buddy press profile.
Hi,
At the moment, we have disabled temporary all the widget of DW Q&A to checking and update the Q&A plugin. We will update the Widget section in the next week. Hope you understand what I mean.
Regards,
Thank you so much Domnic for the reply. What about the buddy press integration? will it be restored?
@Dr Adil Ramzan : hi , due to DWQA update to version 1.3.5, the criteria to active the integration with buddypress has been changed, so to solve that problem , you need to change the first line in bp-custom.php to :
if ( class_exists('DW_Question_Answer') && function_exists('bp_is_active')) {
And in your situation of your theme, and child theme , you need to open your child theme functions.php
file and go to line 61
and then change the code to :
include_once get_stylesheet_directory().'/buddypress/bp-custom.php';
I fixed it for you then. Glad
Thank you so very much, Allen, i can see my problem is solved now, but i have another problem, the problem is when is when i click on the user name of the person who had asked the question, it redirects to homepage instead of buddypress profile, is it there a way to redirect to the user’s buddypress profile when you click on the user’s name at single question page. ?
@Dr Adil RamZan : hi , at this time , when you click to the name of user , normally, i’ll redirect to the author page, not the profile page. So, to fix this problem, we should fix some code to get the redirect link to the profile page:
_ File : Base.php
– Line 197, change it to :
if ( function_exists('bp_is_active') ) {
global $bp;
$author_url = bp_core_get_user_domain( $author_id );
} else {
$author_url = get_author_posts_url( $author_id );
}
File : /templates/default/single-question.php
– Line 29 , change to : bp_core_get_user_domain( get_the_author_meta( 'ID' ) ),
File : /templates/default/content-answer.php
– Line 77 , change to : <?php if ( ! dwqa_is_anonymous( $answer_id ) ) { echo bp_core_get_userlink( $answer->post_author ); ?>
File : /templates/default/content-comment.php
– Line 9 , change to : bp_core_get_user_domain( $comment->user_id ),
And we fixed for you then.
Thank you so much Allen, I have never received such an awesome support in my whole life. Thank you so very much. May God Bless You.
You’re welcome, and happy new year 2016 then ! Cheer !
Please login or Register to submit your answer