I have a view for one of my custom content types (which has user comments enabled). If I enter the node ID (in Live Preview) of a brand new node, I'm getting a return value of "Anonymous" for the user, and "n/a" for the body.

I've set a value for Empty Text, which I assumed would display for the newly created node (that had not yet had any comments). As soon as I add a real comment, the Anonymous | n/a entry is gone from the Live Preview in the view.

Where is this anonymous "comment" coming from, and how can I filter it from the view?

Comments

steveadamo’s picture

I've now looked in the database, and can find no entries for the nid in question (25). So, if there are no entries for "anonymous" in the comments table, where is this value coming from in the view?

*confused*

tamanna-freelancer’s picture

can u tell while creating a view u have used node in the first form??

steveadamo’s picture

I'm terribly sorry, but I didnt follow your reply. Can you repeat the question?

tamanna-freelancer’s picture

If you are on drupal 6 the place where you write view name ,view decsription and view tag you select if the view is for comments,nodes users etc.What have you selected over there??

steveadamo’s picture

Gotcha. The view was added of type "node". I'm betting you're suggesting I create the view of type comment?

steveadamo’s picture

well, i found a solution to my problem... i never figured out there the default anonymous "comment" was coming from, but i added the following filter, which seems to have done the trick (and seeing as how I dont allow anonymous posts, this works for my specific situation).

Comment: Author != Anonymous 
Konstantin_by’s picture

Same problem here. Where do you add that?

steveadamo’s picture

Add the filter Comment: Author, and under the settings, set Operator: Is not equal to Value: Anonymous