Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch adds a recents posts/nodes/comments block to tracker.module.
It is better than the 'recent comments' block in comment.module in my opinion: this block includes recent nodes/images/events/etc. as well, and it uses less space.
The patch is for 4.5.2, but I guess it would work with few adjustments (if any) on 4.6.x.
Comment | File | Size | Author |
---|---|---|---|
tracker.module.recent.posts.block.patch | 1.59 KB | hba | |
Comments
Comment #1
Dublin Drupaller CreditAttribution: Dublin Drupaller commentedHeisen...
Great patch...works perfectly.
Just curious if you know how to restrict the output to just list recent forum posts & comments...as opposed to listing all types of nodes.
Takk skal du har!
Dub
Comment #2
Dublin Drupaller CreditAttribution: Dublin Drupaller commented..worked that out for myself...the following snippet creates a list of recent forum topics and active forum topics...
Can be used in a drupal page or block (with the filter set to PHP)
I'm trying to get the tracker_page function SQL query to filter out by n.type='forum' ..but I'm not sure how to do that....can you help by any chance?
here's a thread on that specific topic...
http://drupal.org/node/22881
Cheers
Dub
Comment #3
Dries CreditAttribution: Dries commentedNo working patch attached. The patch dates back from 4.5.2.
Comment #4
Andrzej7 CreditAttribution: Andrzej7 commentedTrying to configure the block, I get the message:
Fatal error: Call to undefined function: node_access_join_sql() in /includes/common.inc(1841) : eval()'d code on line 2