Closed (fixed)
Project:
Usernode
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Oct 2007 at 13:35 UTC
Updated:
31 Oct 2007 at 18:11 UTC
As fago explained, a userode gives opportunity to use normal node features for users. For site's consistency I currently implement a guestbook/shoutbox feature based on comments on usernodes (coming up simple usernode_guestbook.module). Usernode comments are shown on the usual profile page. This works fine. My problem: Even if comments has been viewed, this is not recognized by the usernode and all comments are seen as "new". I would like to add some kind of usernode-"touch" to the user-hook to simulate viewing the original usernode. Does anybody knows a common Drupal-way for that? Or are there more sophisticated Drupal commands to read a comment and "touch" the belonging node?
Comments
Comment #1
marcor commentedOK, the answer can be found in node module where a node is rendered:
The function
node_tag_new($nid)"touches" (in the meaning of a unix touch command) a certain node as being read. What excectly happens can be read in the definition:So even a usernode can be set as viewed by the current user, if the a profile page is viewed. See a shortened example of usernode_guestbook.module here:
Comment #2
(not verified) commented