Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forums not working in 1.2 for custom component


  • Thomas Hoefter
    Participant

    @thoefter

    Hi,

    I am using a custom component, which is basically an exact copy of the groups component, in bp 1.1 and forum posting is working fine there.

    Now I am trying to port the component to 1.2 but can’t seem to get forum posting to work there. I have copied all the changed functions to my component still when trying to post I get “post could not be created”, although the posts were added to the database (i.e. bb_topics) fine. The topics are not displayed in the forums as well. Posting for “normal” groups works correctly.

    I have already digged around in the bp files for several hours but feel completely lost now.

    Does anyone have some pointers as to what changed with group forums in 1.2 and what I could have missed?

    Any help is appreciated. Thanks!

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

  • Windhamdavid
    Participant

    @windhamdavid

    this thread may help – if you’re posting to bb_topics outside of bp via this custom component, then you may need to make some other adjustments.


    Thomas Hoefter
    Participant

    @thoefter

    Thanks for the reply, Windhamdavid. The thing is, I already got forums working fine with my custom component in BP 1.1.3. I just can’t figure out how to convert it to be compatible to the new bp 1.2 even after hours of searching around.


    Thomas Hoefter
    Participant

    @thoefter

    Ok, I found the reason and am not sure if it could possibly be a bug in bp 1.2, maybe someone more knowledgable could have a look?

    Basically it was caused by the groups_add_forum_fields_sql, groups_add_forum_tables_sql and groups_add_forum_where_sql filters being applied to other components as well – which I think is not correct or at least I don’t see what sense it would make.

    The code which looks wrong is on line 60 of bp-groups-filters.php:

    if ( ( $bp->groups->current_group && ‘public’ == $bp->groups->current_group->status ) || !$bp->groups->current_group ) {

    When removing the “!$bp->groups->current_group” (which looks wrong to me) part it works for my component. I first tried to remove the filters but somehow that did not work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Forums not working in 1.2 for custom component’ is closed to new replies.
Skip to toolbar