make (not verified) optional

Anonymous (not verified) - April 1, 2005 - 20:23
Project:Drupal
Version:7.x-dev
Component:user system
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

AttachmentSize
drupal_not_verified_user.patch580 bytes

#1

Zach Harkey - November 13, 2005 - 06:14

+1

#2

dtmatthes - March 29, 2006 - 11:46

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

#3

dtmatthes - March 29, 2006 - 11:56

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

#4

bradlis7 - April 16, 2006 - 19:04

+1

#5

filip_tc - August 30, 2006 - 13:47

+1

#6

LAsan - April 7, 2008 - 09:04
Version:x.y.z» 7.x-dev

Feature request go to cvs.

#7

Gurpartap Singh - December 25, 2008 - 12:36

Bump.

#8

j.somers - April 13, 2009 - 19:11
Status:active» needs review

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.

AttachmentSize
jsomers_19837_1.patch 4.67 KB
Testbed results
jsomers_19837_1.patchpassedPassed: 10923 passes, 0 fails, 0 exceptions Detailed results

#9

xmacinfo - April 19, 2009 - 02:59
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

#10

j.somers - April 19, 2009 - 08:26

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.

#11

xmacinfo - April 19, 2009 - 11:44

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

#12

xmacinfo - April 19, 2009 - 13:12

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?

#13

xmacinfo - April 19, 2009 - 13:24

#438224: "Post comments without approval" permission does not work by itself have been created for the "Post comments without approval" permission issue.

#14

xmacinfo - April 25, 2009 - 22:17

#15

xmacinfo - April 25, 2009 - 22:44
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.

#16

xmacinfo - April 25, 2009 - 22:51
Status:needs review» reviewed & tested by the community

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

#17

xmacinfo - April 25, 2009 - 22:57
Status:reviewed & tested by the community» needs review

Reloading the patch for the bot.

AttachmentSize
jsomers_19837_2.patch 4.67 KB
Testbed results
jsomers_19837_2.patchpassedPassed: 10931 passes, 0 fails, 0 exceptions Detailed results

#18

xmacinfo - April 25, 2009 - 23:11
Status:needs review» reviewed & tested by the community

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

#19

Dries - April 26, 2009 - 09:14
Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks!

#20

System Message - May 10, 2009 - 09:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.