Moderate Posts, Events, Poll, Videos etc...

Balamurali Govindan Posted in General Discussion 3 years ago

Is it possible for the moderator or admin to inactive a post or blog or poll or event instead of just deleting it?

I see the DB table has a column "active" values 0 or 1, but looks like it is not used? (always set to 1, even when a post is reported). Please let me know options for this.

Thank You.

Replies
Indonesian Arsalan Shah Replied 3 years ago

You can but need to edit a OssnWall component with more work. You need to see OssnWall class in wall componnet. You need to add a flag to post example

$post = ossn_get_object(id);
$post->data->flag_active = 1;
$post->save();

Then user entitiespairs method to get posts only where flagactive => 1