Home › Forums › Calendar Products › Events Calendar PRO › Make a specific Calendar catagory private
- This topic has 50 replies, 7 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
August 1, 2012 at 5:39 pm #23074PhilParticipant
Could I do something to make a certain category of events only visible to logged in users? If so, how could I go about doing it?
August 1, 2012 at 7:02 pm #23097RobMemberHey Phil. Thanks for reaching out; are you saying you want it to be totally inaccessible (ie if a user went to try and access that category via direct URL, they’d specifically be given a 404 or error message)? Or are you just looking to hide the categories from appearing on the frontend for certain users.
My first suggestion would be to see if a third-party role manager plugin (I know a number of our users rely on them) could do the trick; but let me know if I misunderstood what you’re going for here and I can adjust my response as needed. Cheers!
August 2, 2012 at 10:50 am #23130PhilParticipantI want to have a category called Private Events that when put in that category wouldn’t show on the calendar to site guests, but would appear on the calendar to logged in users.
August 2, 2012 at 12:30 pm #23145RobMemberThanks for confirming, Phil. Not sure how doable this is (you may want to look into third-party plugins that can allow for this) but I’ve asked a dev to take a look and try to point you in the right direction. Stay tuned!
August 3, 2012 at 6:57 am #23179PhilParticipantThanks. I am building a site for a church and they have small groups meetings they want to put on the calendar, but they don’t want guests being able to see their member’s home addresses and phone numbers.
August 3, 2012 at 1:13 pm #23194RobMemberGotcha. We haven’t forgotten about this; support has been a bit backlogged as we’re down a man this month but I should be able to get you a response here shortly. Thanks for your patience, Phil.
August 6, 2012 at 12:31 pm #23305BarryMemberHi Phil. I’ve put together a filter function which you can see here:
What I would suggest is placing that within your theme’s functions.php file – all you need to do is change value of $eventCategory (inside the function) and replace it with the slug or name of the category you are planning on using.
If you need any further help with this or can’t get the code to work please just let me know!
August 13, 2012 at 11:44 am #23605PhilParticipantWorks like a charm. Only problem is if I update my theme framework, won’t I lose my customization?
August 13, 2012 at 6:39 pm #23614PhilParticipantAlso discovered that Private events don’t show up in calendar view, but they Do in list view though 🙁
http://fredpres.allsaintsmedia.com/events/upcomingAugust 15, 2012 at 8:03 am #23694RobMemberThanks for the follow-up, Phil. Not sure if Barry saw your last note but I’ve passed this back his way just to be safe. Stay tuned.
August 15, 2012 at 5:21 pm #23721BarryMemberYeah sorry Phil, I must have missed your reply. Give me a sec to look over this.
August 15, 2012 at 8:31 pm #23724BarryMemberHey Phil.
Regarding the possibility of losing the customization when your theme updates, a possible way of dealing with this is to place the additional code in a child theme – that said, the best thing here is to read up on your theme framework’s documentation and see what the framework authors suggest, I’m sure they have a strategy that allows people to safely customize their themes.
For the “private events” that are showing in the upcoming events list I’m afraid I’m going to have to pass this one up the chain – I think we could do this with another filter however I’d rather pull in advice from an expert on this one.
If you bear with me I will see if I can get some help from one of the core devs.
Thanks!
August 17, 2012 at 10:03 am #23772PhilParticipantAny Hope Barry?
August 17, 2012 at 4:41 pm #23777BarryMemberI haven’t heard anything so far – but I’ll follow up early next week if that’s ok. The team is pretty busy and this is a fairly specific customization – but give us a little more time and we’ll see what we can do.
August 17, 2012 at 9:39 pm #23781Andy FragenModeratorBarry, an idea to make sure these customizations survive theme updates is to put it in your own little plugin. Activating the plugin will ensure the code loads and any theme updates won’t affect it.
-
AuthorPosts
- The topic ‘Make a specific Calendar catagory private’ is closed to new replies.