-
Author
-
May 17, 2015 at 18:12 #59208NormanParticipant
I am using: Peters Login redirect
the redirect works but it doesn’t work with my language variable in the URL- I have 2 languages english and Japanese.
after login I need to redirect to the members activity page.
for english: http://www.mydomain.com/member-activity
for japanese: http://www.mydomain.com/ja/member-activityso i need to add the /ja/ variable
I found this article so far. so i am sure it works.
http://www.theblog.ca/peter-forum/peters-login-redirect/redirection-based-on-current-directory-of-login-pageI need to add this in the redirect login field of peters plugin
[variable]language[/variable]But how do i set up this “language” variable in kleo – is it php ? someone an idea ?
May 17, 2015 at 18:34 #59210NormanParticipant.. sorry I just realized that my problem is caused by the top side pop up login.
somehow the redirection from peters login redirect only works for my side widget login.
it looks like kleo’s top menu login needs other adjustments.how can i redirect after kleos top menu login to the 2 language versions of the member activity ?
May 17, 2015 at 21:08 #59232sharmstrModeratorYou’ll be able to do that with Kleo 3.0 which should be released any day now.
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
May 17, 2015 at 21:24 #59234NormanParticipant@sharmstr that good news !
once its out please let me know how to set that up ! appreciate. have a nice one.May 17, 2015 at 22:41 #59243sharmstrModeratorAll you will have to do on Kleos side is make sure you have “default wordpress” set in Theme Options > Misc > Login redirect.
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
May 19, 2015 at 00:31 #59311NormanParticipanthi sharmstr I want to share this with you. WPML provided a solution that works with your top menu login !
COPY CODEfunction add_language_variable( $custom_redirect_to, $variable, $user ) { global $sitepress; if( 'language' == $variable && defined('ICL_LANGUAGE_CODE') && $sitepress->get_default_language() != ICL_LANGUAGE_CODE ) { return ICL_LANGUAGE_CODE; } return $custom_redirect_to; } add_filter( 'rul_replace_variable', 'add_language_variable', 10, 3 );
if the above code is added in the functions.php
than this can be added in peters login redirect:[variable]language[/variable]
it works on my site. maybe you can use that
May 19, 2015 at 00:35 #59313sharmstrModeratorThank you. But as I said, its already done.
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
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.