Event summary & Google map showing on blocked (wp-members) events

Home Forums Calendar Products Events Calendar PRO Event summary & Google map showing on blocked (wp-members) events

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1063942
    scamrcalendar
    Participant

    Hi,

    I am using the wp-members plug in to secure portions of a website I’m building for a hiking club. They want the event data secure so only Club members can access it.

    Wp-Members appears to block access to all of the event data, with 1 exeption. At the bottom of the event, there is a box that has a summary of the event (date, time), and the google map showing the location. I’m trying to figure out how to ensure that is blocked unless a user is logged in as well.

    I tried adding an excerpt thinking maybe that would do it – but it didn’t.
    I have a query into the Wp-Members support folks as well. Hoping one of the two of you would have run into this.

    Thanks
    Kathy

    #1064163
    Geoff B.
    Member

    Good evening Kathleen and welcome back!

    Thank you for reaching out to us.
    We will gladly try to assist you on this topic.

    In case you haven’t already, I recommend reading the following post on this very subject.

    To make a long story short, normally by adding and removing the proper capabilities to the different roles listed in the post, you should be able to hide the rebellious information.

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1064469
    scamrcalendar
    Participant

    Hi Geoff,

    Thanks for the info on the Members plug-in. I was using the WP-Members already. I installed Members and gave it a whirl. Unfortunately I seem to run into the same issue whether I use WP-Members to block/allow content, use Members to set permissions for viewing content, or both.

    In WP, the Event Restriction (via WP-Members) is set to Blocked.
    Content permissions are set so Admins, Author, Contributor, Editor, Event Coordinator & Subscriber can view.

    A Contributor’s permissions are set to allow reading of events, venues, organizers.

    Both do a good job of restricting content to everything BUT the Event summary at the bottom of the event screen. This summary has the Details (date, time, cost, event category), the Organizer (name, phone, email), the Venue (city, state, GPS coordinates) and the Google Map.

    For folks that are not logged in/do not have permissions to view an event, I need to hide the event summary info as well.

    Both plug-ins seem straight forward, but I am guessing that I’m missing something?

    #1064491
    scamrcalendar
    Participant

    Check out HikeEvent to see the event summary info that is NOT hidden.

    #1064772
    Geoff B.
    Member

    Good evening Kathleen,

    Thank you for your answer and for trying out the members plugin.
    I went ahead and did a few tests of my own and arrived to the same results as you did.

    The reason why the links and the event meta are displaying in spite of the Members plugin action can be found in /the-events-calendar/src/views/single-event.php around line 65-71.

    Basically the members plugin is blocking the_content, but not what gets called afterwards (the links and the event meta).

    The best solution would be to read our Themer’s guide and do a template customization for the single-event.php. You can draw inspiration from my colleague George’s post on a related topic.

    Let me know if that helps.

    Have a great week-end!

    Geoff B.

    #1065891
    scamrcalendar
    Participant

    Hi.

    Thanks for the pointers. I have created a single-event.php per the Themer’s Guide. I also had found the lines of code I thought were of issue, and you confirmed that – so thanks for that!

    However, in trying to move the Event Meta functions around, all I succeeded in doing was moving the actual event summary / map window around. But it always still displayed.

    I’m guessing that there is something in ‘tribe_events_single_event_description’ that I might need to modify – but I have no clue where to find the function itself (or documentation on it). Where might I find this?

    Thanks
    Kathy

    #1066049
    Geoff B.
    Member

    Good evening Kathy,

    I appreciate the effort. Kudos on that!
    Let me run this by my senior teammate to have his 2 cents on it.

    Unfortunately this means we’ll have to wait until tomorrow to get some additional feedback.

    So thank you for your patience 🙂

    Have a great night!

    Geoff B.

    #1066593
    scamrcalendar
    Participant

    Hi Geoff,

    It turns out that by using the following

    if ( is_user_logged_in() ) {

    // This is the main part of the single-event template

    } else {

    // This could be html or whatever to show the user something if they are not logged in

    }

    The entire single event page does not show until the user is logged in. I just left the else {} blank, and allow the system to serve up my login requirement message and screen, but one could override it with something specific.

    Thanks to Chad at wp_members support for coming up with this. I had tried many things, but missed the obvious. This was a nice, simple way to implement what I needed.

    Thanks to you, Geoff, for all your help in digging up info on this too. If you find pointers to documentation/functions/etc – that’d be awesome. If not, ’tis ok.

    You can consider this one closed. 🙂 Have a great weekend.

    – Kathy

    #1066604
    Geoff B.
    Member

    Good evening Kathy,

    This is awesome! Congratulations on finding a resolution that pleases you!

    It turns out this is more elegant and simpler than the solution I was going to present to you after talking to my team mate.
    So I am going to go ahead and close this one.

    Have an awesome week and you are always welcome back here if you have additional questions.

    Geoff B.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event summary & Google map showing on blocked (wp-members) events’ is closed to new replies.