Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP and BBPress issues.


tajul.sharby
Participant

@tajulsharby

I wish I could but unfortunately it will take some times for me and my guys to get other customized plugin to work with the new release as we all have been playing with the current version which we had going in to for quite some time.

Yeah, I know the latest version has the solution but I really hope for a technical solution (hacking the core files i guess?) which will solve the problem logically.

Anyway, the variable $topic which I debugged through in the bp-groups.php file was not holding any value which I might suspected to be the source of the problem:

function groups_new_group_forum_topic( $topic_title, $topic_text, $topic_tags, $forum_id ) {
global $group_obj, $bp;

if ( $topic = bp_forums_new_topic( $topic_title, $topic_text, $topic_tags, $forum_id ) ) {
bp_core_add_message( __( 'Topic posted successfully!', 'buddypress') );

/* Record in activity streams */
groups_record_activity( array( 'item_id' => $group_obj->id, 'component_name' => $bp->groups->slug, 'component_action' => 'new_forum_topic', 'is_private' => 0, 'secondary_item_id' => $topic['topic_id'] ) );

do_action( 'groups_new_forum_topic', $group_obj->id, $topic );

return $topic;
}
bp_core_add_message( __( 'There was an error posting that topic.', 'buddypress'), 'error' );
return false;
}

Anyone have ideas what the $topic variable does?

Skip to toolbar