/events and /events/month private

Home Forums Calendar Products Events Calendar PRO /events and /events/month private

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23250
    Kyle
    Participant

    Is there a way to make these two pages visible to only author level users?

    I have community events, so users can view their own individual events on the events/community/list and /event/## pages. However, I am using this on a multisite setup, so I want the actual calendars and full event lists to be accessible by only the site owners (author-level)

    #23282
    Joyce Grace
    Member

    Hi Kyle, you would either need to custom code this or install a plugin like wp members which can blog pages to only logged in users. I’m not sure if it works in conjunction with plugins that can control user roles, but you could give it a shot.

    #23478
    Kyle
    Participant

    Thanks for the response Joyce

    So I put in a plugin that does so, but since I those two pages aren’t pages that you can do to the edit screen I can’t set permissions-know what I mean? I’ll keep trying, but any other tips would be appreciated

    #23479
    Kyle
    Participant

    Okay, wrapping the entire code for the /view files for both those pages in if(current_user_can()){ code } else { wrong permission message } did the trick for what I was looking for.

    #23512
    Joyce Grace
    Member

    That’s great to hear, thanks for sharing Kyle! I’m sure it will come in handy for other users. Sorry my plugin idea wasn’t the greatest 🙁

    #977536
    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 ‘/events and /events/month private’ is closed to new replies.