Hello,
I'm trying to add a comments to a page, but I need it to be anonymous comments (person have to type the name manually), but only for a specified group of users. Now when I try to do it, even when I set a name, it takes my username instead of what I've written. I'm using TicketComments, but actually Quip does the same.
I suppose that it's needed to rewrite some string in TicketComment snippet, but I can't find the string that sets the name.
I'm sure it's quite easy but my knowledge of php is really poor and I will be really appreciated for help in this.
It's a little hacky but in your comment tpl you could add this
<span class="quip-comment-author">[[+authorName:notempty=`Anonymous`]]:</span><br />
Default tpl path is
core/components/quip/elements/chunks/quipcomment.chunk.tpl
Ah ok. I'm not entirely sure how quip handles this but there is a property to specify a field for the name that is displayed (&nameField=``). You may be able to get away with just adding in another input field into your add comment tpl and pointing to that with the above property - but it may look for a field in the mod user object, not sure.
[ed. note: lkfranklin last edited this post 8 years, 7 months ago.]