villagora (@villagora)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @villagora

    Participant

    hi tamarazuk,

    Indeed, that seems to be the same error [ticket #1938][1]. But in our case, we have modified bbp_has_replies args for to add our own meta queries…
    In your case, it seems that the plugin WPML add a join clause to the bbppress query :

    > JOIN wp_icl_translations t ON wp_posts.ID = t.element_id

    That’s why the SQL query crash… I suggest you to backup your db & disable WPML for confirm my diagnostic ! 😉

    Some ideas for fix it :

    • wait the bbpress update
    • if you have programing skills, you can try to hook the posts_join or posts_where probably used by WPML for fix manualy the querry.

    Good luck !

    @villagora

    Participant

    Hi John,

    I work on deep customisation of bbpress (http://demo.villagora.fr/forums/forum/forum-thematique/) and I’m trying to update bbpress 2.0.3 to 2.1 !
    So I’ve copied the contents of the “bbpress-theme-compat” in my bbp-theme (it’s a child of my current theme) for to modify bbpress templates / css / images…
    But after the update, my child theme does not overwrite the default bbp-theme-compat files, and I don’t understand why ?
    Can you explain me how use “add theme support” for overwrite properly bbpress template file in my child them, with bbpress 2.1?

    Thanks in advanced.

    @villagora

    Participant

    Hi everyone,

    I read the beginning of the topic cause I am very interested in building compatibility between my theme (a child theme of buddypress) and bbpress (indeed I installed the buddypress plugin and the bbpress one).

    I don’t know if this has already be given as a solution (or even if it actually one :). I copied the bbp-twentyten theme and personnalized it. Then I redefined it as the default bbpress theme, in order it is the one used instead of bbp-twentyten.

    What I wrote in the functions.php of my theme:

    if ( class_exists('bbPress') && file_exists(%FUNCTIONS_PHP_OF_MY_BBPRESS_THEME%) ) {
    require_once %FUNCTIONS_PHP_OF_MY_BBPRESS_THEME%;
    } else {
    add_action('admin_notices', 'message_if_my_bbpress_theme_is_absent');
    }

    In the functions file of my bbpress theme I have:

    $bbp->theme_compat->theme = new MY_BBP_THEME();

    And thus I have my child theme from buddypress safe and my second theme for bbpress used instead of bbp-twentyten.

    Hope this is a good solution and it can be helpful!

Viewing 3 replies - 1 through 3 (of 3 total)