SMF Support > SMF 1.1.x Support

Uncheck Post a redirection topic & Send PM notification

(1/1)

aw06:
When a topic is being moved How can I make it default so that 'Post a redirection topic' & 'Send PM notification' are un-checked..

And if possible how can i remove altogether the 'Post a redirection topic' option.

Chas Large:
To remove the check from the Post Redirect checkbox you need to edit the MoveTopic.template.php file. Themes\Detault

Find:

--- Code: ---<label for="postRedirect"><input type="checkbox" name="postRedirect" id="postRedirect" ', $context['is_approved'] ? 'checked="checked"' : '', ' onclick="', $context['is_approved'] ? '' : 'if (this.checked && !confirm(\'' . $txt['move_topic_unapproved_js'] . '\')) return false; ', 'document.getElementById(\'reasonArea\').style.display = this.checked ? \'block\' : \'none\';" class="input_check" /> ', $txt['moveTopic1'], '.</label>
--- End code ---

Replace with:

--- Code: ---<label for="postRedirect"><input type="checkbox" name="postRedirect" id="postRedirect" ', $context['is_approved'] ? '' : '', ' onclick="', $context['is_approved'] ? '' : 'if (this.checked && !confirm(\'' . $txt['move_topic_unapproved_js'] . '\')) return false; ', 'document.getElementById(\'reasonArea\').style.display = this.checked ? \'block\' : \'none\';" class="input_check" /> ', $txt['moveTopic1'], '.</label>
--- End code ---

To remove the "Change the topic's subject" checkbox line, remove or comment out the following line.


--- Code: ---<label for="reset_subject"><input type="checkbox" name="reset_subject" id="reset_subject" onclick="document.getElementById(\'subjectArea\').style.display = this.checked ? \'block\' : \'none\';" class="input_check" /> ', $txt['moveTopic2'], '.</label><br />
--- End code ---

Don't forget:
1. Backup the file before you edit it
2. Edit it in a plain text or php editor not a word processor.

aw06:
thanks

Navigation

[0] Message Index

Go to full version