Skip to:
Content
Pages
Categories
Search
Top
Bottom

Integration questions

  • Hi!

    I’ve been searching through this forum like a maniac and my bad – I didn’t find any answers for my questions.

    I somehow managed to “integrate” my bbpress with WP (the part of users, cookies), BUT:

    1) How can I wrap the forum inside my WP blog (like in wordpress.com) ?

    2)…. well, the first one actually was the big one :)

Viewing 12 replies - 1 through 12 (of 12 total)
  • triipriit,

    WOW! This is awesome, I’m looking at this EXACT SAME QUESTION!!!

    I’ve been playing around for a couple days on this, and have made some progress, but I’m not 100% there yet…

    drop me an email at bradh at konamoxt dot com if you are interested in collaborating on this…

    In the interest of sharing what I’ve learned so far, let me describe what I want to do, and what I’ve accomplished so far.

    1) I want to have a stand alone instance of bbPress running on my site that shows ALL the forums.

    2) I want to embed a single forum into a wordpress blog (actually a wordpressmu blog– but there’s nothing mu specific about my work so far)

    3) I want the forums to share the same DB, so if a topic is updated inside of my blog, I also see it updated in the standalone Forum.

    4) I want to be able to essentially allow the bbPress template functions to work inside of a wp page or post… ideally I’d like to implement a simple function like “embedd_bbpress_forum()” on a page template and have it display a fully functioning bbPress instance in the page.

    5) I want to use the chrome/theme from wordpress for the header, sidebar, footer, etc… but I also want to support the basic bbpress template structure as well.

    So far I have this working about 90%…

    What I’ve done is build a WP-plugin, that “includes” bbpress/bb-load.php. And implements a couple functions for embedding the bbpress instance in a page or post or where ever you call the embed functions.

    Things that are working:

    * forum home page

    * topic pages

    * new topic

    * comments

    * profile pages

    * favorites

    Things that aren’t working yet:

    * ajax — none of the ajax stuff is working properly yet…

    * some pages that use wp_redirect – because of how I’m embedding in wordpress, the headers are already sent before I have a chance to do the redirect, so… some functions that rely on this are reporting errors.

    How I did this so far:

    * declare GOBALS!!! – This is the biggest “sneaky trick” – basically, most of bbPress is implemented outside of a function or class context, and so the “local” variables on the bbPress pages are actually global in context. Since I’m wrapping these into a wp-pluing, I need to declare them as explicitly global. If I get all the globals right, then bbPress just works.

    * turn off mod_rewrite support in bbPress… since I want my pages to get handled by WordPress, the URL needs to end at the same location of the wordpress page, this means that my forum page has a url something like:

    http://mydomain.com/blog/forumpage/?command=topic.php&id=1

    Notice I introduced the concept of the “command” parameter, that my plugin then uses as a dispatcher to “load” (include) the right bbPress file. MOSTLY bbPress will do the rest of it’s work from the URL params.

    * Lots of filters – I’ve implemented several filters for URL remapping so that bbPress will override the standard link formation to point to my new embedded page urls

    * A COUPLE HACKS – the only hard part I’ve had to hack so far relates to bbPress’s get_bb_location() function. This function appears to be a bit of bbPresses standard “dispatcher” which tells the rest of bbPress what type of page it’s supposed to be rendering. The only problem with this approach is that in my instance of the code base it does all this logic based on PHP_SELF, SCRIPT_FILENAME, or SCRIPT_NAME… which will be pointing to my wordpress files. I made a small change to add a new filter that allows me to pull out my command param and do the bb_location determination from that.

    Has anyone else attempted this? Have they gotten further? Is there an easier way?

    Mostly this isn’t a lot of code, it’s just discovering how to make it work and testing that everything works as planned.

    Oh man. This is way too advanced for me.

    This site I’m doing is my first WordPress attempt and all of my previous websites have been static html.. So PHP is new to me and globals, functions etc. are brand new termins…

    I actually, at first, thought that: integration=embed bbpress in WP.

    I never thought this would be so complicated.

    Well, assuming I succeed in what I’m attempting, I will release it as an open source plugin for wordpress…

    But since I’ve had to make one hack to the bbPress core, it will unfortunately require one small bbPress core change.

    So, I’ll keep working on it, and post more here once I’ve made more progress.

    That’d be great!

    I’ll be waiting :)

    my e-mail is triipriit at gmail dot com, just in case

    zappoman,

    Thanks for your sharing. I am exactly looking for the features. Could I help somehow to make this work? (Even I’m quite new to bbPress :P)

    You may send me an email at harryworld(at)gmail(dot)com

    I can’t believe we are the only four drooling over how awesome this plugin functionality will be! My fluency in php isn’t that great, but I would love to help test out this plugin. I’ve got multiple wp and wpmu sites which have a mix-match of different plugins running — it would be an honor to provide you with feedback on compatibility. Thanks for what you’re doing for the open source community!

    forgot to include my email: deckard at xbladerunner dot com

    Hi guys,

    I am currently looking into deploying a site powered by WordPress. I have a phpBB3 forum (with no users) which I would like to keep. I have seen the wp-united plugin for phpBB3, but it isn’t currently being supported. The option of using bbPress seems good to me, but I would like a seamless and fully functional integration with both WordPress and WordPress MU.

    If I have to ditch the phpBB3 for the functionality I desire I will do it. I know what my potential userbase will want (post count, ranks, avatars, signatures, embed pics/vids in post, search, PM, etc). For the view, I would like a topic and post count, last post, and a description of each forum. Also subforums would be nice too.

    Right now I only have a rudimentary understanding of PHP, but I know HTML and CSS, so I could style the forum myself.

    I am a big fan of open source software. I only feel that there isn’t enough cooperation in the open source world. It would be awesome to see some of the best open source projects come together to create a mega kickass platform. My ideal would be (Drupal – please don’t flame me for this one -,Wordpress, and phpBB3). Drupal for the management of pages and function, WordPress for the content publishing, and phpBB3 for the forum.

    When I achieve proficiency with PHP I will try to develop a universal user/session platform where the login and session is unified with whatever software you decide to install on top of it. This would be an internal database, not an openly accessible one. I have heard of OpenID, but don’t know anything about it.

    WordPress appears to be the best content publishing engine out there, hopefully they become the best forum out there too.

    I too am jazzed about the prospects of a WordPress powered forum.

    Any opinions, best way to learn PHP, etc?

    BTW, this thread is starting to sound like the beginnings of a development group. Mods, plugins, and software to follow soon.

    I have found this discussion very stimulating, and would like to participate in future developments. I could deploy a site to use as a testbed.

    I am a big fan of open source software. I only feel that there isn’t enough cooperation in the open source world. It would be awesome to see some of the best open source projects come together to create a mega kickass platform.

    Yup.. me too..

    and my biggest sorrow is for WPMU, where there’s so less documentation about it.


    apocalyptictomorrow
    Member

    @apocalyptictomorrow

    Any news on this? I have the Simple:Press plugin but I love BBpress better (even though Simple:Press wraps around my WPMU/BuddyPress site perfectly…)

    I’m interested in hearing about the status of this plugin as well. It sounds exactly like what I’m looking for.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar