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

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

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:
Fed still expects to cut rates once this year despite spiking oil prices
Which credit card should you pay off first? 5 tips to help you decide
Disney embarks on new chapter as Josh D'Amaro takes over as CEO
How to turn leaves into ornaments
Beautiful Hidden Picture books?
Can you recommend very long fiction series that meet my criteria?
Services that will pick up and ship item?
Stargate SG-1: Entity Rewatch
A Labubu movie is on its way as Pop Mart expands the iconic toy franchise
Bain Capital taps buyer interest for Bridge Data Centres, offering up to 70% stake, sources say