Private Calendar

Home Forums Calendar Products Events Calendar PRO Private Calendar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1206359
    Lisa
    Participant

    Hi, I need to make my calendar private and only available for logged in members.

    I understand that I can use the shortcode and then make the page private, but the issue I have with doing this is I want to be able to provide a direct link for non members to purchase tickets to some of the events on the calendar.
    When you visit a direct link there is a link that say’s ‘« All Events’ – which is fine for logged in users but for logged out users it iwll take them to the default calendar which then allows them to view the information.

    Thoughts on how I can best resolve this?

    Thanks!

    #1206505
    Geoff
    Member

    Hi Lisa,

    Welcome to the forums!

    Great question. The truth is that The Events Calendar is not totally ideal to be used as a private calendar in the way you’re describing it. Events can be published “private” and you can use a shortcode to embed the full calendar on a private page, but differentiating between logged in and non-logged in visitors is something it was not intentionally designed to do outside those options.

    One idea you might consider is to remove the “All Events” link, which you can do by adding the following CSS to your theme’s style.css file:

    .tribe-events-back {
    display: none;
    }

    Another idea might be to only display tickets to logged in members. You can do that by wrapping the code for the ticket for in a conditional statement that checks whether someone is logged in before displaying the tickets. For example:

    if ( is_user_logged_in() ) {
    // The ticket form code
    } else {
    echo 'Please log in to purchase tickets.';
    }
    ?>

    Sorry I don’t have a concrete solution for you here, but I hope these options at least help get you started in the right direction.

    Cheers!
    Geoff

    #1214347
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Private Calendar’ is closed to new replies.