Not sure I fully follow, but it sounds like you want to redirect a user to their profile page after login?
You can add the snippet of code I provided in this comment here into your themes functions.php to do so. http://wordpress.org/support/topic/how-to-forward-to-certain-page-after-login?replies=3#post-4346361
Of course you’ll need to cook up some php to auto grab that users login URL… This might be a little bit of tricky one if your PHP skills are not up to par. I would address that with the plugin devs to uncover how to go about doing that.
In the next major release I’ll have a way to update this via the admin options instead of modifying code.
@brainfestation
@cole Geissinger
Yes, you are correct — I wanted tor edirect a user to their profile page after login through the Modal Login. I’ll try using the code snippet in functions.php, but my PHP skills aren’t too good.
I do have WPMU Dev membership and sometimes some of the developers over there can help out with this kind of stuff, since I have the link to the post that you provided. I’ll see how that goes. Otherwise, I’ll contact BuddyDev about this.
Thanks for everything! Can’t wait for next major release!
I wrote a 5 star plugin review while I was at it1
@brainfestation
@cole Geissinger
I am getting help from a developer over at WPMU Dev, but I want to ask you something before continuing. Sorry for posting this on a topic that I marked as resolved (tagged you in case).
I called the Modal Login through PHP using:
<?php add_modal_login_button( $login_text = 'Click to log-in', $logout_text = 'Logout', $logout_url = '', $show_admin = false ) ?>
The $logout_url is set to a blank value, so it would automatically redirect me to “mydomain.com/” (that’s what I understood of it — my PHP skills are almost useless — I’ll have to work on that soon).
Do I still add in code similar to:
function my_awesome_redirect( $redirect ) {
$redirect = 'http://www.google.com';
return $redirect;
}
add_filter( 'wpml_redirect_to', 'my_awesome_redirect' );
in functions.php or would I need to build this off of the $logout_url value. I’m working with a WPMU Dev developer, but confirming before I continue.
Thanks in advance. Respond when you can.