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

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

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:
Ken Griffin says Citadel unwound more than 80% of risk tied to Situational Awareness portfolio
The Los Angeles Lakers sold for $12.5 billion. Here’s what every NBA team is now worth
Boeing engineers, technical workers reject contract offer
Yields had a big week. Why these moves may be reminiscent of 1987
Big week coming up with PCE, Nvidia earnings and then Jackson Hole. Here's what to expect
U.S. military says it aided passage of 660 million barrels of oil through Strait of Hormuz since May
Book: Purgatorio: Canto 30
Book: Why I Love Horror: Essays on Horror Literature
Movie: The Swindle
Ted Lasso: Richmond's Got Talent