Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Skeleton Member Theme – Missing “Settings” Pages


  • r-a-y
    Keymaster

    @r-a-y

    I must have looked through every directory in the BP Skeleton Member Theme, but I couldn’t find the template files to modify the “Settings” pages (general settings, notifications, delete account).

    Is it just a case of me staring at the monitor for too long? Must eat!

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

  • Jeff Sayre
    Participant

    @jeffsayre

    r-a-y

    You are not going crazy!

    The reason you cannot find a “Settings” page in the Skeleton Member theme is the same as why you cannot find one in the default bpmember theme (if you look). It is handled via one of the core BuddyPress files. Look at bp-core-settings.php and you’ll find what you need.


    r-a-y
    Keymaster

    @r-a-y

    Thanks Jeff, I’ll take a look at that.

    Here’s a follow-up question, is there a PHP function to determine if you’re on a “Settings” page? I could use $_SERVER[‘REQUEST_URI’], but am wondering if there’s already a built-in function that BuddyPress uses.


    Jeff Sayre
    Participant

    @jeffsayre

    Look at bp-core-catchuri.php. You’ll find all sorts of good URL discovery and parsing functions.

    You can use this to test for the current component. If you are on the settings page, as an example, this will evaluate to “settings”.

    $bp->current_component


    r-a-y
    Keymaster

    @r-a-y

    Thank you sir!


    Jeff Sayre
    Participant

    @jeffsayre

    r-a-y

    If you’re all good to go, just set the light up top to green!


    r-a-y
    Keymaster

    @r-a-y

    There we go!

    One addendum for those that may be interested. Remember to call on the global variable $bp (global $bp) before calling on the $bp->$current_component.


    r-a-y
    Keymaster

    @r-a-y

    One thing to add, the “Settings” pages use the “plugin-template.php” file in your BP member theme’s directory.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘BP Skeleton Member Theme – Missing “Settings” Pages’ is closed to new replies.
Skip to toolbar