Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_login_bar() + redirect_to : in rc1

  • @oldskoo1

    Participant

    Hi,

    Since RC1 was released the header.php files use (for the login bar)

    <div id=”search-login-bar”>

    <?php bp_search_form() ?>

    <?php bp_login_bar() ?>

    <div class=”clear”></div>

    </div>

    Before RC1, the whole form was in the header.php file and you were able to put in a hidden field <input type=hidden name=”redirect_to” /> which would redirect a user to a specified page on login.

    The re-direct is v.useful to me.

    Is there a central script i could push this hidden field into so it would cover all login forms(including members pages). Or, if not, where could i find those functions i can modify the output to include my hidden field.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • @night815

    Member

    I found the bp_login_bar() in the file /bp-core/bp-core-templatetags.php on line 489. You could just edit this directly or add an optional parameter to this function.

    Maybe this could be added as a feature of BuddyPress?

    @burtadsit

    Participant

    oldskoo1, see this thread here for info about that: https://buddypress.org/forums/topic.php?id=1095

    Buried in there is a little 5 line plugin that allows you to redirect on login.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_login_bar() + redirect_to : in rc1’ is closed to new replies.
Skip to toolbar