Login Required for Event Details

Home Forums Calendar Products Events Calendar PRO Login Required for Event Details

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25787
    Shauna
    Participant

    I’m wondering if there is a way to make a login required to view the details of the calendar events (specifically locations, and contact numbers, etc). We don’t want just anyone getting access to home addresses, so we want to require someone to register for approval in order to log in to view these details. I appriciate the help!

    #25800
    Barry
    Member

    Hey Shauna, this is completely possible but it would require some knowledge of PHP and WordPress to make it happen.

    In essence though you could override the Events templates and add a condition based on WordPress’s wp_get_current_user() function to reserve blocks of content for the eyes of logged in users only.

    #25804
    Shauna
    Participant

    Barry,

    This is very helpful. I’m pretty sure I can do this. I’ll see what I can do, but if I get stuck I’ll try posting a specific question here! Thank you so much for the response!

    #25805
    Shauna
    Participant

    Does anyone know what plug-in files would need to be edited to do this?

    #25806
    Barry
    Member

    Hey Shauna, reading our documentation and in particular the themer’s guide would make a great starting point here: the general principle here is that you should not make changes to code in The Events Calendar (or Events Calendar PRO) plugin files, otherwise those changes will be lost when next you update.

    The basic idea is to create an events sub-directory within your theme and place any templates you wish to override in there. So, assuming you wanted to change the details that are visible when a single event is viewed you would very likely be looking at making a change to your custom events/single.php (and possibly the events/single-venue.php) template.

    Hope that gets you started 🙂

    #977861
    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 ‘Login Required for Event Details’ is closed to new replies.