On my site, when I set a "title for own account", and clear the "show realname in nodes" box, the title of all node teasers (of any type) is overwritten with the auto-nodetitle of my first content profile node, even with auto-nodetitles disabled.

Comments

Stephen Scholtz’s picture

I can confirm that is happening to me as well, just discovered today. The trigger seems to be the "Override theme('username',...)" config option. If you have that selected, you get the weird overwriting for teasers. Leave it off, and it's fine.

Drupal 6.17
RealName 1.3
Auto Nodetitle 1.2 (to remove the title field from content type I'm using as my profile)
Content Profile 1.0

It's only affecting teasers, not the content itself. In the database, 'node' and 'node_revision' have the right values, but for some reason $node->title (inside node.tpl.php) is coming back with some stuff from Auto Nodetitle. If you attempt a node_load() using the given $node->id inside of node.tpl.php, you'll get back the right title, not the mangled one, so definitely something in the theme layer.

I'm going to try a fresh install tomorrow with these modules and see if I can reproduce this issue.

Stephen Scholtz’s picture

Ok, steps to reproduce (I think...at least these are the steps I took to reproduce it on a clean install):

1. Install RealName 1.3, Auto Nodetitle 1.2, Content Profile 1.0
2. Put some CCK fields in the default Profile content type, one being your Real Name field; enable it to be used as a user's profile.
3. Turn on Auto Nodetitle for the profile content type, set to anything (I used "[author-name-raw]'s Profile")
4. Create a profile for your admin or whoever (User #1)
5. Create some pages/stories, publish 'em to the homepage.
6. Go to RealName and assign your Real Name field from Step #2 to be the field to use as a user's real name.
7. Look at your home page. All titles will show up using the pattern defined in #3, even though Pages/Stories aren't using Auto Nodetitle.

Disabling and uninstalling Auto NodeTitle does nothing. Turn on "Show real name in nodes" and the teasers will return to normal. Turning off "Override username theme" will have the same effect, but you need to clear your cache first. ('course, now none of the Real Name's are showing up) Disabling RealName also restores the titles.

So for now, setting "Override username theme" and "Show real name in nodes" to both true, things will behave as expected, but there's definitely something funky going on with the "Override username theme" option and Auto NodeTitle.

Don't have time right now to dig further into either module's code, but hopefully that's a helpful start.

EDIT: Also posted in Node Title: #829522: Possible Auto Nodetitle and RealName conflict: titles overwritten in teasers on all content types

xjm’s picture

I had to disable Automatic Nodetitles on my profile nodes for this reason. I now set the titles programmatically with a custom module instead.

See: #606364: Author name instead of subject/title in forum topic list. It might be worth testing the -dev branch to see if the issue persists there (with the node title line commented out). I am not sure whether or not this is a duplicate.

gapple’s picture

I've added a new patch to #606364: Author name instead of subject/title in forum topic list, please give it a try and see if that resolves this issue.

gapple’s picture

Status: Active » Closed (duplicate)