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

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

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:
Trump administration equity stakes pose risks to U.S. companies and markets
voice message by recording in question area
In reversal, Trump backs Nexstar's proposed acquisition of Tegna
Washington Post publisher Will Lewis announces departure, following mass layoffs
NFL plans to have discussions with partners outside of core media for live games, media chief says
U.S. plans initial payment towards billions owed to the UN, envoy Waltz says
Goldman Sachs says this under-the-radar biotech play could more than double in value
Federal judge orders Fulton County Georgia election case documents unsealed by Tuesday
Japan's Nikkei 225 skyrockets over 5% to hit record highs as Takaichi secures historic mandate
Stock futures tick higher as Wall Street awaits closely watched jobs, inflation reports: Live updates