Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bkiehle

    (@bkiehle)

    The gial is to prevent users who are not logged in from seeing the list view (of course also the month view).

    Plugin Support Darian

    (@d0153)

    Hi @bkiehle

    Thanks for your message.

    Your desired use-case scenario may be possible with some custom coding, but if you decide to give that a try, please note we cannot provide full support for custom implementations like that.

    A good place to start would be our Themer’s Guide, if you’re comfortable doing it DIY. https://theeventscalendar.com/knowledgebase/guide/customization/

    In the meantime, I think you can use the shortcode mentioned in our knowledgebase article on a template override for your list view. You can also reach out to the Ultimate Member team for guidance on effectively implementing content restrictions within our templates.

    I hope this helps. Let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

    Thread Starter bkiehle

    (@bkiehle)

    Hi @d0153 ,

    for example, I can use the following code in title.php to restrict the title for users of a specific role:

    echo do_shortcode( '[um_show_content roles=“um_members”]' . $event->title . '[/um_show_content]' );

    How can I restrict the overview pages (list view, monthly view, daily view) and the individual events? All pages should only be accessible for a specific user role.

    Plugin Support Darian

    (@d0153)

    Hi @bkiehle

    You can try to do a template override the following for the Single events, Month, List and Day views:

    • the-events-calendar/src/views/single-event.php
    • the-events-calendar/src/views/v2/month.php
    • the-events-calendar/src/views/v2/list.php
    • the-events-calendar/src/views/v2/day.php

    To know on which path to copy the template to your theme, you can check the top most part of those files.

    E.g. https://share.zight.com/JruEDzRX

    It would be better if you can ask the Ultimate Member support team on how to check the current user’s role using PHP so you can easily add a condition at the top of those templates and show a restricted message or something.

    Let me know if you have further concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Restrict access to list view with ultimate member plugin’ is closed to new replies.