Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
365 views
in Q2A Core by
retagged by
I checked the demo site and in Admin > Spam it has the option "Rate limit for private and wall messages".

But on my site that option does not appear. It turns out if you disable private messages but enable wall posts, it prevents that option from appearing in the admin area.
Q2A version: 1.6.2

1 Answer

0 votes
by

You are right! The fix is in qa-page-admin-default.php - change:

if (qa_opt('allow_private_messages'))
  array_push($showoptions, 'max_rate_ip_messages', 'max_rate_user_messages');
 
... to ...

 

if (qa_opt('allow_private_messages') || qa_opt('allow_user_walls'))
  array_push($showoptions, 'max_rate_ip_messages', 'max_rate_user_messages');
 
Will be rolled into Q2A 1.6.3.
...