Home › Forums › Calendar Products › Events Calendar PRO › Make entire calendar private?
- This topic has 5 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 23, 2012 at 2:54 pm #22593
Jason Lovoy
ParticipantI’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,
July 23, 2012 at 5:56 pm #22605Andy Fragen
ModeratorJohn, 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/
July 24, 2012 at 11:21 am #22643Rob
MemberGood tip, Andy.
John: this work for you?
July 27, 2012 at 12:40 pm #22862Jason Lovoy
ParticipantThanks 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
July 30, 2012 at 10:32 am #22937Rob
MemberNice – 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!
July 7, 2015 at 6:25 am #977456Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Make entire calendar private?’ is closed to new replies.
