Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2010 at 07:13 UTC
Updated:
6 Nov 2019 at 18:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jenlamptonPatch also includes the help text as used on the node edit form.
Comment #3
jenlamptonWhoops, patch not created from Drupal root. trying again.
Comment #4
joachim commented+1 to these changes in principle, however a couple of things:
- the node type form comments tab is a lot noisier now. In particular, 'Threading' is a bit muddled in beneath the radios with descriptions.
- The tab summary needs some change too, as now it shows ", Threading , 50 comments per page" with a leading comma.
Comment #5
jenlamptonOkay, I fixed the vertical tabs js and cleaned up the form by moving the "threaded" checkbox down with the others for "Allow comment title" and "Show reply form on the same page as comments". I also moved the redundant description text ("Threaded" means "Show comment replies in a threaded list"?) and used that for the checkbox's label.
While in here, I unfortunately stumbled across the "Anonymous commenting" section, which also needs to be radios and not a select. :/ but, one thing at a time. #991078: Anonymous contact information settings per node type needs to be radios, not select
Comment #6
joachim commentedLooking good.
Just one thing:
* Open , Show comment replies in a threaded list , 50 comments per page(active tab)
Space before the comma.
The Publishing options suffer from this glitch too, but this particular spare space is added by your patch.
Also, I've just noticed it used to say:
* Open, Threading , 50 comments per page(active tab)
So stray spaces in the current code too -- so we could leave those to another issue. However, I think perhaps just 'Threading' is clearer in the summary, or something shorter than the full checkbox text at any rate. I like your change to the actual checkbox label though!
Comment #7
joachim commentedOk I've filed #991522: Vertical tabs summaries have stray spaces for the stray spaces.
Comment #8
jenlamptonI've changed the text that vertical tabs uses for the summary to use just the word "Threading" instead of the whole label (good suggestion :) but I think the space comes from somewhere else? It looks like it's just pulling the text from inside the label tag in the markup, and the value of the new radios form element does not add a space. Maybe it's coming from a theme function or something. I'll hunt it down in the other issue.
Comment #9
nancydruHow about adding '#attributes' => array('class' => array('container-inline'))
I hate seeing two or three small options stacked - horizontal is better.
Comment #10
Bojhan commentedScreenshot?
Comment #11
dixon_Comment #12
dixon_I don't think we need to split up the issue, let's make this issue a general "comment form settings cleanup" issue. No? #991078: Anonymous contact information settings per node type needs to be radios, not select Is marked as duplicate.
Attached is a patch and two screenshots on my first take. It includes most of what is mentioned above, with some minor changes.
Comment #13
dixon_Oops, not very usable patch ;)
Comment #14
nancydruThanks, dixon_. Could you look at #9 above, please?
Comment #15
dixon_@NancyDru Making radios and other form controls inline with each other is not a pattern used throughout core. I agree it could be useful, but that needs to be decided as a design pattern to use, and apply it consistently throughout core.
Run it through @Bojhan and the UX team first.
Comment #16
Everett Zufelt commentedIn a D7 - D8 upgrade, what happens to content types where comment was set to hidden on the node type? Is there any unexpected behavior change?
Comment #17
dixon_The patch in #13 doesn't change any of that behavior.
Comment #18
Everett Zufelt commented@dixon_
After a D7-D8 upgrade there will potentially be a value for some node types that is no longer available on the settings page. What happens in FAPI when we try to set #default_value to a value that is not in #options?
Comment #19
jenlampton@Everett Zufelt
This settings form lets people choose the default values for the node form, and as it turns out, on the node form itself there is no 'hidden' option available in Drupal 7 either. (That option doesn't appear until a node actually has comments on it.)
If people upgrade with settings from D7 it will behave exactly like it did in D6 (which is confusing - but not "broken"). However, if/when they go back to this form, it won't be as confusing for them anymore :)
Adding a needs backport tag, in the hopes of making D7 less confusing too.
Comment #20
jenlamptonnew patch after core directory move.
Includes inline radio options for NancyDru. :)
Comment #21
cosmicdreams commentedManually tested this patch. All three states worked fine.
1. Initially only had two states available, Open and Closed (very sensible)
2. After I created a comment for a node and edited the node, I saw three states: Open, Closed, and Hidden.
This changes make a whole lot of common sense. It's finally crystal clear what these settings mean.
I recommend RTBC
Comment #22
joachim commentedI don't think that introducing a new UI pattern in just one single place is a very good thing -- do we have inline radio options anywhere else?
Comment #23
catchWhat happens if I have permission to administer node types, but not permission to assign permissions? Won't this link to a 403?
Comment #24
jenlamptonyeah :(
Comment #25
joachim commentedJust had a quick look through the code and as far as I can see, container-inline is only used for the search form and for the various forms that list actions (node admin, comment admin, etc).
If we want to introduce it for radio sets, it needs an issue of its own to do it consistently rather than piecemeal.
Comment #26
cweagansUpdating tags per http://drupal.org/node/1517250
Comment #27
pposca commented#1: fix_comments.patch queued for re-testing.
Comment #30
andypostCurrently comments are configured via field settings (to see anonymous settings you need to enable permission)

Also not sure about backport to 7 because this changes form structure
Comment #31
jenlamptontagging
Comment #32
rishikant05 commentedComment #33
rishikant05 commentedComment #34
andypostThis is no more issue for 8.x
edit see #30
Comment #35
avpaderno