Would it be possible to make RealName working with Submitted By so that Submitted By does not eliminate the effects of RealName?
Would it be possible to make RealName working with Submitted By so that Submitted By does not eliminate the effects of RealName?
Comments
Comment #1
lomz commentedhttp://drupal.org/project/submitted_by
#323829: Work with RealName
Comment #2
nancydruThat tokens file I just added should take care of you. Please test it after it rolls up so I can make a new official release.
Comment #3
lomz commentedI am already testing it, thats why I filed these issues.
Comment #4
lomz commentedJust checked the list of tokens I could choose from in Submitted By and compared to the list of tokens in token_realname.inc, the new tokens do not appear, not even after I cleared the cache.
Comment #5
nancydru[realname] => The RealName for the user.
[realname-link] => Themed username link.
[homepage] => The home page for the user.
I did just make a small tweak after testing this with the Submitted_by module.
Comment #6
lomz commentedThe I test it it and see
Comment #7
nancydruBTW, Submitted_by has been updated too.
Comment #8
lomz commentedWhen trying to use realname with submittet by comments with this line
The name of the author of the comments switched with the realname-link of the author of the blogpost the comment was linked to.
Comment #9
nancydruHmm, this is going to be interesting to see which one is doing this.
Comment #10
lomz commentedMy quess is that it is submitted by, I get the same error trying without realname #297689: Comments
Comment #11
nancydruFix committed. It was a little of both. I'm still learning Token.
Comment #12
lomz commentedW are almost there, now it uses the hompepage to the first of the registered users to give homepage to all the unregistered users, if no registered users has commented it collects url from the blogpostauthor.
I think there is a need for a unique set of tokens for comments and one set for posts
Comment #13
lomz commentedAdditional info:
Tried this in the sumitted y-field for comments:
Since [comment-author-name-raw] in it self doesnt provide a link in it self.
Comment #14
nancydruJust curious, why not [realname-link]?
Comment #15
lomz commentedI am not sure, but there must be a reason tht they created a lot of tokens with comment- as prefix.
Comment #16
nancydruI think it was just to separate them. But the tokens-value hook gets called by content type (e.g, 'node' or 'comment') so I didn't change the name. But they should be distinct.
Comment #17
lomz commentedI'll test the new release
Comment #18
lomz commentedStill the same, could you add comment- in front of the token for comments?
Comment #19
nancydruI'll try.
Comment #20
nancydruOkay, done. The names are [comment-xxx] or [user-xxx] now.
Comment #21
lomz commentedWe are almost there, now it seems to work for the unregistered users, except for that the link just shows for the first comment by a unregistered user.
This is tricky
Good news is that the last fix fixed the issue #324804: Users without homepage gets homepage as well.
Comment #22
lomz commentedNow I tested without submitted by, and it appears that without submitted by all the unregistered users now get ALL theyre links but the registered users without webpages get the homepage of the 1 user.
Comment #23
nancydruOkay, I need some help recreating this because it's working for me.
Comment #24
lomz commentedStrange, can I see the page you have where it works, with (not verified) for the non-registereds?
What can I do more than just cleaning the cache?
Do you want to see my webpage? With (not verified)?
Comment #25
nancydruOh, all mine are real users.
Comment #26
lomz commentedExamplesites:
http://vindstille.net/christian/er-studentene-for-sentrumskravstore
http://vindstille.net/christian/178-mil-senere
http://vindstille.net/siri/blå-kors-og-maslow
Most of theese users with () after is with homepages.
Just tell me what more you need or something I can do.
Comment #27
nancydruOkay, I understand now. I think there are actually two problems here. 1) I think my code does need some improvement for comments. 2) The token module should be building the user's homepage for anonymous users and I just looked and it does not (#325227: Provide e-mail and commenter homepage tokens for comments).
I will have to continue this tomorrow.
Comment #28
nancydruBetween this fix and the token_comment.inc patch, you should be in business.
For my node I use
Contributed on [month] [d], [yyyy] by [realname-link].For my comments I use
Comment by [comment-homepage-link] on [comment-month] [comment-d], [comment-yyyy]Comment #29
lomz commentedJust a tip, with that setting and if a user do not leave homepage they will be left without name.
Comment #30
nancydruI made a small change to the token_comment.inc for that problem.
Comment #31
lomz commentedI added that to, but still the same problem with that token, but this is with unregistered users who do not leave a homepage.
Comment #32
nancydruI will get back to this soon.
Comment #33
lomz commentedthanks
Comment #34
nancydruI am no longer seeing this.
Comment #36
itaine commented[realname-link] isn't working for me with "submitted by", I'm using realname-6.x-1.1 and the latest version of "submitted by". Which token should I use?
Comment #37
nancydruPlease open this as a new support request.