it would be nice to make the (not verified) flag for usernames optional,
module writers would set $additions['verified']=1 in hook_load() to remove it for
usernames that are not in the user databse, but still considerd verified.

CommentFileSizeAuthor
#17 jsomers_19837_2.patch4.67 KBxmacinfo
#8 jsomers_19837_1.patch4.67 KBj.somers
drupal_not_verified_user.patch580 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zach Harkey’s picture

+1

dtmatthes’s picture

To what file should the patch drupal_not_verified_user.patch be applied?

dtmatthes’s picture

I was confused for a moment. I see in the patch that it should be applied to includes/common.inc

bradlis7’s picture

+1

filiptc’s picture

+1

LAsan’s picture

Version: x.y.z » 7.x-dev

Feature request go to cvs.

Gurpartap Singh’s picture

Bump.

j.somers’s picture

Status: Active » Needs review
FileSize
4.67 KB

I 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_username function to disable this which of course introduces issues when something changes on the theme_username function.

xmacinfo’s picture

Status: Needs review » Needs work

This 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 comments

j.somers’s picture

I 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.

xmacinfo’s picture

That must mean that I forgot to clear the cache. I'll try again later.

xmacinfo’s picture

Looks 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?

xmacinfo’s picture

#438224: "Post comments without approval" permission name is completely misleading have been created for the "Post comments without approval" permission issue.

xmacinfo’s picture

xmacinfo’s picture

Status: Needs work » Needs review

From 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.

xmacinfo’s picture

Status: Needs review » Reviewed & tested by the community

Woohoo! RTBC at last with the help of #15.

xmacinfo’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
4.67 KB

Reloading the patch for the bot.

xmacinfo’s picture

Status: Needs review » Reviewed & tested by the community

Set back to RTBC. We were waiting for a retest from the testing bot.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.