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.
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
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
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!
http://drupal.org/node/99409
http://drupal.org/node/99409
http://www.mattfarina.com/2007/04/12/removing-not-verified-anonymous-users
I tried to copy the
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
you have to replace theme_username() by yourtheme_username() in your template.php
the theme name is
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 .