I know the answer to this is blindingly obvious but I've been very deep in the drupal forest in the last few weeks and can't see any individual trees anymore!
High role (admin!) can see clickable link which expands a fieldset. Log out Log in as any other role - link has turned into red text, no link, can't expand.
is it something on the permissions page that would do this?
it's not my template...I do have a couple of php conditionals wrapping the fieldset but it's nothing to do with roles
<?php if ($node->field_team_coordinates[0]['value']) : ?> <?php if ($page != 0): ?>
1. only show fieldset if field is filled out 2. only show fieldset on node view, not on index pages, teasers, etc.
what could be un-hyperlinking the fieldset?
Neil
In my experience the most common cause is invalid HTML, specifically unclosed tags and such. Run your page through the W3C validator to check.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Wednesday, October 27, 2010 11:01 AM To: support@drupal.org Subject: [support] Why would one role be able to click collapsible fieldsets....and another role couldn't?
I know the answer to this is blindingly obvious but I've been very deep in the drupal forest in the last few weeks and can't see any individual trees anymore!
High role (admin!) can see clickable link which expands a fieldset. Log out Log in as any other role - link has turned into red text, no link, can't expand.
is it something on the permissions page that would do this?
it's not my template...I do have a couple of php conditionals wrapping the fieldset but it's nothing to do with roles
<?php if ($node->field_team_coordinates[0]['value']) : ?> <?php if ($page != 0): ?>
1. only show fieldset if field is filled out 2. only show fieldset on node view, not on index pages, teasers, etc.
what could be un-hyperlinking the fieldset?
Neil -- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for the suggestion Dave. The html is fine. I've stripped my tpl template back to ONLY this fieldset and the same thing happens....admin role sees clickable link, lower role sees red unclickable text.
the entire content of my tpl file is now:
<fieldset class="collapsible collapsed"> <legend>View Map (click to open)</legend>
<img style="margin:2px;" src="http://maps.google.com/staticmap?center=<?php print $node->field_team_coordinates[0]['view'] ?>&zoom=15&size=240x250&markers=<?php print $node->field_coordinates[0]['view'] ?>,midyellow&key=123456" border="0">
</fieldset>
it's almost as if the lower roles don't have access to that field, but I don't have any field access modules operating. Is there any reason why javascript wouldn't be working for those roles? The odd thing is, when I use web dev firefox add-on to disable javascript, the fieldset is open by default so I don't think that's the problem either.
*slowly going crazy*
On 27/10/2010 15:37, Metzler, David wrote:
In my experience the most common cause is invalid HTML, specifically unclosed tags and such. Run your page through the W3C validator to check.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Wednesday, October 27, 2010 11:01 AM To: support@drupal.org Subject: [support] Why would one role be able to click collapsible fieldsets....and another role couldn't?
I know the answer to this is blindingly obvious but I've been very deep in the drupal forest in the last few weeks and can't see any individual trees anymore!
High role (admin!) can see clickable link which expands a fieldset. Log out Log in as any other role - link has turned into red text, no link, can't expand.
is it something on the permissions page that would do this?
it's not my template...I do have a couple of php conditionals wrapping the fieldset but it's nothing to do with roles
<?php if ($node->field_team_coordinates[0]['value']) : ?> <?php if
($page != 0): ?>
- only show fieldset if field is filled out 2. only show fieldset on
node view, not on index pages, teasers, etc.
what could be un-hyperlinking the fieldset?
Neil
[ Drupal support list | http://lists.drupal.org/ ]
duh.....added this to top of template and resolved it.
<?php drupal_add_js('misc/collapse.js'); drupal_add_js('misc/drupal.js'); ?>
pretty dumb to have missed that!
but....why was that not necessary for the admin role?? Is it because that javascript was already cached for that user??
On 27/10/2010 15:37, Metzler, David wrote:
In my experience the most common cause is invalid HTML, specifically unclosed tags and such. Run your page through the W3C validator to check.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Wednesday, October 27, 2010 11:01 AM To: support@drupal.org Subject: [support] Why would one role be able to click collapsible fieldsets....and another role couldn't?
I know the answer to this is blindingly obvious but I've been very deep in the drupal forest in the last few weeks and can't see any individual trees anymore!
High role (admin!) can see clickable link which expands a fieldset. Log out Log in as any other role - link has turned into red text, no link, can't expand.
is it something on the permissions page that would do this?
it's not my template...I do have a couple of php conditionals wrapping the fieldset but it's nothing to do with roles
<?php if ($node->field_team_coordinates[0]['value']) : ?> <?php if
($page != 0): ?>
- only show fieldset if field is filled out 2. only show fieldset on
node view, not on index pages, teasers, etc.
what could be un-hyperlinking the fieldset?
Neil
[ Drupal support list | http://lists.drupal.org/ ]
Normally you wouldn't need this in a template file (assuming you mean page.tpl? Or an analog?). So the fact that these are needing to be called explicitly is a bit disturbing. The first time any module calls drupal_add_js the drupal.js should be added to the theme list automatically.
The collapse.js is added in the form.inc include file, so it's possible that you have a block with a form in it that adds the collapse.js when an admin user is logged in, but the anonymous user doesn't? Do I guess correctly that you're trying to use the fieldset collapser outside of a form? If so that's the problem.
You might consider adding the drupal_add_js('misc/collapse.js') call to your template.php file rather than inside the template. I think that's a bit cleaner, but both would work.
If I understand correctly you don't need the add of drupal.js in your template file at all.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Wednesday, October 27, 2010 12:19 PM To: support@drupal.org Subject: Re: [support] Why would one role be able to click collapsible fieldsets....and another role couldn't? SOLVED
duh.....added this to top of template and resolved it.
<?php drupal_add_js('misc/collapse.js'); drupal_add_js('misc/drupal.js'); ?>
pretty dumb to have missed that!
but....why was that not necessary for the admin role?? Is it because that javascript was already cached for that user??
On 27/10/2010 15:37, Metzler, David wrote:
In my experience the most common cause is invalid HTML, specifically unclosed tags and such. Run your page through the W3C validator to check.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org]
On
Behalf Of Neil Coghlan Sent: Wednesday, October 27, 2010 11:01 AM To: support@drupal.org Subject: [support] Why would one role be able to click collapsible fieldsets....and another role couldn't?
I know the answer to this is blindingly obvious but I've been very
deep
in the drupal forest in the last few weeks and can't see any
individual
trees anymore!
High role (admin!) can see clickable link which expands a fieldset. Log out Log in as any other role - link has turned into red text, no link,
can't
expand.
is it something on the permissions page that would do this?
it's not my template...I do have a couple of php conditionals wrapping the fieldset but it's nothing to do with roles
<?php if ($node->field_team_coordinates[0]['value']) : ?> <?php if
($page != 0): ?>
- only show fieldset if field is filled out 2. only show fieldset on
node view, not on index pages, teasers, etc.
what could be un-hyperlinking the fieldset?
Neil
[ Drupal support list | http://lists.drupal.org/ ]
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc..
Drupal 6.x Any good ideas?
-Don- dpickerel
On Thu, Oct 28, 2010 at 6:33 AM, Don donald@fane.com wrote:
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc..
Drupal 6.x
Any good ideas?
views bulk operation
Great! Thanks. -Don-
On 10/28/2010 2:08 AM, sivaji j.g wrote:
On Thu, Oct 28, 2010 at 6:33 AM, Don <donald@fane.com mailto:donald@fane.com> wrote:
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc.. Drupal 6.x Any good ideas?views bulk operation
-- Sivaji +91 9941 571 690
I have VBO installed and went to admin/content/node2. I filtered on the node type and came up with 97,000 nodes. I set it to delete node, and there's a button next to the "All *20* rows in this page are selected." text that says "Select all 99,000 rows in this view", but when I click it nothing happens. The most I can delete is 20 rows at a time.
I'm guessing it's a configuration setting or something similar, but I have no clue. I'm logged in as user 1. There are no javascript errors and I've tried it in FF and IE8. Any suggestions?
Thanks. -Don-
On 10/28/2010 2:08 AM, sivaji j.g wrote:
On Thu, Oct 28, 2010 at 6:33 AM, Don <donald@fane.com mailto:donald@fane.com> wrote:
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc.. Drupal 6.x Any good ideas?views bulk operation
-- Sivaji +91 9941 571 690
When select 99,000 rows, the application fail (memory limit, time execution), You can use http://drupal.org/project/delete_all for large node delete action
On Fri, Oct 29, 2010 at 4:08 AM, Don donald@fane.com wrote:
I have VBO installed and went to admin/content/node2. I filtered on the node type and came up with 97,000 nodes. I set it to delete node, and there's a button next to the "All *20* rows in this page are selected." text that says "Select all 99,000 rows in this view", but when I click it nothing happens. The most I can delete is 20 rows at a time.
I'm guessing it's a configuration setting or something similar, but I have no clue. I'm logged in as user 1. There are no javascript errors and I've tried it in FF and IE8. Any suggestions?
Thanks. -Don-
On 10/28/2010 2:08 AM, sivaji j.g wrote:
On Thu, Oct 28, 2010 at 6:33 AM, Don donald@fane.com wrote:
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc..
Drupal 6.x
Any good ideas?
views bulk operation
-- Sivaji +91 9941 571 690
-- [ Drupal support list | http://lists.drupal.org/ ]
Tried changing the number of items per page?
On Thu, Oct 28, 2010 at 7:08 PM, Don donald@fane.com wrote:
I have VBO installed and went to admin/content/node2. I filtered on the node type and came up with 97,000 nodes. I set it to delete node, and there's a button next to the "All *20* rows in this page are selected." text that says "Select all 99,000 rows in this view", but when I click it nothing happens. The most I can delete is 20 rows at a time.
I'm guessing it's a configuration setting or something similar, but I have no clue. I'm logged in as user 1. There are no javascript errors and I've tried it in FF and IE8. Any suggestions?
Thanks. -Don-
On 10/28/2010 2:08 AM, sivaji j.g wrote:
On Thu, Oct 28, 2010 at 6:33 AM, Don donald@fane.com wrote:
I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc..
Drupal 6.x
Any good ideas?
views bulk operation
-- Sivaji +91 9941 571 690
-- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for the reply Brian. I'd thought of looking up the setting for content administration but not for vbo. I switched it to batch mode and then back, and it worked in short bursts of partial lists. Neither of the modules recommended were ready for that many nodes. I was getting a lot of out of memory errors last night in the mysql include. I'll look into debugging when I get some time. I've worked with vbo before and I'm pretty familiar with its internals.
-Don- dpickerel
On 10/29/2010 1:19 PM, Brian Choc wrote:
Tried changing the number of items per page?
On Thu, Oct 28, 2010 at 7:08 PM, Don <donald@fane.com mailto:donald@fane.com> wrote:
I have VBO installed and went to admin/content/node2. I filtered on the node type and came up with 97,000 nodes. I set it to delete node, and there's a button next to the "All *20* rows in this page are selected." text that says "Select all 99,000 rows in this view", but when I click it nothing happens. The most I can delete is 20 rows at a time. I'm guessing it's a configuration setting or something similar, but I have no clue. I'm logged in as user 1. There are no javascript errors and I've tried it in FF and IE8. Any suggestions? Thanks. -Don- On 10/28/2010 2:08 AM, sivaji j.g wrote:On Thu, Oct 28, 2010 at 6:33 AM, Don <donald@fane.com <mailto:donald@fane.com>> wrote: I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc.. Drupal 6.x Any good ideas? views bulk operation -- Sivaji +91 9941 571 690-- [ Drupal support list | http://lists.drupal.org/ ]
That's a really great idea. By running it as a php script I can get around the apache memory limitations as well. Thanks.
-Don- dpickerel On 10/29/2010 1:51 PM, Ted wrote:
You might also consider doing it with drush, e.g.
$ drush php-script delete_my_nodes
...where delete_my_nodes.php contains a query to get the node ids to delete, and a loop to node_delete each one.
Ted
On 10/29/2010 1:43 PM, Don wrote:
Thanks for the reply Brian. I'd thought of looking up the setting for content administration but not for vbo. I switched it to batch mode and then back, and it worked in short bursts of partial lists. Neither of the modules recommended were ready for that many nodes. I was getting a lot of out of memory errors last night in the mysql include. I'll look into debugging when I get some time. I've worked with vbo before and I'm pretty familiar with its internals.
-Don- dpickerel
On 10/29/2010 1:19 PM, Brian Choc wrote:
Tried changing the number of items per page?
On Thu, Oct 28, 2010 at 7:08 PM, Don <donald@fane.com mailto:donald@fane.com> wrote:
I have VBO installed and went to admin/content/node2. I filtered on the node type and came up with 97,000 nodes. I set it to delete node, and there's a button next to the "All *20* rows in this page are selected." text that says "Select all 99,000 rows in this view", but when I click it nothing happens. The most I can delete is 20 rows at a time. I'm guessing it's a configuration setting or something similar, but I have no clue. I'm logged in as user 1. There are no javascript errors and I've tried it in FF and IE8. Any suggestions? Thanks. -Don- On 10/28/2010 2:08 AM, sivaji j.g wrote:On Thu, Oct 28, 2010 at 6:33 AM, Don <donald@fane.com <mailto:donald@fane.com>> wrote: I have an ubercart ecommerce customer with over 100,000 products in their database. For testing, I need to quickly delete about 95,000 of them. Node, uc_product, etc.. Drupal 6.x Any good ideas? views bulk operation -- Sivaji +91 9941 571 690-- [ Drupal support list | http://lists.drupal.org/ ]