Home › Forums › Calendar Products › Community Events › Community Events Login VS Theme Login
- This topic has 27 replies, 2 voices, and was last updated 10 years, 1 month ago by
Nico.
-
AuthorPosts
-
February 5, 2016 at 2:56 pm #1068526
Kevin
ParticipantI just noticed that the same thing happens when I go to My Events page. I am first redirected to the EC login page. Seems that EC login account doesn’t connect with the theme login account.
February 5, 2016 at 3:11 pm #1068535Kevin
ParticipantRE: Redirect Snippet you provided
Sorry i spoke too soon. after adding that redirect snippet, I am being redirected to the ADD EVENT page. the problem is that I only want that function to exist when a user selects ADD EVENT. not when the just select LOGIN. can I change the redirect for the LOGIN link separately?
I am still experiencing the Logged in users not being logged in on EC
February 8, 2016 at 2:52 pm #1069807Nico
MemberHey Kevin,
Sorry to hear this is still an issue 🙁
…the problem is that I only want that function to exist when a user selects ADD EVENT. not when the just select LOGIN. can I change the redirect for the LOGIN link separately?
Not sure how that works in the theme’s login, mind contacting them again on this?
I am still experiencing the Logged in users not being logged in on EC
Not sure why this is happening (as the theme support confirmed their login is working with default wp auth). Our code uses the WordPress is_user_logged_in function to check if the login form should be shown or not. When logged in via your theme login you are able to access the WordPress Dashboard? What’s the user role of users in your site?
Please let me know about it,
Best,
NicoFebruary 15, 2016 at 8:11 pm #1073500Kevin
ParticipantSorry for the late response. I have the User Role set to ‘Default WordPress Redirect’ based on your recommendation earlier in this thread.
Please let me know what else I can try, or if there is anything i need to ask from the Theme group.
Thanks again.
February 17, 2016 at 6:04 am #1074237Nico
MemberHey Kevin,
Thanks for following-up!
Regarding the set-up of the buttons and the redirects, you’ll need to contact the theme support. I’m not sure what else to try on that, as it’s their product they should be able to help you better.
What I can still help you with the authentication issue/incompatibility once you are logged in via the theme. As stated in previous reply we use the default WordPress function is_user_logged_in to check if users are logged in. What it seems strange is that if the theme login is using WP standard auth methods it should work. If you log in via the front-end of the site using the theme login are you able to access the WordPress admin section for example?
Best,
NicoFebruary 17, 2016 at 7:14 am #1074453Kevin
ParticipantThank Nico, I will contact the theme people regarding the redirects issue.
When a user logs in, they can access the front-end admin/My Account page. They do not see the WP Dashboard (I previously had that issue that was apparently due to the user role being defined as ‘Author’). However, even after being logged in, selecting ‘ADD EVENT’ brings up the login screen. Not sure if perhaps the snippet of code we added earlier in the thread forces that redirect to the login. let me know your thoughts. thanks again!
you can test that with the following login info:
[credentials removed]February 18, 2016 at 12:24 pm #1077376Nico
MemberHey Kevin,
Yes, please remove the snippet and re-test! Maybe that’s why the users logged in via front-end are getting bounced out of that page.
Also I’ve removed the credentials you posted as we are not allowed to log in into client site to make changes!
Please let me know if the login works without the redirect,
Best,
NicoFebruary 18, 2016 at 7:55 pm #1077730Kevin
ParticipantSorry Nico, I feel like we are at square one here. There are 2 snippets of code that you provided earlier is this thread. the first is from Feb 1. That code includes is_user_logged_in but I then I removed it as we continued to troubleshoot. the second snippet of code you provided was on Feb 5 and does not include is_user_logged_in.
Now i’m not sure what to do. but I believe I removed the code from the functions.php – but currently, even when I am logged in, selecting ADD EVENT brings up the theme’s pop-up login and does not recognize that I am already logged in.
I provided the credentials not to make changes – but so you can experience the issues that I’m having.
Please let me know what I can do. I really do need to resolve this soon as nobody can add any event onto my site.
Thanks again for your attention to this.
February 22, 2016 at 12:03 pm #1080109Nico
MemberHey kevin,
I totally agree with you, I feel the obstacle here is the theme login and how it works. Let’s re-cap a bit:
- The first snippet aimed to redirect the user directly to the WordPress login page, that was before getting what you needed. Please comment out this snippet as it wasn’t solving your issue.
- The second snippet was to show you how the login_redirect filter works in WordPress. According to your theme that’s how to redirect users after they use the theme specific login modal.
Now i’m not sure what to do. but I believe I removed the code from the functions.php – but currently, even when I am logged in, selecting ADD EVENT brings up the theme’s pop-up login and does not recognize that I am already logged in.
This is something on how the theme login works. Can you ask them about it? Maybe there’s a class you can add to the link to redirect to a given URL if the user is logged in?
I provided the credentials not to make changes – but so you can experience the issues that I’m having.
Send them over a private reply please, but again I’m not sure I can help you out with how the login popup works! At least I can check if the login systems are compatible.
Thanks,
NicoFebruary 26, 2016 at 8:24 am #1082437Kevin
ParticipantHi Nico, further to my private reply, I have removed the class kleo-show-login from the ‘Add Event‘ menu item. It was added earlier in this thread. that removed the theme pop-up login from appearing – but it still EC still does not register the user as being logged in. an now it redirects the user to the EC login screen.
February 26, 2016 at 11:47 am #1082668Kevin
ParticipantOkay! so i discovered the problem. oddly, the issue was that my “ADD EVENT” menu item was a custom link that started with http://www.mydomain….
When I removed the “www.” and left it as “http://mydomain….” it worked.
now all i need to resolve is to change when a user (not logged in) selects ADD EVENT, i need it to load the Theme login instead of the Events Calendar login. This takes us back to the original feedback from the theme support:
It uses the standard auth. Tell them you need to change their login link. It needs to have the ‘kleo-show-login’ class added to it. That’s what triggers the login modal.
I have tried to add the kleo-show-login CSS class but that ALWAYS brings up the pop up and then it affects users who are logged in. I suppose what I need to incorporate the is_user_logged_in function with the kleo-show-login class?
Please let me know your thoughts! thanks again.
February 27, 2016 at 9:54 am #1082927Kevin
ParticipantI was finally able to resolve this issue using this plugin:
https://wordpress.org/plugins/menu-items-visibility-control/
I simply created 2 menu items called MY EVENTS. One with kleo-show-login CSS Class to users who are not logged in and the other without the CSS class for users who are logged in. Would have preferred not to have to install another plugin – but it does work well. If you think there is a better way to achieve this i would love to hear it, otherwise i’m finally marking this thread as Issue Resolved! Thanks for your help.
February 29, 2016 at 9:02 am #1083424Nico
MemberHey Kevin,
Thanks so much for keeping me posted on your progress. As we do not monitor forums during the weekend, I’m just seeing this now when it’s solved 🙂
I guess the approach you took sounds great, if it’s a light plugin and works well I think you should not worry about it. Glad you could finally solve this, I was starting to feel I wasn’t being able to help much!
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘Community Events Login VS Theme Login’ is closed to new replies.
