This topic has 18 replies, 3 voices, and was last updated 9 years by russellkhan.
-
Author
Tagged: modal popup login
-
January 16, 2015 at 16:06 #42357nunoParticipant
Hi,
Iām trying to setup the Modal popup login Menu Item.
This is the code I’m using in Menu Item myurl/#show-login
So far, it works in all pages except in homepage – Home CommunityI’m working in a local machine.
Can you please share some advise?
Thanks in advance.January 16, 2015 at 16:36 #42359sharmstrModeratorAre you using a custom modal? You can add the kleo one by adding the login menu item from the kleo section. If you can see the Kleo section, click on screen options in the upper right hand corner of the menu screen.
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
Attachments:
You must be logged in to view attached files.January 16, 2015 at 16:54 #42366nunoParticipantOne more think. More like a suggestion.
The theme is great. But it could be greater with a rating star system for the answers (answers qualify) and use this system for rich snippets purposes.
This is my suggestion š
January 16, 2015 at 16:58 #42368sharmstrModeratorMany discussions about how to redirect: https://archived.seventhqueen.com/forums/search?bbp_search=login+redirect&bbp_search_forum_id=10549
Put your suggestion in the feature request topic so that they people who work here see it.
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 16, 2015 at 17:17 #42370nunoParticipantThanks for your reply but none works for me.
With my login redirect code I get this error:You are already logged in. Please refresh page
Any suggestion will be very appreciate.
Thanks in advanceJanuary 16, 2015 at 17:30 #42372sharmstrModeratordid you try this? https://archived.seventhqueen.com/forums/topic/kleo-login-redirect#post-31684
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 16, 2015 at 17:38 #42375nunoParticipantYes I have tried.
No matter what, it sends me every time back to Homepage after login š
January 16, 2015 at 17:46 #42378sharmstrModeratorHow are you logging in? If its with facebook then it will direct you back to the homepage. No way around that at the moment.
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 16, 2015 at 17:50 #42381nunoParticipantI’m not using Facebook as you can see in the attach file – http://screencast.com/t/G3GDJQQDIP3M
The only code I get in the functions.php is for redirect after logout.
So… I don’t understand why it doesn’t work.January 16, 2015 at 17:53 #42382nunoParticipantPlease note I can login but after login I get back to homepage every time (with or without the function you suggest to add in function.php of child theme)
January 16, 2015 at 18:02 #42385sharmstrModeratorThey have changed the filter since that code was posted. Try this.
COPY CODEfunction kleo_ajax_login() { // Check the nonce, if it fails the function will break check_ajax_referer( 'kleo-ajax-login-nonce', 'security' ); // Nonce is checked, get the POST data and sign in user $info = array(); $info['user_login'] = $_POST['log']; $info['user_password'] = $_POST['pwd']; $info['remember'] = (isset( $_POST['remember'] ) && $_POST['remember'] === true) ? true : false ; $info = apply_filters('kleo_ajaxlogin_atts', $info); $user_signon = wp_signon( $info, false ); if ( is_wp_error( $user_signon ) ){ $error_msg = $user_signon->get_error_message(); echo json_encode(array( 'loggedin' => false, 'message' => '<span class="wrong-response"><i class="icon icon-attention"></i> ' . $error_msg . '</span>' )); //echo json_encode(array( 'loggedin' => false, 'message' => '<span class="wrong-response"><i class="icon icon-attention"></i> ' . __( 'Wrong username or password. Please try again.', 'kleo_framework' ) . '</span>' )); } else { if ( sq_option( 'login_redirect' , 'default' ) == 'reload' ) { $redirecturl = apply_filters( 'kleo_modal_login_redirect', '/activity/', '', $user_signon ); } else { $redirecturl = apply_filters( 'login_redirect', '', '', $user_signon ); } echo json_encode(array('loggedin'=>true, 'redirecturl' => $redirecturl, 'message'=> '<span class="good-response"><i class="icon icon-ok-circled"></i> ' . __( 'Login successful, redirecting...','kleo_framework' ) . '</span>' )); } die(); }
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 16, 2015 at 18:10 #42387sharmstrModeratorI’ll edit the other posts. Thanks.
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
February 5, 2015 at 18:24 #44845nunoParticipantHi @sharmstr,
I just reopen this ticket.
My question was solved but it works only with the popup modal, not with the form in the right column.
Can you share some good advise to apply the same redirection to the form in right column?I another words, with your hack I can redirect to a particular page after login successful with the pop up modal window. I would like to redirect to the same page when I login in the widget form login.
Thanks in advance,
FranciscoFebruary 5, 2015 at 18:30 #44848sharmstrModeratorI suggest asking over on the buddypress forum since its their widget.
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
February 5, 2015 at 18:33 #44850sharmstrModeratorOr try this plugin http://wordpress.org/plugins/peters-login-redirect/ I think that works with the bp widget
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
February 20, 2015 at 11:23 #46862russellkhanParticipantsince the buddypress upgrade login redirect to profile is not working. anything changed?
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.