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

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

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:
Gemini success to drive Alphabet shares to $400, cause OpenAI to cut capex, says Pivotal
The Fed is the most divided it's been in more than six years
Hassett likely next Fed chair, but most think Trump should nominate someone else, CNBC Fed survey shows
Nvidia has a cash problem — too much of it
Swiss government says new 15% U.S. tariff ceiling retroactive to mid-November
Cisco's stock closes at record for first time since dot-com peak in 2000
Trump says Fed could have 'at least doubled' latest interest rate cut
Asia-Pacific markets mostly rise after third Fed cut of the year
Why the stock market rallied so much on the Fed. Time to bet on a year-end melt up?
Here are the five big takeaways from Wednesday's Fed rate decision