optrex Well-known member Feb 8, 2012 #1 I have a member who is now being moderated. As part of that I also need to restrict PM access. I can stop him creating a new conversation, but how do I stop him from contacting others using the reply mechanism to convos he has already made?
I have a member who is now being moderated. As part of that I also need to restrict PM access. I can stop him creating a new conversation, but how do I stop him from contacting others using the reply mechanism to convos he has already made?
optrex Well-known member Feb 8, 2012 #3 oops actually is there a mod that will allow me to do this? Otherwise its going to be a real PITA Upvote 0 Downvote
Arty Well-known member Sep 16, 2012 #5 Find function _assertCanReplyToConversation in library/XenForo/ControllerPublic/Conversation.php, replace Code: if (!$this->_getConversationModel()->canReplyToConversation($conversation, $errorPhraseKey)) with Code: $model = $this->_getConversationModel(); if (!$model->canReplyToConversation($conversation, $errorPhraseKey) || !$model->canStartConversations($errorPhraseKey)) or create simple add-on to override that function, which is a better solution. Upvote 0 Downvote
Find function _assertCanReplyToConversation in library/XenForo/ControllerPublic/Conversation.php, replace Code: if (!$this->_getConversationModel()->canReplyToConversation($conversation, $errorPhraseKey)) with Code: $model = $this->_getConversationModel(); if (!$model->canReplyToConversation($conversation, $errorPhraseKey) || !$model->canStartConversations($errorPhraseKey)) or create simple add-on to override that function, which is a better solution.
Arty Well-known member Sep 16, 2012 #7 Sure, see attachment. Attachments Archive.zip Archive.zip 1.4 KB · Views: 5 Upvote 0 Downvote