Question
The comment plugin adds the name of the person at the end of the comment, after a linefeed. How can I remove this linefeed? I just want the name to be appended at the end of the comment without an additional line.
Currently, it is:
Test Topic
Test comment
--
Main.chemirac - 09 Jul 2007 06:44:50
I would like it to be:
Test Topic
Test comment --
Main.chemirac - 09 Jul 2007 06:44:50
I would like to know which file needs to be edited and what modifications are to be made (I am a zero on perl and require some spoonfeeding

)
Environment
--
ChengappaCB - 09 Jul 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
What happens if you add
%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE%
%URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE%
%TMPL:END%
to your local
UserCommentsTemplate?
--
FranzJosefGigler - 09 Jul 2007
Thanks for your answer Franz. After asking you guys, I was doing my own experiments. I removed a linefeed in the file
CommentsTmpl to change:
%URLPARAM{"comment"}%
-- <b>%WIKIUSERNAME% - %DATE% %TIME%</b>
%TMPL:END%
to
%URLPARAM{"comment"}%
-- <b>%WIKIUSERNAME% - %DATE% %TIME%</b>
%TMPL:END%
and now it looks like it is working. Did I do it right ?
--
ChengappaCB - 09 Jul 2007
Yes, that's good enough. TWiki interprets an empty line as in the original template as "new paragraph". You removed that line, so now TWiki formats
%URLPARAM{"comment"}% and the signature as if they were written in the same paragraph - which is displayed in the same line if there's enough space on the line.
--
HaraldJoerg - 09 Jul 2007