(I am sorry if this is a duplicate send, but I think something went wrong with the first send as I've not seen it in the list.)
My extended profile tabs are not showing on one of my sites and I think it has something to do with the database. Here's what I've done.
I'm running D5 and the only thing I've done regarding theming is some very minor font size modifications to Garland to create my PersonalGarland. Which I've stored in sites/all/theme/tightgarland.
Here's the debug process so far based on what I could find at drupal.org:
I switched to a core theme.
First, I switched from my personal version of Garland (PG) to core Garland. Tabs still did not show. Next, I switched to Bluemarine - Tabs did show, but much of my site is a mess. (which is understandable)
Next, I have two sites that run this very same PG theme with nearly the same modules, and site 2 works fine showing all profile tabs (base and extended). So, I tried this:
1) I replaced the PG theme code of the site not showing the tabs (SiteBroken) with the PG theme code of the site that works fine (SiteOK). I then cleared all cache tables. (Tabs didn't show in SiteBroken)
2) I replaced the PG theme code of SiteOK with the PG theme code of SiteBroken. (Tabs still show fine in SiteOk)
so I'm now thinking it's not the theme code, which lead me to investigate the db.
3) I pointed SiteOK's db via settings.php to the db of SiteBroken. (Tabs now don't show in SiteOk)
4) I pointed SiteBroken's db via settings.php to the db of SiteOk. (Tabs now show find in SiteBroken)
Now I thought it might be a formatting issue with a header? So I erased all headers and slogans. (Tabs still don't show)
The site looks and run perfectly fine except for one very small annoyance which might be related. On each of the following add pages I get the word "Consume!" where I should see the type of item being added, also on these pages "Consume!" is showing up in my Title Bar of the browser. The pages are:
admin/user/rules/add admin/user/user/create admin/build/contact/add admin/content/taxonomy/add/vocabulary admin/build/menu/menu/add admin/build/block/add
admin/build/views/add (on this page the word Consume! does not show on the page or in the title bar)
I've exhausted everything I can think of. Any suggestions on what I look for now?
thanks
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
1) A is available to authenticated users. It allows them to create new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
2) B is available to authenticated users, who are members of or have created one group at least. It allows them to post to a group.
3) C is available to authenticated users, who are members of or have created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
You'll most likely need to use some PHP in your block contents to conditionally check on role / group membership.
2009/3/20 Moses Elias iom@netvision.net.il
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
- A is available to authenticated users. It allows them to create new
groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
- B is available to authenticated users, who are members of or have
created one group at least. It allows them to post to a group.
- C is available to authenticated users, who are members of or have
created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
-- [ Drupal support list | http://lists.drupal.org/ ]
Will said:
You'll most likely need to use some PHP in your block contents to
conditionally check on role / group membership.
Thanks for your reply Will. But how do I programmatically refer to individual links within a block? I haven't seen any code like that anywhere.
Moses
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of William Smith Sent: Friday, March 20, 2009 5:59 PM To: support@drupal.org Subject: Re: [support] Links Available "Conditionally" Within the Same Block
2009/3/20 Moses Elias iom@netvision.net.il
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
1) A is available to authenticated users. It allows them to create new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
2) B is available to authenticated users, who are members of or have created one group at least. It allows them to post to a group.
3) C is available to authenticated users, who are members of or have created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
-- [ Drupal support list | http://lists.drupal.org/ ]
If these links went to actual pages (that contained more information, integrated web forms, additional links), then you can set access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will take the page permissions into account before displaying the menu links. I could be wrong though.
- John
************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu http://www.dgs.udel.edu **************************************************
Moses Elias wrote:
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
- A is available to authenticated users. It allows them to create
new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
- B is available to authenticated users, who are members of or have
created one group at least. It allows them to post to a group.
- C is available to authenticated users, who are members of or have
created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
-- [ Drupal support list | http://lists.drupal.org/ ]
John said:
If these links went to actual pages (that contained more information,
integrated web forms, additional links), then you can set >> access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will >> take the page permissions into account before displaying the menu links. I could be wrong though.
Unfortunately Drupal isn't so straightforward as to provide a one to one relationship between an accessible/inaccessible node and the permissions page (which would have been great). One has to fiddle and experiment for quite some time before the relationship is clear sometimes.
Besides the path to the nodes in question are defined through a View (and not a page) and so I believe Content Access/ACL will be redundant. How do you grant access to a _View_ based on role? Is there a way? Please correct me if I am wrong?
Moses
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of John Callahan Sent: Friday, March 20, 2009 6:09 PM To: support@drupal.org Subject: Re: [support] Links Available "Conditionally" Within the Same Block
If these links went to actual pages (that contained more information, integrated web forms, additional links), then you can set access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will take the page permissions into account before displaying the menu links. I could be wrong though.
- John
************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu http://www.dgs.udel.edu **************************************************
Moses Elias wrote:
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
1) A is available to authenticated users. It allows them to create new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
2) B is available to authenticated users, who are members of or have created one group at least. It allows them to post to a group.
3) C is available to authenticated users, who are members of or have created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
_____
-- [ Drupal support list | http://lists.drupal.org/ ]
I'm not if it will solve your problem but Views can be restricted to roles. When editing a view, check the Access item under Basic Settings.
- John
************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu http://www.dgs.udel.edu **************************************************
Moses Elias wrote:
John said:
If these links went to actual pages (that contained more
information, integrated web forms, additional links), then you can set
access controls to those pages, such as through Content
Access/ACL. I am not sure but I think the Drupal menu system will >> take the page permissions into account before displaying the menu links. I could be wrong though.
Unfortunately Drupal isn't so straightforward as to provide a one to one relationship between an accessible/inaccessible node and the permissions page (which would have been great). One has to fiddle and experiment for quite some time before the relationship is clear sometimes.
Besides the path to the nodes in question are defined through a View (and not a page) and so I believe Content Access/ACL will be redundant. How do you grant access to a _/View/_ based on role? Is there a way? Please correct me if I am wrong?
Moses
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *John Callahan *Sent:* Friday, March 20, 2009 6:09 PM *To:* support@drupal.org *Subject:* Re: [support] Links Available "Conditionally" Within the Same Block
If these links went to actual pages (that contained more information, integrated web forms, additional links), then you can set access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will take the page permissions into account before displaying the menu links. I could be wrong though.
- John
John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu mailto:john.callahan@udel.edu http://www.dgs.udel.edu
Moses Elias wrote:
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
- A is available to authenticated users. It allows them to create
new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
- B is available to authenticated users, who are members of or have
created one group at least. It allows them to post to a group.
- C is available to authenticated users, who are members of or have
created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
-- [ Drupal support list | http://lists.drupal.org/ ]
John said:
I'm not if it will solve your problem but Views can be restricted to
roles. When editing a view, check the Access item under >> Basic Settings.
Thanks for the tip John. The View can actually be restricted to certain Roles (I believe), but it doesn't make the link itself that calls the View _NOT_ appear which is what I need.
Moses
************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu http://www.dgs.udel.edu **************************************************
Moses Elias wrote:
John said:
If these links went to actual pages (that contained more information,
integrated web forms, additional links), then you can set >> access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will >> take the page permissions into account before displaying the menu links. I could be wrong though.
Unfortunately Drupal isn't so straightforward as to provide a one to one relationship between an accessible/inaccessible node and the permissions page (which would have been great). One has to fiddle and experiment for quite some time before the relationship is clear sometimes.
Besides the path to the nodes in question are defined through a View (and not a page) and so I believe Content Access/ACL will be redundant. How do you grant access to a _View_ based on role? Is there a way? Please correct me if I am wrong?
Moses
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of John Callahan Sent: Friday, March 20, 2009 6:09 PM To: support@drupal.org Subject: Re: [support] Links Available "Conditionally" Within the Same Block
If these links went to actual pages (that contained more information, integrated web forms, additional links), then you can set access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will take the page permissions into account before displaying the menu links. I could be wrong though.
- John
************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan@udel.edu http://www.dgs.udel.edu **************************************************
Moses Elias wrote:
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
1) A is available to authenticated users. It allows them to create new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
2) B is available to authenticated users, who are members of or have created one group at least. It allows them to post to a group.
3) C is available to authenticated users, who are members of or have created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
_____
-- [ Drupal support list | http://lists.drupal.org/ ]
Have you seen this yet?
http://drupal.org/node/51325#comment-1255358
"I'm using Taxonomy Access Control to restrict access by user role in a Drupal5 installation. The Remove Nonviewable Menu Items module made hiding the off limits menu items easy.
http://drupal.org/project/remove_nonviewable_menu_items"
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org]On Behalf Of Moses Elias Sent: Friday, March 20, 2009 11:44 AM To: 'John Callahan' Cc: support@drupal.org Subject: Re: [support] Links Available "Conditionally" Within the Same Block
John said:
I'm not if it will solve your problem but Views can be restricted to
roles. When editing a view, check the Access item under >> Basic Settings.
Thanks for the tip John. The View can actually be restricted to certain Roles (I believe), but it doesn't make the link itself that calls the View _NOT_ appear which is what I need.
Moses
**************************************************John CallahanGeospatial Application DeveloperDelaware Geological Survey, University of Delaware227 Academy St, Newark DE 19716-7501Tel: (302) 831-3584 Email: john.callahan@udel.eduhttp://www.dgs.udel.edu******************************* *******************
Moses Elias wrote:
John said:
If these links went to actual pages (that contained more information,
integrated web forms, additional links), then you can set >> access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will >> take the page permissions into account before displaying the menu links. I could be wrong though.
Unfortunately Drupal isn't so straightforward as to provide a one to one relationship between an accessible/inaccessible node and the permissions page (which would have been great). One has to fiddle and experiment for quite some time before the relationship is clear sometimes.
Besides the path to the nodes in question are defined through a View (and not a page) and so I believe Content Access/ACL will be redundant. How do you grant access to a _View_ based on role? Is there a way? Please correct me if I am wrong?
Moses
---------------------------------------------------------------------------- --
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of John Callahan Sent: Friday, March 20, 2009 6:09 PM To: support@drupal.org Subject: Re: [support] Links Available "Conditionally" Within the Same Block
If these links went to actual pages (that contained more information, integrated web forms, additional links), then you can set access controls to those pages, such as through Content Access/ACL. I am not sure but I think the Drupal menu system will take the page permissions into account before displaying the menu links. I could be wrong though.
- John
**************************************************John CallahanGeospatial Application DeveloperDelaware Geological Survey, University of Delaware227 Academy St, Newark DE 19716-7501Tel: (302) 831-3584 Email: john.callahan@udel.eduhttp://www.dgs.udel.edu******************************* *******************
Moses Elias wrote:
I have a block in a sidebar with 3 menu items. Call them A, B, and C.
1) A is available to authenticated users. It allows them to create new groups once they are authenticated. Creating a group automatically promotes the creator to being a group member and a group admin.
2) B is available to authenticated users, who are members of or have created one group at least. It allows them to post to a group.
3) C is available to authenticated users, who are members of or have created one group at least. It allows them to invite users to the group.
How do I conditionally give authenticated users access to links on the basis of their roles within the same block (and not separate blocks)?
What I have found so far is that either the entire block is visible or invisible. What I want instead is that some of the links should be present under certain conditions while at other times not.
Moses
---------------------------------------------------------------------------- --
--[ Drupal support list | http://lists.drupal.org/ ]