Skip to:

Re: Redirecting the bp_login_bar – almost got it!

Burt Adsit


You are talking about the function bp_login_bar() in the bp-core-templatetags.php file.

The form field that you are interested in gets set by bp before it arrives at the user’s browser. You don’t know who the user is until they fill out the form and it gets sent back to the server for processing.

Then they are logged in and you know who they are. It’s too late though because the redirect takes effect after login and they wind up at wherever the hidden field redirect sends them to.

I think you want to modify the form data before it gets submitted and arrives at the server. You can’t do that using traditional form handling. You’ll have to modify the form data using javascript before it gets sent back to bp.

You’ll have to investigate something like this:

Skip to toolbar