Opened 16 years ago
Closed 15 years ago
#375 closed enhancement (no action required)
Added Functionality, by adding $forum_id = null for BP_Forums_Template_Forum construct
Reported by: | fishbowl81 | Owned by: | |
---|---|---|---|
Milestone: | 1.1 | Priority: | trivial |
Severity: | Version: | ||
Component: | Keywords: | forum, general forum, construct | |
Cc: |
Description
I'm working on a general forums component, and found that I can reuse more of the current bp-forums code by reinitializing bbpress_live to a second bbpress install location. I'm trying to reuse as much of the forum code as possible, to allow for easier translation and upgrades down the road. I came across the construct for BP_Forums_Template_Forum, which accepts 2 arguments, 1 being a forum_id, and the topics per page count. I tested and found that by passing in a null forum_id it returns the most recent topics, so I can produce the same functionality as seen on a normal bbpress install.
If we can have = null added to the construct, it would make this class more multifunction, and will help other people who may be working on a general forum using the built in functionality.
Thanks,
Brad
i second this.