XenForo Tutorials

Stop Locked Private Conversations

Submitted by Sunny1997, , Thread ID: 123413

Thread Closed
Sunny1997
Newbie
Level:
0
Reputation:
0
Posts:
16
Likes:
4
Credits:
0
04-03-2019, 01:28 PM
#1
This simple template modification will remove registered users the possibility to start private conversations with the status Locked. I find it personally to be very annoying, as staff member, to receive questions or help requests which are (intentionally or not) locked, which also don't give me the possibility to reply, hence, to offer help.

So I came up with this simple template modification to remove for registered users the possibility to start a locked private conversation.

Please note they can still Lock the conversation after they create it, I didn't think it was necessary to completely remove for them the possibility to lock the conversation, so I just aim at preventing the creation of locked PCs, not the successive locking.

Here's what to do:

Admin Area->Appearence->Templates-> Open the template called conversation_add

Search for:

Code:
<xf:option name="conversation_locked" checked="{{ ($draft.conversation_open OR $conversation.conversation_open) ? '' : 'checked' }}">
          {{ phrase('lock_conversation_no_responses_will_be_allowed') }}
        </xf:option>

Replace with:

Code:
<xf:if is="{{$xf.visitor.isMemberOf([3])}}">
        <xf:option name="conversation_locked" checked="{{ ($draft.conversation_open OR $conversation.conversation_open) ? '' : 'checked' }}">
          {{ phrase('lock_conversation_no_responses_will_be_allowed') }}
        </xf:option>
        </xf:if>

Users browsing this thread: 1 Guest(s)