Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
user system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
1 Apr 2005 at 20:23 UTC
Updated:
10 May 2009 at 09:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
zach harkey commented+1
Comment #2
dtmatthes commentedTo what file should the patch drupal_not_verified_user.patch be applied?
Comment #3
dtmatthes commentedI was confused for a moment. I see in the patch that it should be applied to includes/common.inc
Comment #4
bradlis7 commented+1
Comment #5
filiptc commented+1
Comment #6
LAsan commentedFeature request go to cvs.
Comment #7
Gurpartap Singh commentedBump.
Comment #8
j.somers commentedI attach a different approach which allows the site administrators to enable or disable this using a theme setting.
I know from personal experience that many theme developers override the
theme_usernamefunction to disable this which of course introduces issues when something changes on thetheme_usernamefunction.Comment #9
xmacinfoThis is a regular request that should be incorporated into core.
I've tested this patch with an anonymous user that requires comment approval.
In the theme setting for Garland and the global theme settings, checking or unchecking "User verification status in comments" will always display "Anonymous" next to the comment display, whereas I would have expected to see "Anonymous" and "Anonymous (not verified)" depending on the theme settings. Is this by design? Because in the comment Preview it says "Anonymous (not verified)".
Also when configuring Drupal to accept comments without approval, for anonymous user I get this message displayed in plain HTML code:
<a href="/user/login?destination=comment/reply/1%2523comment-form">Login</a> or <a href="/user/register?destination=comment/reply/1%2523comment-form">register</a> to post commentsComment #10
j.somers commentedI am not entirely sure what you mean.
When I toggle the "User verification status in comments" in Garland it shows, or doesn't show, the "(not verified)" message on the comment approval queue, comment lists and on the node where the comment belongs too, so as far as I can tell it seems to work.
I also did not get any error when toggling the "Post comments without approval" permission.
Comment #11
xmacinfoThat must mean that I forgot to clear the cache. I'll try again later.
Comment #12
xmacinfoLooks like that Drupal head is in part broken for the "(not verified)" message and the "Post comments without approval" permission, and this, without applying your patch.
I had to resort to a complete erase of my Drupal 7 and issue the CVS "cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co drupal". I also deleted the complete database and let Drupal recreate it as well.
So without the patch, the "(not verified)" message never show up. It does in fact show up only when an anonymous user preview his comment, though.
And without the patch, when I set the "Post comments without approval" permission, I get a Login or register to post comments. It's now properly formatted, no more HTML code.
These issues need to be resolved in D7 before I will be able to test your patch again.
I may need to post new bug issues about the "(not verified)" not showing up anymore and the "Post comments without approval" permission that does not let post comments.
What do you think?
Comment #13
xmacinfo#438224: "Post comments without approval" permission name is completely misleading have been created for the "Post comments without approval" permission issue.
Comment #14
xmacinfo#439148: login/register link generated when a user isn't allowed to comment, is transformed to html entities tackles the issues I had in #9 above.
Comment #15
xmacinfoFrom IRC : webchick: xmacinfo, Ok, you need to go to admin/build/types and enable the "Anonymou users may/must leave contact info".
I'll test the patch again.
Comment #16
xmacinfoWoohoo! RTBC at last with the help of #15.
Comment #17
xmacinfoReloading the patch for the bot.
Comment #18
xmacinfoSet back to RTBC. We were waiting for a retest from the testing bot.
Comment #19
dries commentedCommitted to CVS HEAD. Thanks!