The usual set-up: www.domain.com – wordpress installation with sidebars and widgets; www.domain.com/forum – bbpress. BBpress is integrated via bbpress-integration plugin. The question is – how can I assign one sidebar with it’s widgets to appear on bbpress’ sidebar and be fully functional? Widgets contain contents of wordpress. It would be very tedious to write these specific widgets as custom functions to be inserted in bbpress.
Leave a Reply
You must be logged in to post a comment.
Now, you can use the bbPress Plugin, which is currently in beta-release.
You can create an iframe and inside that one you load a template file that contains the sidebar you want to introduce only. Then you can trigger that one in the context of the homepage probably. The only thing left is to fake the request pattern, which can be achieved by overriding variables early, e.g. within a plugin. That plugin could overload the theme as well, but I’m unsure if that really makes sense. Depends a bit on your WP themes structure.
You can try deep integration with which you load the whole WordPress on bbPress side, and then can use WordPress specific functions. You can use an existing sidebar on bbPress side or even create a new one specific to the forums and use that. Theoretically everything should work but the mileage may vary. As per my experience, you are very less likely to have any issues and will be fine but this adds a good amount of load on forums side as WordPress core is also loaded along with bbPress core.
One done, just use WordPress functions in your bbPress theme to build up anything that you want with WP codebase. Eg:
<?php get_sidebar(); ?>
or<?php get_sidebar('forums'); ?>
although define a sidebar by that name too.You can get some more bbPress related resources & advantage/disadvantages of using deep integration on this page – http://blog.ashfame.com/bbpress/