No event found message

Home Forums Welcome! Pre-Sales Questions No event found message

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1103644
    John Wilkins
    Guest

    I need to have a message come up when a user with insufficient permissions to see any events accesses the events page, or there are no events under a given category. How do I do this?

    #1103823
    Geoff
    Member

    Hi John,

    You could use a template override (more on this in our Themer’s Guide) and wrap the calendar’s default-template.php template in a conditional that checks whether someone is logged in and either displays the calendar (for those logged in) or something else (for those not logged in). Something like this:

    <?php
    if ( is_user_logged_in() ) {
    // The calendar markup
    } else {
    echo 'Please log in to see the calendar';
    }
    ?>

    I do want to note that we are fairly limited in how much we can support custom development questions like this, especially in our Pre-Sales forum here — but please let me know if you have any pre-sales-related questions and I’d be happy to help as best I can. 🙂

    Cheers,
    Geoff

    #1110079
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘No event found message’ is closed to new replies.