-
Author
Tagged: Facebook Login, login redirection
-
January 6, 2015 at 07:35 #41078PepesmithParticipant
Hi,
I already tried the following but no luck.
https://archived.seventhqueen.com/forums/topic/redirect-user-to-their-profile-after-login < Totally not working
https://archived.seventhqueen.com/forums/topic/kleo-login-redirect < Working but not thru facebook loginJanuary 9, 2015 at 03:03 #41435PepesmithParticipantHi nusolutions,
Thank you for the response! Unfortunately the plugin doesn’t work, I believe what I need is a custom code.
January 13, 2015 at 01:49 #41825PepesmithParticipantHi,
I tried to edit the following line of code in function-facebook-login.php and I’m not sure what am I missing.
die( json_encode( array( ‘loggedin’ => true, ‘type’ => $logintype, ‘url’ => $redirect, ‘siteUrl’ => home_url(), ‘message’ => __( ‘Login successful, redirecting…’,’kleo_framework’ ) )));
I tried to replace the $redirect variable with a hardcoded url but still it is not redirecting. I hope someone could help me with this. I’m running out of ideas. Thank you!
January 19, 2015 at 01:59 #42578PepesmithParticipantHi,
I would like to follow up on this. Thanks!
January 19, 2015 at 02:46 #42582sharmstrModeratorYou dont change it on that die line. That is in the registration function. You need to do it around line 93
Change this to wherever you want to go
COPY CODEwindow.location.reload();
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 19, 2015 at 16:53 #42623marceltjParticipant@sharmstr Hello, I tried to insert your redirect code placed in theme child functions file. Works for a static url but what would I put instead for redirect to logged in users profile?
January 19, 2015 at 17:14 #42625sharmstrModeratorAssuming you’re talking about this: https://archived.seventhqueen.com/forums/topic/popup-login-not-working-at-homepage#post-42385
Try changing this
COPY CODE$redirecturl = apply_filters( 'kleo_modal_login_redirect', '/activity/', '', $user_signon );
to this
COPY CODE$redirecturl = apply_filters( 'kleo_modal_login_redirect', '/' . BP_MEMBERS_SLUG . '/' . $info['user_login'], '', $user_signon );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 19, 2015 at 17:30 #42627marceltjParticipantThank you! Only problem I am having is that my setup has slug /profile/ instead of members. Do I change the permalink or how can I hard code it in the function?
January 19, 2015 at 17:47 #42629sharmstrModeratorCOPY CODE$redirecturl = apply_filters( 'kleo_modal_login_redirect', '/profiles/' . $info['user_login'], '', $user_signon );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 19, 2015 at 18:07 #42632marceltjParticipantMy mistake on this… need to flip user and profile like ‘domain/user/profiles’. I tried to adjust but doesn’t see to work for me this way
January 19, 2015 at 18:39 #42633marceltjParticipantUpdate to this and seems to work. Thank you again!
$redirecturl = apply_filters( 'kleo_modal_login_redirect', $info['user_login'] . '/profile/', '', $user_signon );
January 19, 2015 at 18:43 #42636sharmstrModeratorbecause you put profile instead of profiles?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 19, 2015 at 18:45 #42637marceltjParticipantthat and had to switch the order.
$redirecturl = apply_filters( 'kleo_modal_login_redirect', $info['user_login'] . '/profile/', '', $user_signon );
January 19, 2015 at 18:46 #42638marceltjParticipantCOPY CODE$redirecturl = apply_filters( 'kleo_modal_login_redirect', $info['user_login'] . '/profile/', '', $user_signon );
January 19, 2015 at 19:27 #42644SplendorParticipantDon’t forget to place the final code here for everything, that could be great. I’m also looking to do the same, for now I have a plugin that do this for me. But as I don’t want plugins right and left for everything. This is the way to go. Thanks 🙂
February 20, 2015 at 11:23 #46861russellkhanParticipantsince the buddypress upgrade login redirect to profile is not working. anything changed?
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.