Posted by Magnus on June 9, 2008 at 4:15pm
| Project: | RealName |
| Version: | 6.x-1.3 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | active |
Issue Summary
I have just installed this and it works great. I have three feature requests I would like to see in this module:
- 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.
- 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.
- 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.
Comments
#1
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.
#2
I just looked at some comments and they do appear to have the RealName showing.
#3
#4
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.
#5
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.
#6
Automatically closed -- issue fixed for two weeks with no activity.
#7
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
#8
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.#9
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 $#10
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
#11
Never mind - looks like it's working in the Contact form in the dev version.
Thanks,
-backdrifting
#12
One thing I had to do was check the permissions and make sure the authenticated user had permissions to use RealName.
-backdrifting
#13
#14
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?
#15
subscribing
#16
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.
#17
#14: see #11
#18
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