remove not verified message

ezichko - November 23, 2006 - 19:58

I have anonymous users posting on my site but next to their name i get a (not verified) message.

What is the best way to remove this?

thanks.

This is produced by

plumbley - November 23, 2006 - 20:31

This is produced by theme_username() in includes/theme.inc (in 4.7.x), called via theme('username', ...)

You can override it by defining your own [theme]_username() or [themeengine]_username function. E.g. if you use the default template, a module including phptemplate_username should do it. You could start with theme_username(), rename to phptemplate_username() in your new module, and remove the line

<?php
    $output
.= ' ('. t('not verified') .')';
?>

See e.g. http://api.drupal.org/api/4.7/group/themeable for more about themes.

Hope this helps,
Mark.
--
www.PostgraduateStudentships.co.uk - where ideas and funding meet

What's great about this

xentek - January 17, 2008 - 15:46

What's great about this (once you remove or comment out that line) is that you don't have to update the names in the database... the (not verified) tag is added on-the-fly, so commenting this out will remove them from your site in an instance. Sweet!

I tried to copy the

lameei - June 7, 2009 - 03:13

I tried to copy the theme_user function form theme.inc to template.php of my theme and then commenting out not verified. but it generates error.

Fatal error: Cannot redeclare theme_username() (previously declared in /home/iclub/public_html/includes/theme.inc:1602) in /home/iclub/public_html/sites/all/themes/garland-iclub/template.php on line 141)

Any clues here?

you have to replace

eddy147 - June 9, 2009 - 09:26

you have to replace theme_username() by yourtheme_username() in your template.php

the theme name is

lameei - June 9, 2009 - 11:52

the theme name is garland-iclub after doing what you said i'm getting an error because of "-" in the theme name. i think i gotta change the theme name. Anyway thank you .

 
 

Drupal is a registered trademark of Dries Buytaert.