I have a feeling the answer is somewhere easy to be found but I can't find it. How do you make menu item specific to user group?
I used Content Access module for a section to share with my band members privately. I want its menu to appear at Primary Menu only when they are logged in. How can I make this happen?
Thanks for any advise.
I believe that this happens automatically if you enable the menu where you want it to show, only users with access will see it. You may have to create a dummy user for yourself to see how it looks to each role. If not, you can make a new menu block, put the menu item(s) in it, and then have the block visibility enabled only for specific roles.
Jean Gazis www.jeangazis.com
On 6/19/07, A-NO-NE Music madflute@anonemusic.com wrote:
I have a feeling the answer is somewhere easy to be found but I can't find it. How do you make menu item specific to user group?
I used Content Access module for a section to share with my band members privately. I want its menu to appear at Primary Menu only when they are logged in. How can I make this happen?
Thanks for any advise.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Boston, MA http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]
Jean Gazis / 2007/06/19 / 05:20 PM wrote:
I believe that this happens automatically if you enable the menu where you want it to show, only users with access will see it.
Actually it will never go hidden. It is always there, so whoever clicked gets 403.
If not, you can make a new menu block, put the menu item(s) in it, and then have the block visibility enabled only for specific roles.
I was hoping to avoid Block solution since it takes up space.
During my researching, I found menu_per_role module, which requires menu.inc patch. Without this patch, menu also doesn't go hidden as I tried. Patch is new to me so I read docs and watched a video tutorial. After backing up everything, I applied the patch to my local dev machine.
After running the patch, I CAN"T LOGIN!!!! Not even from other machines on my LAN. Logging in silently fails. If I try to login from /user page, I get 403?!!
After cleaning browser cookies and caches, I first run Restore Patch command. No effect even though I see menu.inc did go back to the same number of lines before patching. I restored the directory. No go. I restored the database. Still no go.
What do you do when you can't login? I am glad this isn't a live site, but I am loosing my mind. Please help.
Quoting A-NO-NE Music madflute@anonemusic.com:
What do you do when you can't login? I am glad this isn't a live site, but I am loosing my mind. Please help.
The first thing I would try is to use phpMyAdmin, find the tables with _cache in them and ``Empty'' the contents.
Earnie
Earnie Boyd / 2007/06/20 / 08:43 AM wrote:
The first thing I would try is to use phpMyAdmin, find the tables with _cache in them and ``Empty'' the contents.
Thank you for your response. Unfortunately, after emptying these tables, my site is blank :_( Yes, I clicked Empty, not Drop. Sigh.
Quoting A-NO-NE Music madflute@anonemusic.com:
Earnie Boyd / 2007/06/20 / 08:43 AM wrote:
The first thing I would try is to use phpMyAdmin, find the tables with _cache in them and ``Empty'' the contents.
Thank you for your response. Unfortunately, after emptying these tables, my site is blank :_( Yes, I clicked Empty, not Drop. Sigh.
Have you looked in the httpd and php log files? Set the error reporting so that it displays to the GUI and make sure you have E_ALL set.
Earnie
I don't know on the login - I have used the /user backdoor, and also sometimes the back button. I hope you get it sorted out quickly! I have also had some odd login behavior - getting bounced out for no apparent reason.
The way I have done a members-only block, I have an image there for anonymous users, and a menu for logged-in users, so it doesn't take up additional space. I don't know if that would work for you.
Do you mean like the admin menu items are always visible on your site? On all of mine it disappears if I am not logged in.
On 6/19/07, A-NO-NE Music madflute@anonemusic.com wrote:
Jean Gazis / 2007/06/19 / 05:20 PM wrote:
I believe that this happens automatically if you enable the menu where
you
want it to show, only users with access will see it.
Actually it will never go hidden. It is always there, so whoever clicked gets 403.
If not, you can make a new menu block, put the menu item(s) in it, and then have the
block
visibility enabled only for specific roles.
I was hoping to avoid Block solution since it takes up space.
During my researching, I found menu_per_role module, which requires menu.inc patch. Without this patch, menu also doesn't go hidden as I tried. Patch is new to me so I read docs and watched a video tutorial. After backing up everything, I applied the patch to my local dev machine.
After running the patch, I CAN"T LOGIN!!!! Not even from other machines on my LAN. Logging in silently fails. If I try to login from /user page, I get 403?!!
After cleaning browser cookies and caches, I first run Restore Patch command. No effect even though I see menu.inc did go back to the same number of lines before patching. I restored the directory. No go. I restored the database. Still no go.
What do you do when you can't login? I am glad this isn't a live site, but I am loosing my mind. Please help.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Boston, MA http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]
Jean Gazis / 2007/06/20 / 04:25 PM wrote:
I don't know on the login - I have used the /user backdoor, and also sometimes the back button. I hope you get it sorted out quickly! I have also had some odd login behavior - getting bounced out for no apparent reason.
Man, this thing is so screwed up. The only way to fix this was, not restoring the database, but to restore entire site directory. I then studied how to patch manually. Easy enough, I modified menu.inc by hand. Same results. No more login. Restoring menu.inc doesn't do good. It seems this modification flips somewhere badly. It really doesn't make sense why restring the modified file and database won't let me login ever again. The back door gets me 403 error, by the way.
The way I have done a members-only block, I have an image there for anonymous users, and a menu for logged-in users, so it doesn't take up additional space. I don't know if that would work for you.
I am trying to make this discreet as possible so I wanted popping up a new menu item to get attention. In other words, I do not wish to have anything there for normal visitors. For now, I did it with block, but I am not too happy with the layout moving by the block popping up.
Do you mean like the admin menu items are always visible on your site? On all of mine it disappears if I am not logged in.
Admin menu is hidden by core. So, if I create a user specific 'create contents' menu, that would be hidden fine. My problem is menu outside of the admin tasks, say music library for my musicians to download for next show. I do not wish anyone else to see even the existence of it :-)
Maybe there's something specific to the menus in that particular theme? You could check for issues on the theme or try another one just to see how it behaves.
On 6/20/07, A-NO-NE Music madflute@anonemusic.com wrote:
Jean Gazis / 2007/06/20 / 04:25 PM wrote:
I don't know on the login - I have used the /user backdoor, and also sometimes the back button. I hope you get it sorted out quickly! I have
also
had some odd login behavior - getting bounced out for no apparent reason.
Man, this thing is so screwed up. The only way to fix this was, not restoring the database, but to restore entire site directory. I then studied how to patch manually. Easy enough, I modified menu.inc by hand. Same results. No more login. Restoring menu.inc doesn't do good. It seems this modification flips somewhere badly. It really doesn't make sense why restring the modified file and database won't let me login ever again. The back door gets me 403 error, by the way.
The way I have done a members-only block, I have an image there for anonymous users, and a menu for logged-in users, so it doesn't take up additional space. I don't know if that would work for you.
I am trying to make this discreet as possible so I wanted popping up a new menu item to get attention. In other words, I do not wish to have anything there for normal visitors. For now, I did it with block, but I am not too happy with the layout moving by the block popping up.
Do you mean like the admin menu items are always visible on your site? On all of mine it disappears if I am not logged in.
Admin menu is hidden by core. So, if I create a user specific 'create contents' menu, that would be hidden fine. My problem is menu outside of the admin tasks, say music library for my musicians to download for next show. I do not wish anyone else to see even the existence of it :-)
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Boston, MA http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]