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

Balamurali Govindan Posted in General Discussion 1 month 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.

German Arsalan Shah Replied 1 month 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;

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