Code: Select all
$post_data['topic_status'] = ($mode == 'post' && (isset($_POST['lock_topic']) && $auth->acl_get('m_lock', $forum_id))) ? true : false;
Code: Select all
$post_data['topic_status'] = ($mode == 'post' && (isset($_POST['lock_topic']))) ? true : false;
Code: Select all
'S_LOCK_TOPIC_MANDATORY' => ($forum_id =='FORUMID'),
Code: Select all
'S_LOCK_TOPIC_ALLOWED' => (($mode == 'edit' || $mode == 'reply' || $mode == 'quote' || $mode == 'post') && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && !empty($post_data['topic_poster']) && $user->data['user_id'] == $post_data['topic_poster'] && $post_data['topic_status'] == ITEM_UNLOCKED))) ? true : false,
'S_LOCK_TOPIC_MANDATORY' => ($forum_id =='FORUMID'),
Code: Select all
'S_LOCK_TOPIC_CHECKED' => ($lock_topic_checked) ? ' checked="checked"' : '',
Code: Select all
'S_LOCK_TOPIC_CHECKED' => ($lock_topic_checked || $forum_id =='FORUMID') ? ' checked="checked"' : '',
Code: Select all
<!-- IF S_LOCK_TOPIC_ALLOWED -->
<div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
<!-- ENDIF -->
Code: Select all
<!-- IF S_LOCK_TOPIC_ALLOWED -->
<div<!-- IF S_LOCK_TOPIC_MANDATORY --> style="display:none;<!-- ENDIF -->"><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div>
<!-- ENDIF -->
Anyasha wrote:Assuming you're using the above MOD, I would add this bit of code in posting.php under the 'S_LOCK_TOPIC_ALLOWED' line the MOD has you add:
so it looks like this:Code: Select all
'S_LOCK_TOPIC_MANDATORY' => ($forum_id =='FORUMID'),
and changeCode: Select all
'S_LOCK_TOPIC_ALLOWED' => (($mode == 'edit' || $mode == 'reply' || $mode == 'quote' || $mode == 'post') && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && !empty($post_data['topic_poster']) && $user->data['user_id'] == $post_data['topic_poster'] && $post_data['topic_status'] == ITEM_UNLOCKED))) ? true : false, 'S_LOCK_TOPIC_MANDATORY' => ($forum_id =='FORUMID'),
toCode: Select all
'S_LOCK_TOPIC_CHECKED' => ($lock_topic_checked) ? ' checked="checked"' : '',
and of course you will need to replace FORUMID with the id of the forum (which can be found by hovering your mouse over the link to that forum and finding f=1 or similar in the URL, the number after f= is the forum id) in BOTH instances.Code: Select all
'S_LOCK_TOPIC_CHECKED' => ($lock_topic_checked || $forum_id =='FORUMID') ? ' checked="checked"' : '',
Then, in posting_editor.html (or posting_body.html for subsilver) find this code you added:
and change it to:Code: Select all
<!-- IF S_LOCK_TOPIC_ALLOWED --> <div><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div> <!-- ENDIF -->
It works for me but PLEASE make backups of the files just in case I am wrong/made a mistake. This is a very roundabout way of doing it but in the end it should get you the results you want. If it doesn't seem to be working please let me know.Code: Select all
<!-- IF S_LOCK_TOPIC_ALLOWED --> <div<!-- IF S_LOCK_TOPIC_MANDATORY --> style="display:none;<!-- ENDIF -->"><label for="lock_topic"><input type="checkbox" name="lock_topic" id="lock_topic"{S_LOCK_TOPIC_CHECKED} /> {L_LOCK_TOPIC}</label></div> <!-- ENDIF -->