Skip to:
Content
Pages
Categories
Search
Top
Bottom

Tabbing the bbPress options page


  • Anointed
    Moderator

    @anointed

    I am adding a number of new options to bbPress and want to add the user inputs to the bbPress options page. Instead of messing around with the default options page, I simply want to add a few tabs to the page where I can add my options.

    I do know how to do this when writing my own page from scratch, but do not yet know how to add tabs and options to an existing bbPress options page.

    example of what I am talking about:

    http://digitalraindrops.net/2011/02/tabbed-options-page/

    Can anyone point me to a plugin, or code snippet that would show me how to extend the bbPress options page with tabs and options?

    thnx

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

  • Anointed
    Moderator

    @anointed

    bumping it up.

    Because the bbPress settings page does not register a starting tab, I have had no luck adding tabs to the page without messing everything up. (standard bbPress options have no ‘home’ tab to attach themselves to).

    Any dev’s wanna jump in on this one with me?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    The WordPress core tab UI is built into the header area of the settings page, and consequentially does not have an API to go along with it. The other issue with using tabs instead of new settings pages, the navigation doesn’t appear anywhere else and requires more clicks to get to secondary tabs.

    I’m not a fan of nesting options inside so many tabs. bbPress core settings aren’t the place to put theme options. You can use the WordPress settings API if you want to add additional settings that fit side-by-side with bbPress core features. Anything else probably deserves it’s own unique UI and page.


    Gautam Gupta
    Moderator

    @gautamgupta

    You can view how I added settings for my plugin, within the bbPress options page here (without tabbing, just appends to the options page): http://plugins.trac.wordpress.org/browser/bbp-topic-views/trunk/bbp-topic-views.php?rev=449878#L215


    Anointed
    Moderator

    @anointed

    @Gautam

    Yes I read through your code prior to posting this and used it as an example of how to add options to the page.

    It was because of reading your code that I was asking about using tabs. My reason for this is that it would give the users a clear distinction between ‘core’ and ‘custom’ options while still maintaining all options in the same page.

    Just thought it would be unique, cool, and provide yet another level of organization to bbPress.

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

You must be logged in to reply to this topic.