Answered: How to prevent users level registered to sending private messages in a q2a forum?

Post date: 2024-02-07 07:22:01
Views: 216

in qa-include/pages/message.php 

change  this at line 150

if ($toaccount'flags'] & QA_USER_FLAGS_NO_MESSAGES) {

to this

if (($toaccount'flags'] & QA_USER_FLAGS_NO_MESSAGES) && qa_get_logged_in_level() < QA_USER_LEVEL_SUPER) {

and

in qa-include/pages/user-profile.php  

change this at line 791

if (qa_opt('allow_private_messages') && isset($loginuserid) && $loginuserid != $userid && !($useraccount'flags'] & QA_USER_FLAGS_NO_MESSAGES) && !$userediting) {

to this

if ((qa_opt('allow_private_messages') && isset($loginuserid) && $loginuserid != $userid && !($useraccount'flags'] & QA_USER_FLAGS_NO_MESSAGES) && !$userediting) || qa_get_logged_in_level() >= QA_USER_LEVEL_SUPER) {

Please click Here to read the full story.
 
Other Top and Latest Questions:
IBM lowers full-year forecast after earnings warning
UniCredit CEO tells CNBC acquisition of Commerzbank could happen in fourth quarter
Southwest Airlines' third-quarter forecast falls short as fuel bill climbs
Cleaning service in Boston/North End?
Weird Donation Split?
Movie: The Children's Hour
Trump says Saudi nuclear deal contingent on relations with Israel, does not include enrichment
American Airlines stock tumbles 8% as fuel spike further postpones turnaround
Brent crude tops $100 a barrel. How the next stop could be $120
A tax break for preserving land has drawn IRS scrutiny. Here’s when it still makes sense