WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Topics for Posts
Multisite, Redirect to different blog (3 posts)

  1. ctekmusic
    Member
    Posted 1 year ago #

    Hi. I stumbled across your plugin this morning and think it is a great idea that we want to incorporate into our site. We are using a multisite install and our bbpress is installed on site ID "6", all of our posts come from the main site (ID 1).

    How it currently works:
    site 1 new post -> site 1 new topic
    or
    site 6 new post -> site 6 new topic

    How we need it to work:
    site 1 new post -> site 6 new topic.

    I looked around and saw that you don't support multisite but I thought our situation was different because we only want to take posts from one site, maybe it could be redirected or hard coded in some way?

    I have very limited knowledge of bbpress and php but I'm not scared to dive into the plugin code and make any 'hacks' if necessary, we really like this plugin and would love to get it working.

    I'm using v1.4 of the plugin.

    Thanks for any help.

    http://wordpress.org/extend/plugins/bbpress-post-topics/

  2. David Dean
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ctekmusic,

    This is a tough one. Topics are just posts and the link between post and topic is stored as an ID number, so you'd have to change blog context before and after each topic operation in order to use topics on another site.

    This will need to be done in quite a few places to make things work smoothly, but the bare minimum is in the build_new_topic() function, and in the comments-bbpress.php file.

    You can use this function and its companion to perform the switch:
    http://codex.wordpress.org/Function_Reference/switch_to_blog

    I'll add some action hooks to the next version of the plugin to make this (and other cool uses) easier to implement.

  3. ivnus
    Member
    Posted 1 year ago #

    @ctekmusic

    where you able to make these changes. I'm also looking to do the same functionality.
    Do you have any code changes?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags