Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ApplianceJunk on December 29, 2012, 12:58:26 AM

Title: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: ApplianceJunk on December 29, 2012, 12:58:26 AM
When I go to move a topic the box is already check for, "Post a redirection topic."

How can I fix it so the box is unchecked as default?

Thanks,
Title: Re: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: Shambles on December 29, 2012, 06:25:19 AM
I'd edit MoveTopic.template.php to comment out the default for the checkbox

Code (Find) Select
<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>




Code (Replace With) Select
<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>



It might still leave the redirection box there but the default tick should disappear
Title: Re: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: ApplianceJunk on December 29, 2012, 08:55:50 AM
That did the trick, thanks!
Title: Re: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: Bixby on January 21, 2013, 01:08:14 PM
Is there any way to do this without editing code? I would like to do away with the redirection option completely if possible.
Title: Re: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: Arantor on January 21, 2013, 02:09:07 PM
There's no way to do that without editing code.
Title: Re: How to set, "Post a redirection topic" unchecked as default when moving a topic?
Post by: Bixby on January 22, 2013, 02:27:30 PM
Thanks for the quick response.

That makes me a sad panda. :(
(http://looble.org/wp-content/uploads/sad_panda_by_moochacha26.jpg)

Hopefully this feature will be incorporated in a mod or a future release of SMF.