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

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

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 vows Iran will be 'living in Hell' by Tuesday if Strait of Hormuz deadline missed
Sánchez to Trump: Spain won’t ‘applaud those who set the world on fire just because they then show up with a bucket’
Delta, Southwest raise checked bag fees $10 amid jet fuel price surge, joining other carriers
Australians charged with war crimes?
Optimizing my Airbnb for FIFA crew rental
Movie: Half Lives
Movie: The Super Mario Galaxy Movie
Queer for Fear: The History of Queer Horror: Queer for Fear: The History of Queer Horror
Monarch: Legacy of Monsters: Requiem
The U.S. housing markets where million-dollar listings are standard