Currently with the Privatemsg (v7.x-1.3) module it shows the user ids when sending a new message and I'd like it to show the user names instead. Firstly is there any problem with doing this?

Secondly the 'Send this user a private message' link is formatted as:


and if I change it to:


the 'To' field on the write new message page does not contain the username. Is there a setting or module that would allow this.

  • For an inbound, you can use .htaccess with mod_rewrite. Problem is with outbound (link generation), and I have no idea how to do that, except some crazy workarounds with rules. It looks like a feature request, but module needs co-maintainters already.
    – Mołot
    Commented Jun 18, 2013 at 8:08

1 Answer 1


I don't think there's an easy way to replace the user IDs with usernames, but you can easily add the usernames using the Realname integration (you have to set up the Realname module as well though).

My Privatemsg send page looks like this:

to box

I did this by enabling Realname and following the instructions here. You will need the dev version as well; the 1.3 release has broken Realname AJAX.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.