Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 8 years ago

#2765 closed enhancement (no action required)

Forum reset script

Reported by: boonebgorges's profile boonebgorges Owned by:
Milestone: Priority: minor
Severity: normal Version:
Component: Forums Keywords: needs-patch
Cc:

Description

See this thread: http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/there-was-an-error-when-creating-the-topic-un-fixable-problem/

I'm not sure if this is the problem that the OP on that thread is experiencing, but in my experience there have been times when BP groups have somehow gotten out of sync with their corresponding forums. I was thinking that it might be worthwhile to build a script that tries to correct such problems, but wanted to get some feedback first. It's the sort of process that could potentially be built into the core in one of a few ways: either an automatic check that takes place when BP attempts to load a group's data/post a new item, or a button on the Forum Setup dashboard panel. It could easily be a plugin or independent script too, but I'm posting here in the chances that others have had the problem and think it might be worthwhile to have something in BP itself.

Anyway, it would likely work with the following logic: If a group has forums enabled but no forum_id metadata, check to see whether there is a bbPress forum by the same name. If so, record that forum id to the group; if not, create a new forum and then record the metadata.

This doesn't address whatever might be the underlying cause of the problem might be. Perhaps it has no place in core for that very reason. What do others think?

Change History (5)

#1 @DJPaul
11 years ago

I've never been able to recreate this one, but I have heard it and have seen it happen. This type of enhancement could go into groups_new_group_forum(() or bp_forums_new_forum(), and it could work in the way you describe.

It definitely does not need to be option in the admin pages, but when patching it, if we abstract it to a new function, someone could always hook it up however they want.

There's an edge case where people with existing bbPress forums with the same name as the new group would find the two associated together, but I reckon that's an improvement in its own right.

#2 @DJPaul
11 years ago

  • Keywords needs-patch added

#3 @DJPaul
11 years ago

  • Milestone changed from 1.3 to Awaiting Review

#4 @DJPaul
11 years ago

  • Milestone changed from Awaiting Review to Future Release

#5 @boonebgorges
8 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Severity set to normal
  • Status changed from new to closed

Closing this ticket due to the deprecation of bp-forums.

Note: See TracTickets for help on using tickets.