By Guest on Wednesday, 23 August 2017
Replies 7
Likes 1
Views 1.1K
Votes 0
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
Hi Olek,
why not using CSS to hide what you do not want?
·
Thursday, 24 August 2017 09:26
·
1 Likes
·
0 Votes
·
0 Comments
·
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 09:39
·
1 Likes
·
0 Votes
·
0 Comments
·
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:01
·
1 Likes
·
0 Votes
·
0 Comments
·
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:12
·
1 Likes
·
0 Votes
·
0 Comments
·
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:24
·
1 Likes
·
0 Votes
·
0 Comments
·
Haha ! 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:29
·
1 Likes
·
0 Votes
·
0 Comments
·
#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
·
Thursday, 24 August 2017 10:36
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post