I was wondering if there will be a Drupal 7 version of the RealName module?
This module has been great in adding a friendlier environment to my site and we all look forward to it in Drupal 7!

fyi!
http://webchick.net/node/74

Comments

nancydru’s picture

Status: Active » Postponed

When RealLife™ settles down, I can get back to my modules. Yes, I intend to support this on D7.

YK85’s picture

+1 subscribing

YK85’s picture

Drupal 7 Alpha 2 Released! http://drupal.org/drupal-7.0-alpha2

I'm sure a lot of work will be required and the maintainers are well aware of the changes but I came across this info and as Realname module overrides themed username I thought I should post it here: http://drupal.org/node/224333#theme_username

Thanks!

robby.smith’s picture

+1 subscribing
any plans for this in the near future? can anyone in the community help?

BenK’s picture

Subscribing...

BenK’s picture

Wanted to check in to see if any more work had begun on this...

artwiliam204’s picture

subscribing

BenK’s picture

Also, I'd love to see support for Profile2 (http://drupal.org/project/profile2).

--Ben

azuledu’s picture

Related with D7 port:

http://drupal.org/node/872380

nancydru’s picture

Title: Drupal 7 port » RealName Drupal 7 port

I will try to get most issues resolved before porting to D7.

scotwith1t’s picture

+1 subscribe

dave reid’s picture

I have a simple working port for D7. Nancy if you're interested I can post the code here or post it as a 'realname light' module.

nancydru’s picture

What are the differences? What is your CVS ID? Found it. Feel free to commit it on a DRUPAL-7 branch.

BenK’s picture

@Dave Reid: If you could post your Realname D7 port on this thread that would be great. I've been working on the D7 version of Private Message module and would love to get it working with a D7 version of RealName as soon as possible.

Thanks,
Ben

dave reid’s picture

Well it's a significant simplification from the D6 version.
1. Since we have format_username() in core for D7 there's no need to do any override stuff. Modules or themes that don't use it when supposed to should be patched rather than add support in realname.
2. Only relies on token system for replacement (still depends on the Token module for D7 so we can provide the UI).
3. Uses a simple cache table (cache_realname) to store generated results
4. Only supports one global realname pattern, but adds hook_realname_pattern_alter() so that other modules could alter the pattern used for a specific user.

If this sounds like it's an ok direction to move forward on a D7 branch, I'll add the code in, but I'll wait to hear back.

dave reid’s picture

nancydru’s picture

1. From what I remember of that change, there may be some additional formatting options needed (plain text vs. link, "not verified", etc.) but we can check that as a follow up.

2. I'd love to look at how you did that so I can do it on other modules.

3. I originally tried the main cache table and it was slower than doing my own queries, but we can also worry about that as a follow up.

4 Great idea.

You already have CVS access. HEAD is garbage AFAIK, so go ahead and create the branch and set it to generate a -dev.

Thanks, Dave.

dave reid’s picture

Assigned: Unassigned » dave reid
Status: Postponed » Active

Yeah the trick is format_username is just the actual username display. theme_username now uses the result of format_username and adds the extra stuff. I see know what you mean about not using the cache table. It makes a lot more sense to keep it in our own 'realname' table. I'll do some double checking to minimize upgrade path damage before I put the code into CVS later tonight or tomorrow.

nancydru’s picture

My current customer uses RealName for the authors on the company blogs. It is so convenient to be able to JOIN the table to pick up the names.

kiphaas7’s picture

sub

BenK’s picture

@Dave Reid: Have you created the D7 branch? I don't see it. I see that you've made a bunch of recent commits to the D6 branch, but nothing for D7. Can you create the branch sometime soon? I'd love to begin testing and also integration with Private Message module.

Thanks,
Ben

dave reid’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Ported code committed to CVS and a dev release has been created!
http://drupal.org/cvs?commit=447544

scotwith1t’s picture

Dave, can you have this put out on the project page so we can get some folks testing it? thanks for working on this!

nancydru’s picture

It is on the project page.

Danic’s picture

Will drupal.profile tokens be supported, too? I added the fields „First Name“ and „Last Name“ to the profile, but module.realname doesn't show the fields in the list.

dave reid’s picture

@Danic: You added Field API fields or Profile fields? Either way, that support will come from the Token module in D7. See #691078: Field tokens and #125640: Profile tokens.

Danic’s picture

I added Profile fields. Thanks for the links, I am keen on seeing #125640: Profile tokens in the nightly builds!

dave reid’s picture

FYI profile tokens have officially been committed to Token 7.x-1.x-dev.

dave reid’s picture

Note there are still some core issues that could use reviews before we hit 7.0 that will help Real name compatability:
http://drupal.org/project/issues/search/drupal?status[]=Open&issue_tags_op=or&issue_tags=realname

Status: Fixed » Closed (fixed)

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