Zorro_X

Enable post approval as a rule action

Recommended Posts

Hi,

It sounds more like an evolution regarding new functionnalities of V4.5, but maybe someone may indicate how to patch the automation rules original code to allow create actions on subjects that enables/disables post approval.

Z

Share this post


Link to post
Share on other sites

You may try to realize your needs through access to the database using a PHP action in your rule.

As far as I know, once post approval is enabled for a topic, at least two important changes inserted into the database: core_content_meta table and forums_topics  table. Into the first table such a line is inserted like this: 

53
IPS\forums\Topic
95519
core_ItemModeration
{"enabled":true,"member":1}

 

And the line in the forums_topics  table with topic ID 95519 has the column TOPIC_META_DATA changed from 0 to 1.

Also, there should be some specific logs inserted, saying that a moderator enabled post approval in a certain topic.

So, you can start with this. I assume it is possible using this way.

  • Thanks 1

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.