BuddyPress Forum Move Topic 0.0.1
Here is some code that will move an entire Forum thread from one Group Forum to another:
I’d call it Alpha, but it does seem to work quite well.
There are some hard coded aspects that will need to be fixed to be compatible with all BP installs.
BFMT 0.0.1 provides a drop-down that allows Group Admins and Mods to move entire topic threads to other public, private, or hidden forums. To avoid user confusion, it notifies the topic poster via email alert that the topic was moved + provides a link to the relocated topic. You should note that this is set up for BP forums that utilize “sitewide mod/admin” setup, i.e., it’s OK for mods/admins to move topic to a forum where they are NOT a mod/admin. May fix permissions in future (especially if you help).
This is currently an old school hack, not a plugin. Would recommend running on a test server first to make sure you’re happy with it. To test:
1. copy this code to your theme’s topic.php file directly below line 1 (the call to bp_has_forum_topic_posts)
2. edit DROP DOWN MENU options below (starting around line 115)
This is in need of review, testing, and transformation into a plugin. I did try to turn it into a neat function but wasn’t immediately able to get the forum variables to carry over… help?
Look forward to your feedback!
- The topic ‘BuddyPress Forum Move Topic 0.0.1’ is closed to new replies.