×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Question Where is the Kunena code for "Moderate New Users"?

More
1 year 1 month ago #1 by feliwebwork
Hi,

A few years ago I asked if it was possible to moderate a specific user, and the answer was no. I would like to figure out a way of moderating user posts (ie. similar to how you can set Kunena to moderate new users) if they are in a particular joomla group.

Could someone direct me to the file where Kunena triggers the "moderate new user if less than x posts" function? That might be the place for me to work out some code for it to check if a particular user belongs to a particular group and if so to moderate that post.

Thanks.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #2 by xillibit
Hello,

It's handled at the line here :https://github.com/Kunena/Kunena-Forum/blob/K5.1/src/components/com_kunena/controllers/topic.php#L547, so the
$this->config->hold_newusers_posts
is corresponding at the value of Kunena setting "Moderate New Users"

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #3 by feliwebwork

xillibit wrote: Hello,

It's handled at the line here :https://github.com/Kunena/Kunena-Forum/blob/K5.1/src/components/com_kunena/controllers/topic.php#L547, so the

$this->config->hold_newusers_posts
is corresponding at the value of Kunena setting "Moderate New Users"


Thank you, i will try to have a look there. Though there obviously seem to be other pieces of the puzzle that are not immediately clear to me. Like, this seems to be where it finds out how many posts a user must have made before they stop being moderated, but I can't work out how to modify this code so that instead of looking at how many posts a user made, it will look at whether a user belongs to a particular group (e.g. registered, custom, author, publisher, etc.). Any ideas on how I would go about that?

Thanks for your help with this.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.095 seconds