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

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

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:
Kids Online Safety Act social media safety bill advances in Senate
Fed's Kashkari says 'now is the time to start slowly moving' rates up
Anthropic's Mythos created fake identities to fool humans in new cyber incident
SpaceX gives Nvidia a much-needed boost. Plus, Cramer on an 'undervalued' stock
Chipmaker Broadcom is breaking out. How Tony Zhang is trading it
A couple of fire season questions (AQI & predicting fire growth)
Gift for a 7 year old in Europe
Another "identify this title from my youth" question
Follow-up - anti-depressants and (male) sex, difficulty climaxing
Movie: The Outrun