The usernode guestbook is working fine but when ever someone post a comment/scrap in the usernode guestbook it gets automatically displayed in the recent comments block. How can I remove this?

Because displaying every user personal scraps/comments from their profile over the website recent comments block looks silly.

Please advice/suggest me how to get rid of this

Thanks

Comments

marcor’s picture

Assigned: Unassigned » marcor
Category: bug » support
Priority: Critical » Minor
Status: Active » Closed (works as designed)

Thanks! :)

Usernode_guestbook uses usual comments for guestbook entries. So this behaviour (show guestbook entries as comments in a recent comments block) is "by design". This is the same problem as if you had some other nodetypes containing other more private data you don't want to focus your users on. In this case, either usernode_guestbook is the wrong solution, or the built-in recent comments block is. Easiest "solution" is to use the guestbook.module.

I recommend to build an own "recent public comments" block. There are two ways:
- copy and paste the original recent comments block in your site-module, change names and add a statement like "... WHERE n.type != 'usernode' ..." to its SQL. This is fine if you're used to PHP and Drupal module writing. Otherwise:
- Use views module. Create a new view, create a new block inside. In the filter section add "node type" as a filter and choose the node types comments should be displayed for.

Maybe you have to go a little deeper into Drupal now, but sooner or later you will do anyway, because Drupal really rocks! ;) Good luck!