Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members/Groups/Blogs SERACH only for logged-in users


  • Maythil
    Participant

    @maythil

    The light yellow band atop (don’t know what’s it called).

    I want the Members/Groups/Blogs SEARCH hidden from public view.

    Only logged-in members should be able to see it.

    If it invloves compliced “IF”- coding, I can remove it uncondionally.

    In which files(s) can I make the changes?

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

  • Jeff Sayre
    Participant

    @jeffsayre

    Maythil-

    Look for this line of code in the header.php files of both your bphome and bpmember themes:

    <div id="search-login-bar">
    <?php bp_search_form() ?>
    <?php bp_login_bar() ?>

    <div class="clear"></div>
    </div>


    Maythil
    Participant

    @maythil

    Hi, thanks, Jeff :)


    Maythil
    Participant

    @maythil

    Jeff, I rewrote the code like this:

    <?php if ( is_user_logged_in() ) : ?>

    <?php bp_search_form() ?>

    <?php endif; ?>

    <?php bp_login_bar() ?>

    It works well.

    but on second thoughts, i think i can dispense with “search”.

    Is there anyway

    (1) to move the logo (now ‘socialnetwork’) to replace ‘search’,

    (2) move Members/Groups/Blogs to the Admin Bar and,

    (3) remove the yellow band totally?


    Maythil
    Participant

    @maythil

    There was an error in my last post. What I want is:

    (1) to move the logo (now ‘socialnetwork’) to replace ‘search’,

    (2) move Members/Groups/Blogs to the Admin Bar and,

    (3) remove the bar that contains the logo-gif and Home/Blog/Members/Groups/Blogs

    I need to hide the user profiles for the unlogged profiles. Help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Members/Groups/Blogs SERACH only for logged-in users’ is closed to new replies.
Skip to toolbar