buttman
  buttman
Gold Member
  Wednesday, 23 August 2017
  7 Replies
  1.1K Visits
0
Votes
Undo
Hello,

I'm trying to customise backend of Joomla to make it as simple as possible for my very, VERY er... unqualified users, meaning - I got rid of all elements that aren't 100% necessary and could make them go 'hm, what does it do? what if I?...'

Thanks to cpanel.php that you made possible to be overriden, I moved few icons to 'admin-only' view (including 'Categories'). I've tried to do the same with backend sidebar, but met a little of disconsistency here. While I can override cpanel, I actually can't override sidebar, as its content is defined in /administrator/com_jevents/helpers/jevents.php, which obviously can't be overriden.

Please, consider this feature in future releases of JEvents.

Cheers,

Olek
Thursday, 24 August 2017 09:26
·
#192365
0
Votes
Undo
Hi Olek,
why not using CSS to hide what you do not want?
Thursday, 24 August 2017 09:39
·
#192368
0
Votes
Undo
The only way of hiding items in this sidebar that I can think of is nth-child method (items don't have distinctive classes, all are just 'li' elements), but the order and quantity of these items depend on current user's ACL rights. So - a bad idea. Besides, I want some elements hide only from one (but rather big) group of users, so superadmins still see them. The only reasonable way to achieve this is modifying the helper file and put these 'unwanted' items uder 'if (JEVHelper::isAdminUser()'.
Thursday, 24 August 2017 10:01
·
#192371
0
Votes
Undo
I thought you wanted to hide the sidebar altogether. Items which user are not allowed to manage should be hidden, have you check the JEvents permissions about that?
Thursday, 24 August 2017 10:12
·
#192372
0
Votes
Undo
Yes, I've checked all the 'official' possibilities. For example I don't want my users to see the 'Categories' item. They are to create and edit events - that's it. In cpanel they See only one icon: 'Manage Events', which is perfect for my needs. I've tried to accomplish the same with sidebar, but 'Categories' item is displayed no matter what. As I said - I managed to hide it with the help of modified helper, but this workaround is very unelegant and will have to be repeated after every JEvents update.

So that's why I marked this subject as 'feature request' - you'll judge if it's worth implementing at all. If not - I'll just stick to overwriting this helper file 'till the judgement day. Nobody said webmastering is easy.
Thursday, 24 August 2017 10:24
·
#192373
0
Votes
Undo
Yes, I've checked all the 'official' possibilities. For example I don't want my users to see the 'Categories' item. They are to create and edit events - that's it. In cpanel they See only one icon: 'Manage Events', which is perfect for my needs. I've tried to accomplish the same with sidebar, but 'Categories' item is displayed no matter what.

That is indeed the way that should be and I am actually seeing it works in another user site right now. Can you please provide Super User Access to your site so that I can see what's the problem? I think fixing this (I mean, when a user cannot manage categories, he should not see the link) is much more interesting as it will save you work ;).


Nobody said webmastering is easy.

Our work is to do our best to make it as easier as possible for webmasters!! We'll try to relieve you from the pain ;)
Thursday, 24 August 2017 10:29
·
#192375
0
Votes
Undo
Haha :D ! This other site is my site, where I modified the helper already. You're right now helping me there to get notifications of new events waiting for approval :-)

https://www.jevents.net/discussions/publishing-other-users-events

So you've got all the credentials over there already
Thursday, 24 August 2017 10:36
·
#192378
0
Votes
Undo
#facepalm#

I do not usually look at usernames when replying in the forums so I didn't notice.

Ok then I'll do some tests on my development box and will come back to you ;)
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.