• 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: Admin options for specific users

Admin options for specific users 11 years 6 months ago #25016

  • opensoul
  • opensoul's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi
How can I show just the Admin option - Subscribers in an frontend event, for a specific user or user group?
Right now I can just get it to show for a superadmin...
Regards
/Andreas
The administrator has disabled public write access.

Admin options for specific users 11 years 3 months ago #26249

Hi,

I am also searching for a Solution for this issue.
Idea anyone?

Regards
Jochen
The administrator has disabled public write access.

Admin options for specific users 11 years 3 months ago #26251

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

Such a scenario can be achieved through template overrides for the events details page, located under this path:

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

Also, certain modifications have to be done accordingly in the following file by editing its source code:

\components\com_rseventspro\views\rseventspro\view.html.php

More information on template overrides can be found here:

www.rsjoomla.com/support/documentation/v...s-look-and-feel.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Admin options for specific users 10 years 7 months ago #28712

Can anybody help with what "certain modifications have to be done accordingly"?
The administrator has disabled public write access.

Admin options for specific users 9 years 5 months ago #33167

  • jay7
  • jay7's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
1923I had the same issue. I had administrators that I wanted to be able to have administrative options from the front end, but absolutely did not want them to be superadmins.

The easiest solution i have found so far has been to modify the admin() function in

\components\com_rseventspro\helpers\rseventspro.php

It starts on line 2935. I modified it to the following:

// Is the current user an admin
public static function admin() {
$user = JFactory::getUser();
$groups = $user-> groups;
$admins = self::getAdminUsers();

if ((in_array($user->get('id'), $admins)) || (in_array(7, $groups)))
return true;

return false;
}


Basically added

1. A variable that returns an array containing the groups to which the user belongs:
$groups = $user-> groups;

2. An or statement to catch user group = 7 (the admin as opposed to the super admin group.
|| (in_array(7, $groups)))

Now, if the user is in either the super admin group or the admin group the function returns true.

Nothing else needed to be changed.
The administrator has disabled public write access.
The following user(s) said Thank You: clucking
  • 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!