I have comments "subject", "message", and I added a field "commentlanguage" whre users can select the language, the comment is written in. What I want to achieve is that only comments in the useres selected language are shown. In detailscomment.tpl I found the following code:
<table {STANDARDTABLE}> <!-- BEGIN POST --> <!-- BEGIN REGULAR --> [INSERTFILE=postbit] <!-- END REGULAR --> <!-- END POST --> </table>
How can I achieve, that this section does only show comments with e.g "commentlanguage={VISITORLANGUAGE}"?
Yes that worked! Thank you. I also tried to use a filter to show comments within detailcomments.tpl only in a selected language. "commentlang" is a customer-comment-field I added (only two possible values "english" or "german"). In detailcomments I used:
Because I made a mistake in my first post. I was not able to call the field "language", because this name was forbidden by the system. So I called it commentlang.
Comments on Comments in selected language
Member
Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Comments: 43
Hi,
I have comments "subject", "message", and I added a field "commentlanguage" whre users can select the language, the comment is written in. What I want to achieve is that only comments in the useres selected language are shown. In detailscomment.tpl I found the following code:
<!-- BEGIN POST -->
<!-- BEGIN REGULAR -->
[INSERTFILE=postbit]
<!-- END REGULAR -->
<!-- END POST -->
</table>
How can I achieve, that this section does only show comments with e.g "commentlanguage={VISITORLANGUAGE}"?
Cheers,
Chris
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Either around the postbit call there, or in the postbit template itself, use
Member
Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Comments: 43
Yes that worked! Thank you.
I also tried to use a filter to show comments within detailcomments.tpl only in a selected language.
"commentlang" is a customer-comment-field I added (only two possible values "english" or "german"). In detailcomments I used:
I also tried:
Only removefilter works, but "english" and "deutsch" in both cases results in:
Unknown column 'english' in 'where clause'
Number of rows is Unknown column 'english' in 'where clause'
or
Unknown column 'deutsch' in 'where clause'
Number of rows is Unknown column 'deutsch' in 'where clause'
What am I doing wrong?
Cheers,
Chris
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Why did you type commentlang when your field appears to be named language, not commentlang, based on what you said earlier?
Member
Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Comments: 43
Because I made a mistake in my first post. I was not able to call the field "language", because this name was forbidden by the system. So I called it commentlang.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
There do seem to be issues with comment filtering. Looking into it.
Member
Usergroup: Customer
Joined: May 04, 2008
Location: Liège, BELGIUM
Total Topics: 13
Total Comments: 43
OK. Thanks.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Should work now (your top one).