Mark Barnes (@mark-barnes)

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • @mark-barnes

    Member

    Depending on your theme you should be able to add a filter to ‘body_class’.

    <edit>Actually, you shouldn’t need to. bbPress already adds to the body class.</edit>

    @mark-barnes

    Member

    those are not core-bbpress files, those are bbpress child-theme files for twebtyten-theme.

    They’re core in the sense that they’ll get overwritten when I update the bbPress plugin. That’s why I don’t want to edit them.

    Because bbPress works best using its own child theme, it’s really important we have filters and actions in that theme, because we can’t use our own child theme to override it (because WordPress doesn’t support children of children).

    I’ll add a ticket to trac about it.

    @mark-barnes

    Member

    those are not core-bbpress files, those are bbpress child-theme files for twebtyten-theme.

    They’re core in the sense that they’ll get overwritten when I update the bbPress plugin. That’s why I don’t want to edit them.

    Because bbPress works best using its own child theme, it’s really important we have filters and actions in that theme, because we can’t use our own child theme to override it (because WordPress doesn’t support children of children).

    I’ll add a ticket to trac about it.

    @mark-barnes

    Member

    I want to do the same thing. We could do with a filter here, so that we can over-ride the functionality without editing core bbPress files. That, together with the existing filter on get_body_class would allow us to emulate onecolumn-page.php without the need for the additional files.

    Could this simple filter be considered for beta 2?

    @mark-barnes

    Member

    I want to do the same thing. We could do with a filter here, so that we can over-ride the functionality without editing core bbPress files. That, together with the existing filter on get_body_class would allow us to emulate onecolumn-page.php without the need for the additional files.

    Could this simple filter be considered for beta 2?

    @mark-barnes

    Member

    In case anyone is interested in seeing the results, here’s a temporary glimpse:

    bbPress:

    http://www.sermonbrowser.com/forums/forum/sermon-browser-support/

    SimplePress:

    http://www.sermonbrowser.com/forum/sermon-browser-support/

    I was fortunate in that my custom theme was a child theme of TwentyTen. All I needed to do was convert my child theme to a plugin, so I could use bbPress’s child theme instead.

    Next up is to get rid of the sidebar of bbPress pages, but I’m not sure that’s possible yet, without hacking core bbPress files.

    @mark-barnes

    Member

    In case anyone is interested in seeing the results, here’s a temporary glimpse:

    bbPress:

    http://www.sermonbrowser.com/forums/forum/sermon-browser-support/

    SimplePress:

    http://www.sermonbrowser.com/forum/sermon-browser-support/

    I was fortunate in that my custom theme was a child theme of TwentyTen. All I needed to do was convert my child theme to a plugin, so I could use bbPress’s child theme instead.

    Next up is to get rid of the sidebar of bbPress pages, but I’m not sure that’s possible yet, without hacking core bbPress files.

    In reply to: Where is the importer?

    @mark-barnes

    Member

    Tools/Import :)

    In reply to: Where is the importer?

    @mark-barnes

    Member

    Tools/Import :)

    @mark-barnes

    Member

    Works fine for me in the same setup. I get three new menus between Comments and Appearance.

    @mark-barnes

    Member

    Works fine for me in the same setup. I get three new menus between Comments and Appearance.

    @mark-barnes

    Member

    I didn’t want to encourage non-programmers to use it, which is why I didn’t post a file. If I get time to tidy it up, I’ll do so (although I’ve lost edit rights to that first post now).

    @mark-barnes

    Member

    I didn’t want to encourage non-programmers to use it, which is why I didn’t post a file. If I get time to tidy it up, I’ll do so (although I’ve lost edit rights to that first post now).

    @mark-barnes

    Member

    This is slightly guesswork, but based on my understanding of the code.

    (1) You should write your bbPress plugin as if it’s a WordPress plugin.

    (2) Searching the bbPress folder for do_action will give you all the bbPress hooks, and searching for apply_filters will give you the list of filters (there are a LOT of them). Learning the important functions is trickier – they seem fairly spread out around the code amongst the less important functions. For that, I guess we’ll need to wait for documentation.

    @mark-barnes

    Member

    This is slightly guesswork, but based on my understanding of the code.

    (1) You should write your bbPress plugin as if it’s a WordPress plugin.

    (2) Searching the bbPress folder for do_action will give you all the bbPress hooks, and searching for apply_filters will give you the list of filters (there are a LOT of them). Learning the important functions is trickier – they seem fairly spread out around the code amongst the less important functions. For that, I guess we’ll need to wait for documentation.

Viewing 15 replies - 1 through 15 (of 15 total)