• Resolved loesshillshog

    (@loesshillshog)


    My HOG Chapter would like to use this plugin (along with The Events Calendar) to enable members to see what events are planned, and who will be attending. Due to HOG bylaws we need to restrict visibility of who’s registered to only members of the Chapter.

    Is there a way to limit visibility of registrations for an event to only Password protected pages?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author roundupwp

    (@roundupwp)

    Hey loesshillshog,

    This is a setting available in the “Pro” version but if this is the only feature you need, you could add this PHP to your functions.php file to show the attendee list only to logged-in users:

    function ru_attendee_list_logged_in_only( $event_meta ) {
    	if ( !is_user_logged_in() ) {
    		$event_meta['show_registrants_data'] = false;
    	}
    
    	return $event_meta;
    }
    add_filter( 'rtec_event_meta', 'ru_attendee_list_logged_in_only' );

    Let me know if you need more help!

    – Craig

    Thread Starter loesshillshog

    (@loesshillshog)

    Thank you for the response.

    That helps,,, but what I’d ultimately like to do is to be able to limit visibility of the registered participants to only chapter members.

    My chapter members do not have a login to the WordPress site. We use password protected pages for those parts of the site that is limited to members only.

    Since the “free” version does not support shortcodes I’m trying to work out how I can allow the public to see the event, but only members who have access to a password protected page to see who’s participating. (This is due to security concerns. If we have a bunch of riders that are going out of town for a long time we don’t want the public to see who’s not going to be home)

    Our chapter doesn’t have the budget to purchase the Pro version, so at this point I think I can use your code to protect the calendar, and then I’ll have to create a password protected page that will do some queries against the WP database to gather the events and the particpants and display them in an HTML table.

    Any other suggestions would be appreciated!

    Thanks again for your assistance.

    Plugin Author roundupwp

    (@roundupwp)

    Hey again loesshillshog,

    Ahh sorry about that! I see now that I didn’t read your first message carefully. This is definitely possible as you can display the attendee list with a shortcode for any event. Here are the steps:

    1) Disable the “Show Attendee List Above Form” setting on the “Form” tab.
    2) Go to the page to “edit” the event you want to display the attendee list for.
    3) Scroll down past the registration settings and copy the attendee list shortcode that is specific to that event https://snag.gy/oDryNz.jpg. For example:

    [rtec-attendee-list event=1426 showheader=true]

    This shortcode will display the attendee list for the event with the ID 1426 and include the title of the event and the start/end times.

    You can add as many of these shortcodes to your password protected page as you need to.

    Sounds like you are handy with PHP. You can modify the HTML for the attendee list using a hook. Take a look at this page on how you can make the attendee list into a table: https://roundupwp.com/codex/action-rtec_the_attendee_list/

    Let me know if you have more questions!

    Thread Starter loesshillshog

    (@loesshillshog)

    THANK YOU!!! That is exactly what I was looking for. I sincerely appreciate your assistance.

    Thread Starter loesshillshog

    (@loesshillshog)

    Excellent support.

    Plugin Author roundupwp

    (@roundupwp)

    Hey again,

    Glad we could figure something out for this! I’m happy to help.

    No obligation or anything, but if you wanted to leave a quick review it would be greatly appreciated. Otherwise please let me know if you ever need anything else.

    Thanks again and good luck with your events!

    Craig

    Plugin Author roundupwp

    (@roundupwp)

    Thanks for the great review! That really helps encourage others to try the plugin so it’s greatly appreciated.

    I hope you’re having a good weekend!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Security options for “Registrations”’ is closed to new replies.