Skip to:
Content
Pages
Categories
Search
Top
Bottom

If BBpress then, else


  • gerikg
    Member

    @gerikg

    WPMU+BuddyPress+BBpress

    How do you write the php code to say

    if in a bbpress side

    do this

    if wordpress (or else) do that.

    ?

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

  • Adam Harley
    Member

    @kawauso

    Assuming you’re talking about deep integration of bbPress, you should be able to use one of the constants defined in the settings of WordPress MU / BuddPress to determine if bbPress is embedded or not.


    gerikg
    Member

    @gerikg

    but but.. I don’t know what that means! but I don’t need it anymore.


    Ashfame
    Participant

    @ashfame

    If they are deeply integrated then you will have a hard time figuring this out as if you ask Is this is WP? WP will say yes and if you ask Is this is bbP? then bbP will say yes and if they are deeply integrated then both questions will return a yes.


    gerikg
    Member

    @gerikg

    Ah, thank you for clearing that up.

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

You must be logged in to reply to this topic.