Hi,

Thank you so much for your latest 6.x Private Message, been waiting ..

I have http://drupal.org/project/realname installed, but when you click on the link on the profile page, it automatically inserts the full name and not the username into the 'to' field.

Then error:

* The following users will not receive this private message: afirstname thelastname,
* There are no valid recipients.

Naturally would prefer it kept the full name as created by realname.module ..

How would I go about to fix this please?

Look forward to any reply.
Lilian

Comments

litwol’s picture

We would need to think of an integration with that module.

berdir’s picture

The option "Override username theme" does override the $user->name attribute, this is imho quite ugly.

That's what the module does:

  // If theme then replace name with realname.
  if (variable_get('realname_theme', false)) {
    //Store it for places where it needed
    if (!isset($account->realname_save) && is_object($account)) {
      $account->realname_save = $account->name;
      $account->name = $account->realname;
    }
  }

A workaround is to check if there is a realname_save attribute and use it instead of name, but I it's a special case for exactly that module and there is no easy way to go around this. Maybe you can open a issue for the realname module and ask if this is really necessary ?

berdir’s picture

litwol’s picture

Project: Privatemsg » Real Name
Version: 6.x-1.0-rc2 » 6.x-1.x-dev
Category: support » bug

I am changing this to RealName project because this is really a *bug* with RealName module.

nancydru’s picture

Category: bug » feature

This may be a feature request, but I don't believe it is a bug. Have you tried the new "forms bypass" feature in the -dev version to make it skip the Privatemsg forms? (Sorry, I don't use that module, so it is hard for me to assess this.)

nancydru’s picture

Status: Active » Fixed

I'm guessing that the newest -dev version (#321608: Username Overridden in Comments But ...) has fixed this problem as long as you use "Override username theme."

Status: Fixed » Closed (fixed)

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