Make entire calendar private?

Home Forums Calendar Products Events Calendar PRO Make entire calendar private?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22593
    Jason Lovoy
    Participant

    I’d like to make an entire calendar private. The events urls don’t necessarily have to be, but the main events page.

    Is there a filter I can use to wrap the entire output of The Events Calendar in my own function to make it private? Normally for page content, I’d just change the type of page to password protected. Since TEC takes over the url, I need to filter the whole output and wrap it in something of my own, which I’m comfortable doing. So basically, I just need to know how I can wrap the entire calendar output with my function.

    Thanks,

    #22605
    Andy Fragen
    Moderator

    John, you might try creating an override template and use the is_user_logged_in() function. That way only logged in users can see the calendar. If you want something more private than that you could base viewing on user level. Great discussion of that here, http://wplifeguard.com/how-to-use-wordpress-to-display-content-depending-on-a-users-level/

    #22643
    Rob
    Member

    Good tip, Andy.

    John: this work for you?

    #22862
    Jason Lovoy
    Participant

    Thanks guys,

    I ended up using the WordPress post_password_required() function and setting it in line with a page that I’d created. Then I forked the get_the_password_form() function in WordPress to work with a user provided page ID to pass the id of the faux page I created to establish a connection to the password requirement. It was a little janky, but it worked. I didn’t want to require login, just a password.

    Thanks though, the template override made it possible, and I wasn’t thinking about that at first. I put it on the gridview template w/o an issue

    #22937
    Rob
    Member

    Nice – thanks for confirming as much, John. Glad to hear you got a method here that works for you and that the override was able to assist in that. Sounds like we’re set with this particular issue so I’m going to close it out…but if we can do anything more in the future just holler.

    Thanks again for the tip, too, Andy!

    #977456
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Make entire calendar private?’ is closed to new replies.