Hi,

All nodes submitted by users first go into moderation http://drupal.org/project/modr8, so are not published until a moderator approves the article, job, etc.

The state of the node is 'not published' .. is it possible that an activity records only if the node is in state 'published' please?

Look most forward to any reply, and thank you for your tremendous module :)
Lilian

Comments

liliplanet’s picture

Status: Active » Closed (fixed)

My bad :) In the view if you select (Node) Node: Published Yes activity will only publish when set as 'Yes'.

Scott Reynolds’s picture

Status: Closed (fixed) » Active

While thats true, that prevents any non-node activities from being displayed.

liliplanet’s picture

Yes, that was a mistake on my part .. only node related activities will display if 'node state is published'. No other activity will show ..

sarhugo’s picture

Subscribe

mindaugasd’s picture

subscribe

mindaugasd’s picture

I found the way. You can use Views OR module (http://drupal.org/project/views_or) :)

Scott Reynolds’s picture

This is actually pretty involved, as the activity record should be unpublished if the user is blocked. And for comments, as sort of an extreme case, the activity should be unpublished if the user is block OR the node is unpublished OR the comment is unpublished. So its an interesting chain.

I just worked on it for my Activity Drupal 7 port: http://github.com/SupermanScott/Activity/commit/4e477350cbede2ccea6011f3...

It has the advantage of being able to call the parent::isPublished() and chain it that way.

liliplanet’s picture

Wonderful Scott, but perhaps any change for Drupal 6? Thank you :)

pribeh’s picture

http://drupal.org/node/582230 related or duplicate

Scott Reynolds’s picture

Status: Active » Closed (duplicate)

Ya this is a dup: #582230: Add in publish/unpublish support per activity and it has now been committed.

pribeh’s picture

Amazing.

liliplanet’s picture

Beautiful ! thank you so much !