Timber: Comment Author link

Created on 14 Apr 2016  Â·  4Comments  Â·  Source: timber/timber

Hello there !
First of all, thank your for this amazing plugin that nearly changed my life (hello separated template and php file ! 💃 ) ! It's really simple to use and your doc is amazingly done :)

My problem is that I can't find how to display the comment author link (with comment.autho.link ou something like that). I looked everywhere and even checked te TimberComments file but I can't find anything. I apologize in advance if this is mentioned somewhere :)

Thank you ! 😄

confirm-and-close question

Most helpful comment

Nevermind, I did this to get it :
{{function('comment_author_link', comment.ID)}} if it can help :)

Thank you for your help and time :D

All 4 comments

A timber comment user is a TimberUser (http://timber.github.io/timber/#timberuser) which should mean that comment.author.link should work, as long as the user is not anonymous

Hope that helps!

My users do not have to be registered to comment but they can give their website and that's what I'm trying to show but I always get http://www.unepinceedesel.com/author as their link. That's what I can't understand :)

Is that the way it should work ? Because every blog I visit, I don't need to be registered but people can clck on my name to visit my site. Sorry if I'm not clear enough :)

Thanks in advance ! ^__^

Ah. Okay. You'll have to leave it with us, we will investigate.

Thanks for raising the issue
On 15 Apr 2016 12:48 p.m., "Chaimae Chraibi" [email protected]
wrote:

My users do not have to be registered to comment but they can give their
website and that's what I'm trying to show but I always get
http://www.unepinceedesel.com/author as their link. That's what I can't
understand :)

Is that the way it should work ? Because every blog I visit, I don't need
to be registered but people can clck on my name to visit my site. Sorry if
I'm not clear enough :)

Thanks in advance ! ^__^

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/timber/timber/issues/936#issuecomment-210435185

Nevermind, I did this to get it :
{{function('comment_author_link', comment.ID)}} if it can help :)

Thank you for your help and time :D

Was this page helpful?
0 / 5 - 0 ratings