By NIna Mårtensson on Thursday, 21 November 2013
Posted in General
Replies 18
Likes 0
Views 1.8K
Votes 0
Hi
Is it possible to hide menu items for a specific user group (joomla).
we want to hide the "create entry and "settings" buttons for users who are not of a specific user group.
buit still show the other buttons that users who are not logged in can see. So we dont want to hide the entire menu.

Tried with the acle settings but we canb still se the buttons but when we go to create new entry we get a "you can not publish entries " warning but we want to completly hide the button.

We can probably hack it together with a new menu but having the option in easyblog would be great
Hello Lars,

Hmm, this is not a plan I just provide another way to you, see that is it suitable for you. Because the Easyblog ACL didn't have that "Setting" button, only have that write entry and publish entry option. Alright, keep update then,
·
Friday, 22 November 2013 19:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

Yep, just go to the back end ACL area of EasyBlog and disable the "Create blog post" and "Publish blog post" acl rule for the groups that you would like to disable
·
Thursday, 21 November 2013 00:06
·
0 Likes
·
0 Votes
·
0 Comments
·
You sure that it hides the buttons? i can see the buttons but when i click on "create" which then loads the form but with a warning...
·
Thursday, 21 November 2013 00:11
·
0 Likes
·
0 Votes
·
0 Comments
·
When you meant disallow "Create", you do mean you want to disallow user's from a specific user group from creating blog post am I correct? If that is so, disabling both these ACL options would disallow that users in the group from creating new blog posts
·
Thursday, 21 November 2013 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, but the menu item is still there.
"we want to hide the "create entry and "settings" buttons "
/Lars
·
Thursday, 21 November 2013 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

Can you please provide us with the back end access to the site and also let me know which group you would like to hide the create entry and settings buttons?

Also, so that I don't get you wrongly, can you provide a screen shot of the area that you would like to hide?
·
Thursday, 21 November 2013 20:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, so we only want to show the buttons for the user group called "bloggers"
All others should not have these buttons when logged in

I have only two user in that group right now, me and tmp_easyblog(provided)

Feel free to create a new one for only "registered" users or use login provided
·
Thursday, 21 November 2013 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

Sorry for late reply to this,
It seems like our Easyblog > ACL doesn't have this setting, could you can provide FTP access so we can help you remove some code from your file (create entry and setting button)? Please advise.
·
Friday, 22 November 2013 01:15
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem, sounds great that you can help with this...
We only allow sftp, use details provided. good luck.
·
Friday, 22 November 2013 05:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars,

Sorry for late reply to this,
Could you mind back up your this file "toolbar.php" first then copy my attachement file to your file location place.
JoomlaFolder\components\com_easyblog\themes\default\toolbar.php
And see how it goes. Because i can't access with your sftp, if that 2 button still appear in your side, please refer back to us.
·
Friday, 22 November 2013 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi i have now this morning tried the new toolbar.php.
It would appear that no users can see the toolbar. i would have hoped that we could asign the buttons to a specific user group to a acl setting.
I will try some stuff to make sure i have not missed something.
·
Friday, 22 November 2013 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, so in toolbar.php i tried throwing in the "button" under the "if(($acl->rules->publish_entry) || ($acl->rules->add_entry) || ($acl->rules->delete_entry))" section

The button now shows for all "acl groups(except public :-) )" even thow it should not. only "bloggers" user groups should see with the current acl settings we have...

Have not done much php mods in your system so not sure f i should go on or let you guys handle it. Would like to throw out the acl settings just to make sure that the logged in user are getting the correct acl settings....seems like it don´t?
·
Friday, 22 November 2013 17:13
·
0 Likes
·
0 Votes
·
0 Comments
·
My bad. it would seem that the hierarkies in the acl screwed this up. i had to go into the acl settings for each of the user groups under "registered" and remove the "can publish, can wirte...." access. i would have expected that to be own from the parent "registered"
Seems like it is working.
Great work in helping me out with this guys, and pointing me in the right direction to where i can find the solution.
·
Friday, 22 November 2013 17:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lars.

I'm sorry that i couldn't help much here. Gald to heard your issues resolved.
If you're interesting about this, you can try to back up your current "toolbar.php" file and replace my attached file to your location file and see how it goes? What i did is manually set the user group number, if the user ( blogger, superuser, administrator) then it will show the button, else it doesn't show. If this code not suitable for you, then ignore it.
·
Friday, 22 November 2013 18:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Sounds like a plan. this way i dont have to worry about new user groups....
I´ll try and get back to you...
·
Friday, 22 November 2013 18:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Odd, with this setting i could only do a "quick" post not a full blog entry, think its called microblog or something?
I even tried moving the segment from the backed up version to this new one with the :


($gid == '7') || ($gid == '11') || ($gid == '8')


segment in it...
·
Friday, 22 November 2013 19:07
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks arlex and the rest of the guys
·
Tuesday, 10 December 2013 22:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now.
·
Wednesday, 11 December 2013 00:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post