I just spent over 3 hours tracing through code to find out why usernode suddenly stopped working. It turns out that using the auto node titles module on usernode causes it to silently fail validation and therefore appear to simply not work. Figured I'd make an issue and maybe save others some hair. :)

Not sure what to do about it other than maybe put it in the readme... Just wanted the warning recorded.

Michelle

Comments

fago’s picture

thanks, I'll have a look at it.

fago’s picture

Title: Warning: Don't use auto node titles with usernode » using auto node titles with usernodes
Component: Documentation » Code
Status: Active » Fixed

I've changed the usernode creation, so that it is compatible with auto_nodetitle.
Could you give it a try, if everything works like expected?

If so, I'll create a new usernode release.

michelle’s picture

Category: task » support
Status: Fixed » Active

Sorry to take so long getting to this. I gave it a try and it works in the sense that it doesn't break usernode. Unfortunately, it's ending up being a moot point. When the usernode is created, the token for author-name isn't populated and user-name is visitor. In order for auto node titles to be useful for usernode, this would need to be fixed.

I'm temporarily changing this to a support request to get your feedback. Is this possible to do? Would this actually be a change to auto nodetitile instead? If this isn't feasible to make work, just "won't fix" it. It's a pretty minor issue, really, and not something I expect you to spend tons of time to get working. :)

Thanks,

Michelle

fago’s picture

Status: Active » Closed (won't fix)

no, it isn't doable easily. It had a short look at it, while fixing this issue. It doesn't work with the author, as it's not set early enough. So there would be a token necessary like usernode-user-name, then it should work.. anyway, not less work so I set it to won't fix for now.

michelle’s picture

Priority: Normal » Minor

Ok, thanks. One thought I just had was maybe you could simply add an option to the usernode module as to what to title the usernodes that are auto created? The only reason I was trying to get this to work is that I title my node profiles with the author name and I wanted usernodes to be "authorname-usernode" so they had a different title.

Anyway it really is a minor thing so if that's a pain to do as well just keep it won't fix. Just throwing the idea out there.

Michelle