• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Only show registered guests after registration

Only show registered guests after registration 10 years 3 months ago #26130

There is an option under Event Registration that says, "Show registered guests on the event page". Is there a way to only make this visible to members that have already registered and logged in, and hide it from public, non-registered view?
The administrator has disabled public write access.

Only show registered guests after registration 10 years 3 months ago #26137

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can try achieving this through template overrides as explained here:

www.rsjoomla.com/support/documentation/v...s-look-and-feel.html

The file you need to perform template overrides is located under this path:

\components\com_rseventspro\views\rseventspro\tmpl\show.php

Open the duplicate and search for:
<!-- Show subscribers -->
<?php if ($event->show_registered) { ?>

Replace the above code with:
<!-- Show subscribers -->
<?php $user = JFactory::getUser(); ?>
<?php if ($event->show_registered && $user->id != 0) { ?>
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: paul.lott

Only show registered guests after registration 9 years 7 months ago #28625

Thanks, what about for different user groups, I only want my team members to see the list.
The administrator has disabled public write access.

Only show registered guests after registration 9 years 7 months ago #28628

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
adrianp wrote:
Hello,

You can try achieving this through template overrides as explained here:

www.rsjoomla.com/support/documentation/v...s-look-and-feel.html

The file you need to perform template overrides is located under this path:

\components\com_rseventspro\views\rseventspro\tmpl\show.php

Open the duplicate and search for:
<!-- Show subscribers -->
<?php if ($event->show_registered) { ?>

Replace the above code with:
<!-- Show subscribers -->
<?php $user = JFactory::getUser(); ?>
<?php if ($event->show_registered && $user->id != 0) { ?>

Instead of using the code provided by my colleague, you can use the following:
<!-- Show subscribers -->
<?php $user = JFactory::getUser(); ?>
<?php if ($event->show_registered && array_search('8', $user->groups)) { ?>

Don't forget to change '8' with the actual ID of the desired usergroup.
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 9 years 7 months ago by cosmin.cristea.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!