tracker: mark all as read

moshe weitzman - May 25, 2003 - 18:16
Project:Drupal
Version:7.x-dev
Component:tracker.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'd like to be able to 'catch up' all nodes in the tracker without having to actually visit all of them ... separately, this would be useful for forum.module as well.

#1

moshe weitzman - August 21, 2003 - 02:34

a patch for this is in my sandbox and awaits review. does not implement forum.module piece.

#2

moshe weitzman - January 9, 2004 - 23:20

kjartan proposed a better one, though that has notm hit core yet.

#3

alexandreracine - January 12, 2007 - 21:32
Version:x.y.z» 5.x-dev

I think this still stand. Follow up?

#4

Wesley Tanaka - January 31, 2007 - 13:27

#5

catch - January 31, 2007 - 19:29
Version:5.x-dev» 6.x-dev

don't see this getting into 5.x so changing to 6.x

see also:

http://drupal.org/node/63416

#6

moshe weitzman - October 16, 2007 - 16:49

Kjartan's tiny old patch is still a good way to do this. Needs refreshing. See http://lists.drupal.org/archives/drupal-user/2003-11/msg00008.html

#7

bradlis7 - October 21, 2007 - 02:50
Version:6.x-dev» 7.x-dev

#8

bjaspan - March 6, 2008 - 17:50

I don't like this patch for two reasons.

1. It provides the ability to mark all nodes on the entire site as read. There are few sites for which that is what people really want to do. Separate groups, separate forums, separate node types, etc., are often viewed in different containers and people typically want to mark only those posts in a specific container as read. So, functionally, this patch is not a complete solution.

2. The implementation of adding a node 0 entry to the history table to represent "all nodes" is a hack. If we ever want to support referential integrity (which, granted, I do not think is possible anyway), this hack would be incompatible with it. The right way to mark a set of nodes as read, including all of them, is to add an entry to history for each node saying it is read; this, after all, is what would happen if all the nodes actually were read.

We should implement a function that takes an array of nids and marks them all as read.

Oh, and could someone explain to me why node_tag_new() is the name of the function that marks a node as no longer being "new" for a user? Why not node_tag_read($nid, $time = NULL) (defaults to now).

 
 

Drupal is a registered trademark of Dries Buytaert.