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

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

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:
Thursday's big stock stories: What’s likely to move the market in the next trading session
Israel says it has killed Iran’s intelligence minister in third assassination in two days
Bitcoin faces pressure after hotter-than-expected inflation data: CNBC Crypto World
JPMorgan Chase taps Dwyane Wade, Tom Brady for new athlete wealth management push
Alternatives to Outlook, Gmail and AOL for a web-based Email Provider?
Can you recommend very long fiction series that meet my criteria?
Services that will pick up and ship item?
Stargate SG-1: Entity Rewatch
Here are the five key takeaways from this week's Fed meeting
How China is getting everyone on OpenClaw, from gearheads to grandmas