Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login Bar

  • Avatar of driz
    driz
    Participant

    @driz

    Hi, the default login bar does not suit my needs and I would like to code my own, so I need to replicate the effects of <?php bp_login_bar(); ?>

    Please could you help with the code for logged in and when logged out. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of driz
    driz
    Participant

    @driz

    Any updates? Thanks.

    Your first post was just over 5 hours ago. Please do not repost or bump your thread for 24-48 hours; we all have jobs and real lives ;)

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Hey driz,

    Check out /wp-content/plugins/buddypress/bp-core/bp-core-templatetags.php.

    The function for bp_login_bar() is there… create your own function based off that and modify it to your liking!

    Create this new function in /wp-content/plugins/bp-custom.php and then call on your new bar in your BP member template.

    Avatar of driz
    driz
    Participant

    @driz

    Why would my new function be in bp-custom.php and not functions.php?

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    You could put it in functions.php, but (and I am copying this from the BP codex), you should use bp-custom.php because:

    (bp-custom.php) gets loaded with all the rest of bp automatically by bp during each page load. If you don’t have one already then create one in /plugins/buddypress. So we’ll pretend that we have done just that and that our three new functions are going to be loaded with the rest of bp.

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

You must be logged in to reply to this topic.