Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Fiush
    Participant

    @fiush

    Sorry @sammjv, may be any moderator will help you, who has better knowledge of bp moderation.
    Ask @Henry Wright for further development.


    Fiush
    Participant

    @fiush

    To achieve this, just use a plugin for login or sign-up, and their you will get the options to set redirect url. So that after log in and log out you can re direct the user to his/her profile and to direct home page after sign out.


    Fiush
    Participant

    @fiush

    @andy277 your questions are so confusing.
    I don’t think any one can understand what exactly you want to achieve.please be clear on the topic.


    Fiush
    Participant

    @fiush

    You can achieve this by using, ‘if ‘ and ‘else ‘ statement.

    You can do that in theme/members/single/home.php

    You can modify the code,

    <?php locate_template( array( ‘members/single/member-header.php’ ), true ); ?>

    To,

    1) if user have profile field ‘male ‘ then
    <?php locate_template( array( ‘members/single/member-header-male.php’ ), true ); ?>

    Else (eg: based on profile field selected,)

    2) <?php locate_template( array( ‘members/single/member-header-female.php’ ), true ); ?>

    Make sure to create two different templates in the same directory.

    If this not the case, Henry can help you


    Fiush
    Participant

    @fiush

    Hi Henry, I think he is referring to load profiles page conditionally.
    Ex: if a user choose “male ” as option while sign-up, or else “female ” based on xprofiles (may be, but for example I’m informing ).
    Then based on those conditions, he wants to load specific home/profile template ( each template is different).
    So if one can use if & else statements to load different templates from BP home page template

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar