Author name instead of subject/title in forum topic list
G-son - October 16, 2009 - 12:51
| Project: | RealName |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
After I installed and updated to 6.x-1.3 my subjects in the forum list went wrong.
The subject list in the terms now shows the author of the node instead of the title. The link to the node is also corrupted.

#1
I just found out the same thing.
For me, the temporary fix was to comment out line 45 of the file realname_content_profile.inc
<?phpdefault:
$account->{$field_name} = $values;
}
}
}
}
//comment out line below
// $account->title = $profile->title;
}
?>
I tried to follow what this function (content_profile_load_profile) is doing, but really found no logic as to why it overrides only forum topics so far. It's being called around lines 755-767 in realname.module. This fix hasn't affected negatively anything on my site yet... so I'm good for now.
#2
I am getting the same thing with the Blog module and RealName 1.3. I haven't tried the suggested fix.
#3
As confirmation, this also occurs in the latest -dev snapshot.
#4
I have the same issue. Only for logged in users that have a permission for realnames.
#5
I used the described fix and the forum is working again. But I think this is not a final solution.
#6
The line mentioned in comment #1 is definitely the source of the problem. RealName can potentially blast the title of anything a user could've authored because of it. According to #579040: Some bugfixes, it looks like it was an attempt to fix #487576: Pull RealName from node title (Content Profiles).
#7
Try the patch #21 from #579040: Some bugfixes. Hopefully this helps.
#8
@DrakeRemory - that doesn't solve my problem with Blog titles. All I get is a nicely HTML escaped title, instead of a non-HTML escaped title.
#9
I don't know if mine is the same problem, or a different one. I did the #21 patch, on the most current dev. On my test forum, in the "Created" column, it now shows
<a href="/forums/...for the users name. It seems to be working fine elsewhere.#10
Just spent an age trying to find out why this was happening on a site...
The reason this is happening is because template_preprocess_forum_submitted in forum.module calls theme_username which when taken over by realname eventually calls content_profile_load_profile in realname_content_profile.inc which unhelpfully overwirte the objects title with the node title - the line identified in #1 defintely is the cause. What I do not understand is why it is setting $account->title at all... surely it is supposed to be setting $account->name as this seems to be the point of realname!!!
#11
subscribe
#12
Wow, no one seems to be mentioning a long stressful ordeal just to discover that it was *this* module causing the problem, and not a forum-related one. Must have just been me then.
Thanks everyone, for discovering the bad line of code and thereby lowering my blood pressure to acceptable levels again.
Hopefully a slightly more specific title will make this easier to find in a search.