If I selected 'Topic Solved', I hope this topic cannot reply (not including Administrator,Global Moderator,Moderator), how do I edit file?
install.xml
search
<file name="$sourcedir/Display.php">
<operation>
<search position="replace"><![CDATA[ $context['topic_first_message'] = $topicinfo['id_first_msg'];]]></search>
<add><![CDATA[ $context['topic_first_message'] = $topicinfo['id_first_msg'];
$context['topic_solved'] = $topicinfo['is_solved'];
$context['can_solve_topic'] = (allowedTo('solve_topic_any') || (allowedTo('solve_topic_own') && $user_info['id'] == $topicinfo['id_member_started'])) && $board_info['topic_solved'];]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[t.num_replies, t.num_views, t.locked, ms.subject, t.is_sticky]]></search>
<add><![CDATA[t.num_replies, t.num_views, t.locked, ms.subject, t.is_sticky, t.is_solved]]></add>
</operation>
</file>
replace
<file name="$sourcedir/Display.php">
<operation>
<search position="replace"><![CDATA[ $context['topic_first_message'] = $topicinfo['id_first_msg'];]]></search>
<add><![CDATA[ $context['topic_first_message'] = $topicinfo['id_first_msg'];
$context['topic_solved'] = $topicinfo['is_solved'];
$context['can_solve_topic'] = (allowedTo('solve_topic_any') || (allowedTo('solve_topic_own') && $user_info['id'] == $topicinfo['id_member_started'])) && $board_info['topic_solved'];]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[t.num_replies, t.num_views, t.locked, ms.subject, t.is_sticky]]></search>
<add><![CDATA[t.num_replies, t.num_views, t.locked, ms.subject, t.is_sticky, t.is_solved]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$context['is_locked'] = $topicinfo['locked'];]]></search>
<add><![CDATA[$context['is_solved'] = $topicinfo['is_solved'];]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$context['can_reply'] &= empty($topicinfo['locked']) || allowedTo('moderate_board');]]></search>
<add><![CDATA[$context['can_reply'] &= $context['is_solved'] == '0' || allowedTo('moderate_board');]]></add>
</operation>
</file>