| Bugs in user-comments (KB) -
25-11-2006, 03:30 AM
FYI:
I have done some work with the comment-function in the KB, and I have found some bugs.
1. The <{$commentcount}> variable always displays 0 (zero) regardless of how many comments that are added to the article.
I wanted to hide some text if there were no comments added to the article. To accomplish this I had to use: <{if $commentlist}>...<{/if}>
2. If you post a comment with all fields blank, you will only get an empty white page. It seems that there are no validation added for the comment form.
3. When a comment is successfully added, a parameter gets added to the URL (commentsuccess=1). But there are no message shown to the user, telling him/her that the comment is pending approval.
4. When the user is logged in, the fields could be filled out with the users name and email address. However this isn't added to the default template:
<input name="fullname" type="text" size="30" value="<{if $_USER[loggedin] == true}><{$_USER[fullname]}><{/if}>">
<input name="email" type="text" size="30" value="<{if $_USER[loggedin] == true}><{$_USER[primaryemail]}><{/if}>">
Any comments on this Mahesh or Varun?
Last edited by eiden; 25-11-2006 at 03:32 AM..
Reason: typo
|