I have just installed this and it works great. I have three feature requests I would like to see in this module:

  1. In my profile fields I have a field for nickname and a checkbox field that says "Show nickname". My intention was to let the user be able to show nickname instead of my default first name + last name that I output through Real Name modul. I submitted a patch to make use of this, but of course this needs the same profile fields as I have and that is not the right way to go I guess.
  2. I use Quote module in my forum to be able to make quotes. The username is still used instead of the Real Name. Maybe this has to be changed in the Quote module to make use of the Real Name.
  3. The same goes for Contact module. Username is used instead of Real Name.

Thanks for a great module! Had this working through theme output in Drupal 5, but couldn't get it to work in Drupal 6.

CommentFileSizeAuthor
#3 realname_theme.inc_.patch1.46 KBMagnus
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

1) Submitted a patch to whom? If their username is their nickname, this wouldn't be hard to implement.

2) "Quote" or "Quotes"? I maintain Quotes and I know this works with it, although it may only be with a release I have yet to commit. I have never looked at the other (Quote) module, but they could easily make use of it, because this module adds "$node->realname" to the node. However, IIRC, Quote also deals with comments, and I haven't taken a look at what to do about comments.

3) I don't know what I can do here, but I'll look for a way. I don't do core hacks.

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)

I just looked at some comments and they do appear to have the RealName showing.

Magnus’s picture

FileSize
1.46 KB
  1. Ooops, forgot to submit the patch =)
  2. Quote module http://drupal.org/project/quote
  3. It would be great if you found a way to solve it without any need to make a core hack.
  4. Yes, the comments works fine. It's just replies as quotes that I want to be able to use the Real Name instead of default username
NancyDru’s picture

Assigned: Unassigned » NancyDru
Status: Postponed (maintainer needs more info) » Fixed

I just committed a fix to take care of the contact form. I don't use the Quote module and have no idea how to integrate it.

NancyDru’s picture

Please resubmit the nickname request as a new issue. As I understand it, what you want is the ability to use a checkbox field in the profile to choose an alternate value for the RealName.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

digemall’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
Status: Closed (fixed) » Postponed (maintainer needs more info)

I have a problem with quote and realname.
In comment quotation show "-loginname- wrote" instead of "-realname- wrote".
I don't know if is a real bug, but if possible I would prefer to show realname in quotation.

Thx in advance

NancyDru’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I cannot support thousands of contributed modules with specialized code. You need to encourage the developer of the Quote module to use theme('username', ... rather than just picking up the name.

martink’s picture

Version: 6.x-1.x-dev » 6.x-1.2
Status: Closed (fixed) » Active

Sorry to reopen this - I have just installed Real Name and it works real nice, except that when a user opens the contact form (ie the standard D6 contact module) he gets the login name instead of the real name in the "Name" field.
I judge from what I read above that this has actually been fixed - but maybe it has crept back in again? My version is:

Version: $Id: realname.module,v 1.4.4.49 2009/03/19 14:19:27 nancyw Exp $
ambientdrup’s picture

Version: 6.x-1.2 » 6.x-1.3

Is the fix working for the Contact form? I'd also like to use the RealName vs. the username in my Contact form name field.

I'm using the 6.x-1.3 version and I'll try the dev version as well.

Any suggestions on what happened to this fix?

-backdrifting

ambientdrup’s picture

Never mind - looks like it's working in the Contact form in the dev version.

Thanks,

-backdrifting

ambientdrup’s picture

One thing I had to do was check the permissions and make sure the authenticated user had permissions to use RealName.

-backdrifting

Magnus’s picture

Status: Active » Fixed
Magnus’s picture

Status: Fixed » Active

Haven't used the Contact form for a while, but when I tried it today I saw that the RealName for the user are used in the Contact form, but not in the email that is sent out.

Was this fixed in http://drupal.org/node/268510#comment-885227?

Bilmar’s picture

subscribing

NancyDru’s picture

For #8

function quote_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'comment_form' && isset($_GET['quote']) && $_GET['quote']) {
    $nid = arg(2);
    $cid = arg(3);

    if ($cid) {
      $comment = db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status = 0', $cid));

      if ($comment->uid) {
//        $author = $comment->registered_name;
        $author = theme('username', $comment, array('plain' => TRUE));
      }
      else {
        $author = (!empty($comment->name)) ? $comment->name : variable_get('anonymous', 'Anonymous');
      }
      $quote = $comment->comment;
      $subject = $comment->subject;
    }
    elseif ($nid && _quote_variable_get('node_link_display')) {
      $node = node_load(array('nid' => $nid));
      if (in_array($node->type, _quote_variable_get('node_types'))) {
        $quote = $node->body;
//        $author = !empty($node->name) ? $node->name : variable_get('anonymous', 'Anonymous');
        $author = !empty($node->name) ? theme('username', $node, array('plain' => TRUE)) : variable_get('anonymous', 'Anonymous');
      }
      else {
        return;
      }
    }
    else {
      return;
    }

I just did this and it works fine - so the change has to be made in the Quote module.

NancyDru’s picture

#14: see #11

digemall’s picture

About quote problem, I built a little module, overriding quote author theme (changing it with theme('username',...) )

If someone's interested, go here:
http://drupal.org/node/364871#comment-2548476

hass’s picture

Issue summary: View changes
Status: Active » Closed (outdated)