Community Events Login VS Theme Login

Home Forums Calendar Products Community Events Community Events Login VS Theme Login

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #1068526
    Kevin
    Participant

    I 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.

    #1068535
    Kevin
    Participant

    RE: 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

    #1069807
    Nico
    Member

    Hey 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,
    Nico

    #1073500
    Kevin
    Participant

    Sorry 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.

    #1074237
    Nico
    Member

    Hey 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,
    Nico

    #1074453
    Kevin
    Participant

    Thank 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]

    #1077376
    Nico
    Member

    Hey 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,
    Nico

    #1077730
    Kevin
    Participant

    Sorry 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.

    #1080109
    Nico
    Member

    Hey 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,
    Nico

    #1082437
    Kevin
    Participant

    Hi 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.

    #1082668
    Kevin
    Participant

    Okay! 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.

    #1082927
    Kevin
    Participant

    I 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.

    #1083424
    Nico
    Member

    Hey 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

Viewing 13 posts - 16 through 28 (of 28 total)
  • The topic ‘Community Events Login VS Theme Login’ is closed to new replies.