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.
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