-
Author
-
August 20, 2016 at 00:58 #133254arbolifeParticipant
Hi,
Facebook registration works well, but after the success it redirects to the user profile asking to complete it.
Is there a way to redirect to the the original page ? It works really well with login, but not with registration.
Thanks,
Marc
August 21, 2016 at 04:30 #133285ojaramilParticipantThat happens also to me. I can not register with facebook button
August 24, 2016 at 07:06 #133604LauraModeratorHelo, can you share admin credentials so i can check it out? Do you have the latest update of the theme?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
August 24, 2016 at 10:03 #133625arbolifeParticipantWhile I appreciate Laura helping Orlando, my original question remains open and is not the same as Orlando’s. Next time Orlando should consider creating his own ticket rather than highjacking someone else’s.
My problem is not that Facebook registration does not work. Here’s my original post:
Facebook registration works well, but after the success it redirects to the user profile asking to complete it.
Is there a way to redirect to the the original page ? It works really well with login, but not with registration.
Thanks,
MarcAugust 24, 2016 at 21:33 #133739ojaramilParticipantMy apologize with you Marc, in the moment I posted first time I didn’t know how open a ticket and saw a similar subject in your post and I did it , now I learnt how to do it and a guy is helping me .
Regards
August 28, 2016 at 23:07 #134117LauraModeratorHello @arbolife , The issue is the it redirects to the profile asking to complete it? Do you have any plugin activated that does this? Because its not like that by defaut
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 5, 2016 at 11:10 #134895arbolifeParticipantHi Laura,
Today I went on my test site and deactivated all plugins except for BuddyPress, and clicked on “login with facebook” with a new user and it redirects me to the profile page (screenshot attached).
So no, it’s not a plugin behaviour.
The best would be to to have a code to put in functions.php to force the redirect to the originating page. Can you help me with this please ?
Cheers,
MarcAttachments:
You must be logged in to view attached files.September 5, 2016 at 11:41 #134916LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 5, 2016 at 18:46 #135004RaduModeratorHi guys,
Playing with those options it’s not enough ?
If not you can use an advanced logic for this with the Peters Redirect plugin : https://wordpress.org/plugins/peters-login-redirect/
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 6, 2016 at 09:38 #135070arbolifeParticipantHi Radu,
These options are for LOGIN and they work perfectly fine for me, when a user logs in it’s exactly what happens. My settings:
LOGIN REDIRECT = Reload the current page
HOMEPAGE REDIRECT = DisabledThe question here is why REGISTRATION with Facebook (first time only) forwards to the user profile instead of reloading the current page.
Couldn’t this be fixed with a line or two in functions.php rather than installing a plugin?
Cheers,
MarcSeptember 6, 2016 at 16:51 #135114RaduModeratorThe facebook login it behaves like that because maybe the user will complete the profile fields and other informations
You can try this function…
COPY CODEfunction custom_redirect_link_facebook_login(){ global $post; $reloadcurrentpage = get_permalink( $post->ID ); return $reloadcurrentpage; } add_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login', $user_ID);
PS : I haven’t tested, let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 7, 2016 at 02:59 #135202arbolifeParticipantHi Radu,
Thank you, this is very close. I tried it on my test site from this page:
https://www.arbolife.com/arbolife/fr/events/conference-zero-dechet-avec-bea-johnsonand the page it forwarded after registration was:
https://www.arbolife.com/arbolife/fr/events/conference-zero-dechet-avec-bea-johnson/falseOf course the /false at the end generates a 404. Do you know how to remove this?
Cheers,
MarcSeptember 7, 2016 at 19:09 #135296RaduModeratorHi,
Try with this code
COPY CODEfunction custom_redirect_link_facebook_login(){ global $post; $reloadcurrentpage = get_permalink( $post->ID ); return $reloadcurrentpage; } add_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login');
Let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 7, 2016 at 22:35 #135338arbolifeParticipantHi Radu,
Unfortunately it still shows the /false at the end of the pages’s URL and produces the same error. Any other idea?
Cheers,
MarcSeptember 9, 2016 at 15:45 #135591RaduModeratorHi,
Ok try this instead
COPY CODEfunction custom_redirect_link_facebook_login(){ global $wp; $current_url = home_url(add_query_arg(array(),$wp->request)); return $current_url; } add_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login');
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 11, 2016 at 21:31 #135754arbolifeParticipantHi Radu,
Now it loads the homepage, but not the current page from which I click on the log in with FB button.
At least the /false is gone. Can you make it load the current page?Cheers,
MarcSeptember 12, 2016 at 19:03 #135842RaduModeratorTry with this
COPY CODEfunction custom_redirect_link_facebook_login(){ global $post; $reloadcurrentpage = get_permalink(); return $reloadcurrentpage; } add_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login');
LEt me know
R.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 13, 2016 at 08:40 #135927arbolifeParticipantHi Radu,
Thanks, but that produces the same result as the first two attempts, it creates a 404 error because there is again “/false” appended to the current page URL.
I googled it realized the get_permalink(); was returning the false and your function was appending it to the end of the current page URL, so no need to get the current URL because it’s already there. Not adding anything to it might work. So I tried this – and I’m not a coder, but it worked:
COPY CODEadd_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login'); function custom_redirect_link_facebook_login(){ $reloadcurrentpage = ""; return $reloadcurrentpage; } add_filter('kleo_fb_register_redirect','custom_redirect_link_facebook_login');
Is this completely stupid to create a function to return nothing or should it do something else?
Cheers,
MarcSeptember 13, 2016 at 17:39 #135979RaduModeratorYes, it’s already there and it seems that the function returns the actual URL from where was called.
IT seems to be odd using a function like this but practically it works.Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 14, 2016 at 16:58 #136100RaduModeratorNp
Have a nice week
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.